Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-01-27 21:46:53

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Looking for good slider/carousel

Edit: I do like Jakob’s method though – tabs are pretty flexible as well.

At the time, I was trying to achieve something like Hoefler and Frère Jones image slider without the play button and with text overlays.

Here’s another approach (infos here) courtesy of 45+ new jquery techniques.


TXP Builders – finely-crafted code, design and txp

Offline

#14 2009-01-31 15:48:57

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Checking out the cycle plugin now. Have this code:

<script src="<txp:site_url/>javascript/jquery.cycle.all.js" type="text/javascript"></script>
<script type="text/javascript">
$('#s6').cycle({ 
    fx:     'scrollUp', 
    timeout: 6000, 
    delay:  -2000 
});
</script>

Using the HTML from the #s6 example on the cycle demo page.

Not sure why it doesn’t cycle, the divs just repeat down the page, which means I am missing something in the JS – not sure what though at this point…

Offline

#15 2009-01-31 17:00:09

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Ok I figured it out, I was missing this:

$(document).ready(function(){
rest here
...
});

So it should like this for anyone else reading:

<script type="text/javascript">
$(document).ready(function(){
$('#s6').cycle({ 
    fx:     'scrollUp', 
    timeout: 6000, 
    delay:  -2000 
 });
});
</script>

Offline

#16 2009-01-31 18:43:59

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

Re: Looking for good slider/carousel

Looks like Dave might have just written his own thing for that (instead of a plugin).

Yup. I did look at several Gallery/carousel plug-ins, but they all seemed to be overly complex for what I was looking for.

Jonathan – thanks for pointing to the jQuery Cycle plugin. I’ll have to look into that one further.


Txp admin themes | dropshado.ws – a blog for design noobs like me

Offline

#17 2009-02-04 16:42:57

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Took at a look at jQuery UI tabs after jakob suggested it. Is it just me or is the UI downloader weird?

I click “UI core” and “Tabs” and two JS files download. After putting it up on the test site, I get JS error message Value undefined (result of expression $[namespace][name]) is not an object. Cannot be used with new. and the tabs don’t work.

Its annoying, but more so because most likely I am missing something basic. You can tell its my first time playing around with this stuff ;-)

Offline

#18 2009-02-04 16:47:13

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Looking for good slider/carousel

If memory serves – the 2 files are the same – one is just a minified version. Right?

Not sure about the error. Do you have the UI js loading after jquery.js?


T

Offline

#19 2009-02-04 16:51:00

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Yeah I assumed the two files were the same but I see from view source of other sites that two different files (ui core/tabs) are included.

The UI JS is inserted after jquery.js, so its not that. PITA!!

Offline

#20 2009-02-04 17:07:46

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Mmm. So I take the minified script out and suddenly its working. The non-minified file works..

??

Offline

#21 2009-02-04 17:10:17

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Looking for good slider/carousel

weird.

Offline

#22 2009-02-04 17:17:06

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Looking for good slider/carousel

Yes it is! Tom, you have any idea where I can download the core UI and tabs files? So I can separate them.

I think the jQuery download may be corrupting the files. At least it might be, I remember issues downloading Mootools in the past.

Offline

#23 2009-02-04 17:19:00

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Looking for good slider/carousel

I might have an older version handy – lemme look.
I’ll post them if I can find them.


T

Offline

#24 2009-02-04 17:19:30

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Looking for good slider/carousel

P.S. The #jquery IRC channel can be super helpful.

:)

Offline

Board footer

Powered by FluxBB