View Full Version : Stop/Play function Ajax Tabs Content Script (v 2.2)

11-30-2010, 08:22 PM

I have been able to successfully add stop button so that when the autorun is enabled, the user can stop it via a hyperlink:

<a href="javascript:countries.cycleit()" onmousedown="this.cancelautorun()" style="float: right">Stop</a>

This works perfectly, however, I cannot get the autorun to restart using another hyperlink, the only way to restart it is for the entire page to be reloaded.

Javascript isn't my friend, that's why I use Dynamic Drive lol.

I tried the obvious; onmousedown="this.autorun()" and even; onmousedown="countries.init('3000')"

Don't laugh if I am looking completely in the wrong area, I am a designer, not a programmer :D

PS: I think adding a stop/play function to this script would be a good addition if it get's updated.