Forum Moderators: open

Message Too Old, No Replies

Rotating JavaScripts JavaScript

Any way to rotate javascripts on a page?

         

rainydazed

2:06 am on Jun 20, 2005 (gmt 0)

10+ Year Member



I pretty much understand how to use javascript to rotate banners and quotes and what-not, but is there any way to rotate actual javascripts? I've got some random stuff I'm serving remotely, and I want a different script to load on my homepage each time somebody visits. Any ideas?

Gracias.

Moby_Dim

4:59 am on Jun 20, 2005 (gmt 0)

10+ Year Member



I did not make this personally, but seems it's possible at the first glance. Did you try to insert a simple random string (js.file name) in document.write('<script src="' + random.js + '"....')?