仿QQ消息框
编程技术  /  houtizong 发布于 3年前   57
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>仿QQ消息框</TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT=""><SCRIPT language=javascript>//more javascript from http://Www.VeryAsp.Netwindow.onload = enetgetMsg;window.onresize = enetresizeDiv;window.onerror = function(){}var enetdivTop,enetdivLeft,enetdivWidth,enetdivHeight,enetdocHeight,enetdocWidth,enetobjTimer,i = 0;function enetgetMsg(){try{enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)enetdivLeft = parseInt(document.getElementById("enetMeng").style.left,10)enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)enetdocWidth = document.body.clientWidth;enetdocHeight = document.body.clientHeight;document.getElementById("enetMeng").style.top = parseInt(document.body.scrollTop,10) + enetdocHeight + 10;// enetdivHeightdocument.getElementById("enetMeng").style.left = parseInt(document.body.scrollLeft,10) + enetdocWidth - enetdivWidthdocument.getElementById("enetMeng").style.visibility="visible"enetobjTimer = window.setInterval("enetmoveDiv()",10)}catch(e){}} function enetresizeDiv(){i+=1if(i>600) enetcloseDiv()try{enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)enetdocWidth = document.body.clientWidth;enetdocHeight = document.body.clientHeight;document.getElementById("enetMeng").style.top = enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10)document.getElementById("enetMeng").style.left = enetdocWidth - enetdivWidth + parseInt(document.body.scrollLeft,10)}catch(e){}}function enetmoveDiv(){try{if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10))){window.clearInterval(enetobjTimer)enetobjTimer = window.setInterval("enetresizeDiv()",1)}enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)document.getElementById("enetMeng").style.top = enetdivTop - 1}catch(e){}}function enetcloseDiv(){document.getElementById('enetMeng').style.visibility='hidden';if(enetobjTimer) window.clearInterval(enetobjTimer)}</SCRIPT></HEAD><BODY><DIV id=enetMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX: 99999; LEFT: 0px; VISIBILITY: visible; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 241px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: -200px; HEIGHT: 157px"> <TABLE WIDTH=255 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#DAE6FC"><TR><TD height="30" valign="top" background="qqimages/heihei_1.jpg"><table width="255" height="19" border="0" cellpadding="0" cellspacing="0"><tr><td width="212" valign="bottom"><strong><font size="2"> <font color="#FF6600">消息框</font></font></strong></td><td width="43" style="cursor:hand" onClick="enetcloseDiv()">X</td></tr></table> </TD></TR><TR><TD height="122" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr> <td width="95%"><table align="center" width="98%"><tr><td>欢迎你来到VeryAsp</td><tr></table></td></tr></table> </TD></TR><TR><TD></TD></TR></TABLE></div></BODY></HTML>
请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
技术博客集 - 网站简介:
前后端技术:
后端基于Hyperf2.1框架开发,前端使用Bootstrap可视化布局系统生成
网站主要作用:
1.编程技术分享及讨论交流,内置聊天系统;
2.测试交流框架问题,比如:Hyperf、Laravel、TP、beego;
3.本站数据是基于大数据采集等爬虫技术为基础助力分享知识,如有侵权请发邮件到站长邮箱,站长会尽快处理;
4.站长邮箱:[email protected];
文章归档
文章标签
友情链接