中文(繁体)
<!-- 將以下程式碼加入 head 區域內--> <head> <SCRIPT language=javascript> //來自 http://www.downcodes.com 的更多 javascript window.onload = enetgetMsg; window.onresize = enetresizeDiv; window.onerror = function(){} var enetdivTop,enetdivLeft,enetdivWidth,enetdivHeight,enetdocHeight,enetdocWidth,enetobjTimer,i = 0;函數 enetgetMsg() { 嘗試{ enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10) enetdivLeft = parseInt(document.getElementById("enetMeng").style.left,10) enet(Heightco) .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;// enetdivHeight document.getElementById("enetMeng").style.leftdivHeight document.getElementById("enetMeng").style.leftdivHeight document.getElementById("enetMeng").style.leftdivh. scrollLeft,10) + enetdocWidth - enetdivWidth document.getElementById("enetMeng").style.visibility="visible" enetobjTimer = window.setInterval("enetmoveDiv()",10) } catch(e){net}Div(unction etion) { i+=1 if(i>600) enetcloseDiv() try{ enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10) enetdivWidth = parseInt(document.getElementByyId("netenetMy. = 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 - enet.como. scrollLeft,10) } catch(e){} } function enetmoveDiv() { try { if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight - enetdivHeight + parsebodyInt(document. ) .scrollTop,10))) { window.clearInterval(enetobjTimer) enetobjTimer = window.setInterval("enetresizeDiv()",1) } enetdivTop = parseInt(document.getElementById("enetMeng").style.top, 。 if(enetobjTimer) window.clearInterval(enetobjTimer) } </SCRIPT> <!--將下列程式碼加入BODY區域內--> <DIV id=enetMeng style="BORDER-RIGHT: #455690 1pxsolid; BORDER-TOP : #a6b4cf 1px 實心;左:0px;可見性:#a6b4cf 1px 實心;寬度:#455690 頂部:-200px; ; 高度: 157px"> <表格寬度=255 邊框=0 CELLPADDING=0 bELLScolorING=0 DAE6FC"> <TR> <TD height="30" valign="top" 背景="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"><表格寬度="100% " border="0" cellspacing="0" cellpadding="1"> <tr> <td width= "95%"><tablealign="center" width="98%"><tr><td> 歡迎您來到建站學院http://www.downcodes.com</td><tr></table> </td> </tr> </table> </TD> </TR> <TR> <TD ></TD> </TR> </TABLE></div>