中文(繁体)
<!-- 完整的HTTML程式碼如下: --> <!-- 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 > <!--------------------------------> <腳本語言=javascript> ie4 =(document.all)?真:假; ns4=(document.layers)?true:false;函數 toExit(){ var args=toExit.arguments; var 可見=args[0]; if(ns4){ theObj=eval("document.layers['"+args[1]+"']"); if(theObj)theObj.visibility=可見; } else if(ie4){ if(visible=='show')visible='visible'; if(visible=='隱藏')visible='隱藏'; theObj=eval("document.all['"+args[1]+"']"); if(theObj)theObj.style.visibility=可見; } } </script> <div id=boysoft style="HEIGHT: 80px; LEFT: 309px; POSITION: Absolute; TOP: 150px; VISIBILITY:hidden; WIDTH: 180px; Z-INDEX: 1"> <table bgcolor=# 356f66 border=1 cellpadding=0 cellspacing=0 height=80 width=180> <tbody> <tr> <td height=65 width="100%"> <table border=0 cellthpadding=0 cellspacing=0 height=80 widthpad ="99%"> <tbody> <tr> <td height=57> <font color=#ffffff>你看,這是一個隱藏的層,不過現在你可以看到了。 /font></td> </tr> <tralign="center"> <td height=23 width="100%"><a href="javascript:toExit('hide','boysoft')"> < font color=white>關掉此視窗</font></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> < / div> <a href="javascript:toExit('show','boysoft')"><font color="#0000FF">打開隱藏層</font></a> <!------ - ---------------------------> </body> </html>