中文(繁体)
<!-- 把以下程式碼加入<body>區域--> <!-- web http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs- -> <html> <head> <title>建站學院特效代碼->>可移動、可關閉、可導航的顯示層</title> <meta http-equiv="Content-Type" content="text/html ; charset=gb2312"> </head> <body bgcolor=#FFFFFF > <style> <!-- #postit{ position:absolute; width:250; padding:5px; background-color:lightyellow; borderorder:1px solid black ; visibility:hidden; z-index:100; cursor:hand; } --> </style> <div id="postit" style="left:150px;top:150px"> <div align="right"> <b><a href="javascript:closeit()">[關閉]</a></b></div> <b>Webjx.com:</b><br> <p><font size ="2" face="Arial"><a href="http://www.downcodes.com" target="_new">專業建站學院站經典實例、教程庫<br> </a>匯集最多網頁技巧教學程式素材網頁特效的專業網站! </font></p> </div> <script> var once_per_browser=0 var ns4=document.layers var ie4=document.all var ns6=document.getElementById&&!document.all if (ns4) crossobj=document.getElementById&&!document.all if (ns4) crossobj=document.layers .postit else if (ie4||ns6) crossobj=ns6? document.getElementById("postit") : document.all.postit function closeit(){ if (ie4||ns6) crossobj.style.visibility="hidden" else if (ns4) crossobj.visibility="hide" } function get_cookie4(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie4.length > 0) { offset = document.cookie4.indexOf (search) if (offset != -1) { // if cookie4 exists offset += search.length // set index of beginning of value end = document.cookie4.indexOf(";", offset); // set index of end of cookie4 value if (end == -1) end = document.cookie4.length; returnvalue=unescape(document.cookie4.substring(offset, end)) } } return returnvalue; } function showornot(){ if (get_cookie44 if (get_cookie4 ('postdisplay')==''){ showit() document.cookie4="postdisplay=yes" } } function showit(){ if (ie4||ns6) crossobj.style.visibility="visible" else if (ns4 ) crossobj.visibility="show" } if (once_per_browser) showornot() else showit() </script> <script language="JavaScript1.2"> //drag drop function for ie4+ and NS6//// /// ///////////////////////////////////////////////////// crossobj.style.left=tempx+event .clientX-offsetx crossobj.style.top=tempy+event.clientY-offsety return false } else if (ns6&&dragapproved){ crossobj.style.left=tempx+e.clientX-offsetx crossobj.style.top=tempy+e.pclient -offsety return false } } function initializedrag(e){ if (ie4&&event.srcElement.id=="postit"||ns6&&e.target.id=="postit"){ offsetx=ie4? event.clientX : e.clientX offsetyclientX offsetyclientX offsety =ie4? event.clientY : e.clientY tempx=parseInt(crossobj.style.left) tempy=parseInt(crossobj.style.top) dragapproved=true document.onmousemove=drag_opop } } document.onmosdowndownsmml.edoop. Function("dragapproved=false") </script> <!----------------------------------> < /body> </html>