请问有没办法让网页浮标滚动到某个高度时就消失呢? 网页浮标指的是什么呢?如果是浮动的层,可以判断它的style.top值if(parseInt(oDiv.style.top) > 300 ) oDiv.style.visibility='hidden'; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是这种:<script>var imgheightdocument.ns = navigator.appName == "Netscape"window.screen.width>800 ? imgheight=100:imgheight=100 function myload(){if (navigator.appName == "Netscape"){document.myitcom.pageY=pageYOffset+window.innerHeight-imgheight;document.myitcom.pageX=+window.innerWidth-120;mymove();}else{myitcom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;myitcom.style.left=document.body.offsetWidth-120;mymove();}}function mymove() { if(document.ns) { document.myitcom.top=pageYOffset+window.innerHeight-imgheight; document.myitcom.left=pageXOffset+window.innerWidth-120; setTimeout("mymove();",50) } else { myitcom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight; myitcom.style.left=document.body.scrollLeft+document.body.offsetWidth-100; setTimeout("mymove();",50) } }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=myitcom top=300 width=80 height=80><a href='http://www.123.com/' target=_blank><img src='8080.gif' width='80' height='80' border='0' vspace='0'></A></layer>");myload()}else{document.write("<div id=myitcom style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><a href='http://www.123.com/' target=_blank><img src='8080.gif' width='80' height='80' border='0' vspace='0'></A></div>");myload()}</script> MyEclipse8.5安装aptana,谢谢啦 如何得到字符串里面的值??????????? 机顶盒不支持js怎么办?请高手解决! Easy UI dialog 是个垃圾东西吗 如何获取同名控件的个数啊? 关于js日历无法弹出的问题 求一个省市联动的javascript写下拉列表框,多谢!!! 如何实现和QQ列表相反的功能,, 就是横向控制移动 关于js控制gridview添加和删除行 jquery隐藏/显示前台中所有table 地图问题,双击鼠标让图片自动定位中间。 (100分请教)如何实现baidu、hao123、265等的网页缓存技术
var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=100:imgheight=100 function myload()
{
if (navigator.appName == "Netscape")
{document.myitcom.pageY=pageYOffset+window.innerHeight-imgheight;
document.myitcom.pageX=+window.innerWidth-120;
mymove();
}
else
{
myitcom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myitcom.style.left=document.body.offsetWidth-120;
mymove();
}
}function mymove()
{
if(document.ns)
{
document.myitcom.top=pageYOffset+window.innerHeight-imgheight;
document.myitcom.left=pageXOffset+window.innerWidth-120;
setTimeout("mymove();",50)
}
else
{
myitcom.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myitcom.style.left=document.body.scrollLeft+document.body.offsetWidth-100;
setTimeout("mymove();",50)
}
}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=myitcom top=300 width=80 height=80><a href='http://www.123.com/' target=_blank><img src='8080.gif' width='80' height='80' border='0' vspace='0'></A></layer>");
myload()}
else
{
document.write("<div id=myitcom style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><a href='http://www.123.com/' target=_blank><img src='8080.gif' width='80' height='80' border='0' vspace='0'></A></div>");
myload()
}
</script>