Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
Re: Looking for good slider/carousel
Mmm. So I take the minified script out and suddenly its working. The non-minified file works..
??
Offline
Re: Looking for good slider/carousel
weird.
Offline
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
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
Re: Looking for good slider/carousel
P.S. The #jquery IRC channel can be super helpful.
:)
Offline