I use this code;
ie7 and mozilla fixed okCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <style type="text/css"> #dynstuff { position:fixed; } </style> </head> <script language="JavaScript1.2"> //Random iframe content- © Dynamic Drive (www.dynamicdrive.com) //For full source code, and Terms Of use, visit http://dynamicdrive.com //This credit MUST stay intact for use 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=260 height=260 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"' //Specify random URLs to display inside iframe var randomcontent=new Array() randomcontent[0]="/ab.html" randomcontent[1]="random2.htm" randomcontent[2]="random3.htm" randomcontent[3]="random4.htm" //No need to edit after here if (ie||dom) document.write('<iframe id="dynstuff" src="" '+iframeprops+'></iframe>') 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 </script>
but ie6 not fixed.
can anyone help



Reply With Quote


Bookmarks