Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- random choice from array of functions


ctoz - 4:14 pm on Mar 22, 2011 (gmt 0)


No need: it was actually a d'oh problem.

I hadn't noticed that, in the process of testing, in the html I'd commented out the target <spans> into which the texts are loaded.

So the code ran, found nowhere to load, but ran the last part of the function, which reloads the target <spans>... ready for the second click.


Thread source:: http://www.webmasterworld.com/javascript/4284932.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com