低压断路器选型指南
源代码在线查看: float.js
var innerWidth = document.body.offsetWidth; var innerHeight = document.body.offsetHeight; var leftOff; document.ns = navigator.appName == "Microsoft Internet Explorer"; if (document.ns) { leftOff = 130; } else { leftOff = 110; } function myload() { document.getElementById("followDiv1").style.top=parseInt(document.body.scrollTop)+"px"; document.getElementById("followDiv1").style.left=parseInt(parseInt(document.body.offsetWidth)+10)+"px"; document.getElementById("followDiv2").style.top=parseInt(document.body.scrollTop)+"px"; document.getElementById("followDiv2").style.left=parseInt(parseInt(document.body.offsetWidth)-130)+"px"; mymove(); } function mymove() { document.getElementById("followDiv1").style.top=parseInt(document.body.scrollTop)+"px"; document.getElementById("followDiv1").style.left=parseInt(parseInt(document.body.scrollLeft)+10)+"px"; document.getElementById("followDiv2").style.top=parseInt(document.body.scrollTop)+"px"; document.getElementById("followDiv2").style.left=parseInt(parseInt(document.body.scrollLeft)+parseInt(document.body.offsetWidth)-leftOff)+"px"; setTimeout("mymove();",50); } function MM_reloadPage(init) { if (init==true) with (navigator) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; } else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) { location.reload(); } } MM_reloadPage(true); if(document.body.offsetWidth>800){ document.write(""); document.write(""); myload(); }