ภาษาไทย
<!--把下列代码加到head区域内--> <head> <SCRIPT language=javascript> // javascript เพิ่มเติมจาก http://www.downcodes.com 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) 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;// enetdivHeight document.getElementById("enetMeng").style.left = parseInt(document.body. scrollLeft,10) + enetdocWidth - enetdivWidth document.getElementById("enetMeng").style.visibility="visible" enetobjTimer = window.setInterval("enetmoveDiv()",10) } catch(e){} } ฟังก์ชัน enetresizeDiv() { i+=1 if(i>600) enetcloseDiv() ลอง{ 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){} } ฟังก์ชั่น enetmoveDiv() { ลอง { 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) เอกสาร getElementById("enetMeng").style.top = enetdivTop - 1 } catch(e){} } ฟังก์ชั่น enetcloseDiv() { document.getElementById('enetMeng').style.visibility='hidden'; if(enetobjTimer) window.clearInterval(enetobjTimer) } </SCRIPT> <!--把下列代码加到BODY区域内--> <DIV id=enetMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP : #a6b4cf 1px solid; WIDTH: 241px; BORDER-BOTTOM: #455690 1px solid; 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>< ขนาดตัวอักษร="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%"><table align="center" width="98%"><tr><td> ชัดเจน คุณทำสำเร็จแล้วhttp://www.downcodes.com</td><tr></table></td> </tr> </table> </TD> </TR> <TR> <TD ></TD> </TR> </TABLE></div>