<SCRIPT language="javascript"> <!-- Random HTML // Cameron Gregory - http://www.bloke.com/ // http://www.bloke.com/javascript/RandomHTML // This line and about must remain .. then you can use it for free... // // ChangeLog // Thu Apr 22 09:32:24 EDT 1999 // updated to do Random HTML from AdRotation // // Usage: // RandomHTML(args) // RandomHTMLLong(args,delim) // args delim separated HTML // delim the deliminter (separator) function RandomHTMLLong(args,delim) { /* si: start index ** i: current index ** ei: end index ** cc: current count */ htmlSet = new Array(); si = 0; cc=0; ei = args.length; for (i=1;i<ei;i++) { if (args.charAt(i) == delim) { htmlSet[cc] = args.substring(si,i); cc++; si=i+1; } } ind = Math.floor(Math.random() *cc); document.write(htmlSet[ind]); } function RandomHTML(args) { RandomHTMLLong(args,','); } // End Script --> </SCRIPT>