right.js代码如下
var imgheight
var imgright
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=202:imgheight=202
window.screen.width>800 ? imgright=15:imgright=15
function myload()
{
if (navigator.appName == "Netscape")
{document.myright.pageY=pageYOffset+window.innerHeight-imgheight-200;
document.myright.pageX=imgright;
rightmove();
}
else
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-200;
myright.style.right=imgright;
rightmove();
}
}
function rightmove()
{
if(document.ns)
{
document.myright.top=pageYOffset+window.innerHeight-imgheight-200
document.myright.right=imgright;
setTimeout("rightmove();",20)
}
else
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-200;
myright.style.right=imgright;
setTimeout("rightmove();",20)
}
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
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 (navigator.appName == "Netscape")
{
document.write("<layer id=myright style='position:absolute; width:80px; height:203px; z-index:2; right: 10; top: 0;'><table width='100' height='203' border='0'cellspacing='0' cellpadding='0'align='center'><tr><td><img src='px/pxd_r1_c1.jpg' width='80' height='41' /><a href='index.htm'><img src='px/pxd_r2_c1.jpg' width='80' height='75' border='0' /></a></td></tr><tr><td><a href='league8.htm'><img src='px/pxd_r3_c1.jpg' width='80'height='87' border='0' /></a></td></tr><tr></tr></table></layer>");
myload()}
else
{
document.write("<div id=myright style='position:absolute; width:100px; height:203px; z-index:2; right: 10; top: 0;'><table width='97' height='183' border='0'cellspacing='0' cellpadding='0'align='center'><tr><td><img src='px/pxd_r1_c1.jpg' width='97' height='50' /></td></tr><tr><td><a href='index.htm'><img src='px/pxd_r2_c1.jpg' width='97' height='51' border='0' /></a></td></tr><tr><td><a href='league8.htm'><img src='px/pxd_r3_c1.jpg' width='97'height='82' border='0' /></a></td></tr><tr></tr></table></div>");
myload()
}
------------------------------
请教http://www.babypop.cn/edu.htm在显示的时间,老是会出现爆炸,怎么让它不爆炸呢?
[此贴子已经被作者于2006-5-18 15:56:48编辑过]