+ -
当前位置:首页 → 问答吧 → eclipse关闭的问题

eclipse关闭的问题

时间:2010-09-01

来源:互联网

谢谢啦。这个在ie下可以用。
火狐却不行
代码:
<script language="JavaScript">
<!--
done = 0;
step = 1
function anim(yp,yk)
{
if(document.layers) document.layers["napis"].top=yp;
else  document.all["napis"].style.top=yp;

if(yp>yk) step = -0.5
if(yp<60) step = 0.5

setTimeout('anim('+(yp+step)+','+yk+')', 10);
}
function start()
{
if(done) return
done = 1;

if(navigator.appName=="Netscape") {
  document.napis.left=innerWidth/2 - 200;
  anim(150,innerHeight - 100)
}
else {
  napis.style.left=document.body.offsetWidth/2 - 200;
  anim(150,window.screen.height - 200)
}

}

//-->
</script>
<style type="text/css">
<!--
.STYLE1 {
   font-size: 36px;
   color: #FFFF00;
}
-->
</style>

<div class="STYLE1" id="napis" style="position: absolute; top: 170px; width: 400px; height: 78px; left: 100px">免费电话:400-888-5205</div>
<script language="JavaScript">
<!--
setTimeout('start()',10);
//-->
</script>

作者: ghostry   发布时间: 2010-09-01

相关阅读 更多

热门下载

更多