正文

用javascript作类似于QQ用户上线的消息提示框,兼容IE7,firefo2008-07-20 12:22:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/yzrj/36962.html

分享到:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> http://yzrj.programefan.com </title>
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="耗子先生" />
 </head>

 <body>
 
  <script type="text/javascript">
  <!--
document.writeln("  <div id=\"ShowAD\" style=\"position:absolute; z-index: 100;\"> ");
document.writeln("    <div id=\"ImgLayer\" style=\"position:absolute; z-index:1; left: 0px;\"> ");
document.writeln("      <img src=\"http://www.vzhangmen.com/images/200x130.gif\" width=\"200\" height=\"130\" border=\"0\" usemap=\"#ivrinMap\">");
document.writeln("<map name=\"ivrinMap\"><area shape=\"rect\" coords=\"180,0,200,20\" href=\"#\" onclick=\"CloseIVR();return false;\" target=\"_self\"><area shape=\"rect\" coords=\"0,20,200,130\" href=\"http://www.svnhost.cn"+document.domain+"\" target=\"_blank\"></map>");
document.writeln("    </div>");
document.writeln("</div>");

var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var adst = document.getElementById("ShowAD").style;
adst.top = ( bodyfrm.clientHeight - 130 ) + "px";
adst.left = ( bodyfrm.clientWidth - 200 ) + "px";
function moveR() {
    adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 130 ) + "px";
    adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 200 ) + "px";
}
setInterval("moveR();", 80);
function CloseIVR(){
    adst.display='none';
}
  //-->
  </script>
 </body>
</html>

阅读(2159) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册