- This topic is empty.
January 1, 2012 at 10:33 pm #35923
I’ve used — with glee — the anythingSlider, but now I’ve reached a few small glitches.
2. In another div I’ve included a small contact script. Eager to test it, I realize that I have no input focus anywhere on the slider.
Help is graciously appreciated.January 2, 2012 at 1:08 am #93840
Don’t include any scripts inside of the slider, unless it is inline scripting. i.e., don’t use <script> tags inside the panels especially if it has a “document.write”. But something like this is okay:
To focus on the input inside of the slider, use the “onComplete” callback function. Check the slide number and if it matches, add focus to the input.
If you need examples, I’ll make some for you in the morning.January 2, 2012 at 8:34 am #93847
Yes, I’d be delighted to have a simple example, and thank you!January 2, 2012 at 9:22 am #93850January 2, 2012 at 6:47 pm #93867
Thanks a million for this. To make it work, I created a small JS and referenced it from my slider page. My preference, though, would be to incorporate it with my initialization code. Is that possible, and where would I insert it?January 2, 2012 at 10:41 pm #93880
The jsFiddle doesn’t show it but all of that code is wrapped in a
/* code goes here */
});January 4, 2012 at 7:40 am #93977
You’re a gem, Mottie, and thanks again.January 6, 2012 at 9:58 pm #94199
Just when I thought I was wrapping this up, I discovered that my page that includes anythingSlider will not acknowledge clicks on links to other pages. Those anchors, by the way, are not inside the slider but rather well before and after in the code.
I’ve tested the page by removing the reference to anythingSlider’s JS, and that solves the problem. Have I missed something in setting up anythingSlider that would logically be the reason for my non-functioning links?January 7, 2012 at 12:18 am #94203
The page with anythingSlider is here:
The inaccessible links are in the top left corner.January 8, 2012 at 12:44 am #94255
Is there possibly a modification to the JS that would allow functionality for both kinds of links?January 8, 2012 at 9:02 am #94275January 8, 2012 at 12:17 pm #94282
Well, duh. Rename the class? I just removed it!
Of course any darned fool should have known that. I stared for so long at that page that I completely overlooked it. Thanks a million.
- The forum ‘CSS’ is closed to new topics and replies.