var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1 var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1 //Specify IFRAME display attributes var iframeprops='width="960" height="585" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"' //Specify random URLs to display inside iframe var randomcontent=new Array() randomcontent[0]="http://www.pikachugame.com" //No need to edit after here if (ie||dom) document.write('') function random_iframe(){ if (ie||dom){ var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff iframeobj.src=randomcontent[Math.floor(Math.random()*randomcontent.length)] } } window.onload=random_iframe