enwise — 2011-12-16T21:31:22-05:00 — #1
It works when its on its own page but when I place the code in a hidden div that becomes visible on click, it doesnt work.
What do I do to get the cycle plugin working when 1 of the hidden div is visible?
enwise — 2011-12-17T01:31:15-05:00 — #2
not allowing me to edit my post, but here is an updated jsfiddle that shows exactly what the probelm is: http://jsfiddle.net/BT4Bk/.
How do I get the anchors to work once the div is visible?
sdleihssirhc — 2011-12-17T01:58:49-05:00 — #3
I know what the solution is. I'm not familiar enough with the plugin to know what exactly is going wrong, but here's my guess:
- You have your "slide" <div> hidden from view, ready and waiting.
- You turn that "slide" <div> into an image cycle.
- When the user clicks the link, you're copying the cycle's HTML into a different <div>.
- The original remains an image cycle, but the new one is still just markup.
The solution is to turn the new markup into an image cycle instead of the original. Don't set up the cycle at the very beginning of your script, do it after you copy the HTML over. (Also, once that happens, you'll need to prevent the default action from the "Item 1" link.)