User:FellowWikiNews/randomad.js

importScript("User:FellowWikiNews/ads.js"); function doAdOnload{ //document.getElementById("contentSub").innerHTML += " "; randomad; } function randomad{ var ad = ads_text[Math.round(Math.random * ads_text.length)]; document.getElementById("siteSub").innerHTML = "From Wikinews,"+ad; setTimeout("randomad;", 10000); } addLoadEvent(doAdOnload);