I am learning JQuery and trying to create cycling text through images but I have a problem with buttons div (containermain). An example is here: http://jsfiddle.net/zAZst/7/ where last three images are buttons and shouldn’t have any effect on the pictures (first three) above. If you hover over images (first three) it works perfectly but if hovered over buttons (last three images) the script is corrupted and stops working. Could you please help me to fix the script so that if hovered over buttons (last three images) then there is no effect over the cycling text. Thanks.
Share
I see you have these lines:
This makes the mouseover on “any” img in the document to stop the cycling. You could add a class to the images in the cycle, like
and then change the first line of the javascript on() function inserting a selector, like this:
Hope this helps 🙂
EDIT: i made some typo in the funciton. Here is a JSFIddle working version: http://jsfiddle.net/zAZst/8/ 🙂