Strange unintended loop
Strange unintended loop
Hi,
I'm working on a new portfolio site (dont click it yet! read warning below first :)) http://viewmy.info/new/
There are 3 areas that I change in rotation (top header, then bottom left images, then bottom right images, then loop), it works fine the first time round but then the second time the callback to show the bottom right images after they have changed loops itself infinitely.
All the JS is in http://viewmy.info/new/js/frontpage.js , I've added three alert()'s to figure out where it was going wrong, and the "change work 1" is the one that it falls over on the second time round (the last 4 functions are the ones involved with this)
*****WARNING***** when it goes into its loop I have to hammer enter on the dialog and try click close in top right, or just Ctrl+Alt+Del it lol, you have been warned.. but it shows off the issue perfectly *****WARNING*****
Any help or ideas? I've tried refactoring code a few times (it used to stagger the fade out/in), but to no avail... and when I google for "jquery infinite loop" I just get posts related to how to make the loop, not any ppl have probs like this :s