我有:var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=100:imgheight=100
 function myload()
{
if (navigator.appName == "Netscape")
{document.dangdang.pageY=pageYOffset+window.innerHeight-imgheight;
document.dangdang.pageX=+window.innerWidth-120;
mymove();
}
else
{
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
dangdang.style.left=document.body.offsetWidth-120;
mymove();
}
}
 function mymove()
 {
 if(document.ns)
 {
 document.dangdang.top=pageYOffset+window.innerHeight-imgheight;
 document.dangdang.left=pageXOffset+window.innerWidth-120;
 setTimeout("mymove();",80)
 }
 else
 {
 dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
 dangdang.style.left=document.body.scrollLeft+document.body.offsetWidth-120;
 setTimeout("mymove();",80)
 }
 }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=dangdang top=300 width=80 height=88>把这个连接该成自己的<a href=../html/index.htm target=_blank>把这个图片路径改成自己的<img src=../html/love.GIF border='0' width=80 height=80></a></layer>");
myload()}
else
{
document.write("<div id=dangdang style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>把这个连接该成自己的<a href=../html/index.htm target=_blank>把这个图片路径改成自己的<img src=../html/love.GIF border=0 width=80 height=80></a></div>");
myload()
}
然后在你的网页的<body>之间写入下面的一段代码
<script src=这个地方写上你刚才新建的文件的路径和名称></script>