I am using Chris Coyer’s Anything Slider and when I added the Lightbox scripting, the bottom of the slider area now has a scrollbar (left to right). I think the CSS for the slider adds overflow: auto but somehow it is not visible when I use Firebug.
Can someone take a look and tell me where I went wrong?
The scroll bar is a fallback for when JS is either off or not set up properly. In your case, the JS is not set up properly. You haven’t linked correctly to the easing and anythingslider scripts, so make sure those paths are correct as the first step.
At the moment, the slider functionality is not kicking in at all. Just a thought, but try deleting one of the links to the jquery library in the head of your document. You link to it twice, which is not necessary. I have a feeling doing that once before (by mistake) mucked things up for me.
I have also tried an instance with the jQuery version of Lightbox (as opposed to the Prototype version) and it still breaks the slideshow… Here is a link to that:
Hmm, I suspect you are very close. The browser throws an error, saying that
$(“.anythingSlider”).anythingSlider is not a function
Hate that damned message. I often get it while setting up stuff like this. Seems to be because it’s not reading the jquery script, yet after a while it changes its mind. It might be worth moving all the scripts to the bottom of the page, just before the </body> tag. I find the page loads better with the scripts there.
Ralph,
I moved the slider scripts to the end of the document and I have linked to a local version of jQuery… but still no luck. I am wondering if I need to scrap it at this point… Ugh…
I’ve used this script several times with no problem, but there’s always a little tinkering needed. You are very close. Where have you set up the latest version? Your link above hasn’t been updated.
It should be the same link. I just double checked it. And the second instance of jquery.js should have been removed earlier. Let me know if you still see it there.
Hmmm, jeepers, very odd. Well, all I can suggest now is to comment out all the lightbox stuff and remove the no-conflict line. At that point, you’ll have things set up just as I have done when this has worked flawlessly.
I’m confused too. Thats where I thought the easiest solution was to use the jQuery Lightbox instead of the Prototype version… but it still gave me problems as well.
Hey, I appreciate you looking into this for me. I’m retiring for the evening… Thank you.
… but I’m a huge smartypants, so I figured it out anyway.
Well spotted, Paul. I avoid the noConflict thing by just sticking to one library. Strange, though, as the slider wasn’t working even without another library in place. O well, JS is weird. :x
Paul, I’ve got to hand it to you… you have solved yet another one of my problems. I guess I was out of place for posting this issue in the CSS forum and not in the jQuery section.
You are a smarty pants and I thank you for it! You should write a book or something… lol