<div class="htmlarea"> <textarea id="runcode22088"> <style> body { font-family: Arial,"宋体"; font-size:9pt; } td { font-size:12px;; } .mousehand{ cursor:hand; } .titletable{ padding-left:5px; background-color:#E9E9E9; } table.TabBarLevel1{ } table.TabBarLevel1 td{ border:1px solid #CCCCCC; height:20px; background-color:#E1E1E1; } table.TabBarLevel1 td.Selected{ border-bottom-width:0px; background-color:#ffffff; } table.TabBarLevel1 td.Black{ border-left-width:0px; border-top-width:0px; border-right-width:0px; background-color:#FFFFFF; } table.Content{ border-left:1px solid #CCCCCC; border-right:1px solid #CCCCCC; border-bottom:1px solid #CCCCCC; } </style> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="TabBarLevel1" id="TabPage1"> <tr align="center"> <td width="130" id="imageTab1" valign="middle" class="mousehand" onclick="javascript:switchTab('TabPage1','imageTab1','心开风神','image');">热门图片</td> <td width="7" class="Black"> </td> <td width="80" id="imageTab2" valign="middle" class="mousehand" onclick="javascript:switchTab('TabPage1','imageTab2','子虚乌有','image');">波希米亚</td> <td width="7" class="Black"> </td> <td width="80" id="imageTab3" valign="middle" class="Selected mousehand" onclick="javascript:switchTab('TabPage1','imageTab3','孤零飘客','image');">红色黑客</td> <td width="7" class="Black"> </td> <td width="" align="right" class="Black"> <a href="http://www.jb51.net">脚本之家</a> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Content"> <tr> <td height="110"><div id="divimagelist_all"> 正在加载...</div></td> </tr> </table> </td> </tr> </table> </textarea> <br><input onclick="runEx('runcode22088')" type="button" value="运行代码"><input onclick="doCopy('runcode22088')" type="button" value="复制代码"> <input onclick="doSave(runcode22088)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다. </div>]<br><br> 이를 바탕으로 컨텐츠 제어 추가 효과<div class="codetitle"><span><a style="CURSOR: pointer" data="13802" class="copybut" id="copybut13802" onclick="doCopy('code13802')"><u></u>코드 복사</a></span></div> 코드는 다음과 같습니다.<div class="codebody" id="code13802"> <br><br><script type=" text/javascript"> <br>function $(objName) <br>{ <br><br> if(document.getElementById) <br> { <br> return document.getElementById( objName); <br> } <br> else if(document.layers) <br> { <br> return eval("document.layers['" objName "']"); 🎜> return eval ('document.all.' objName) <br> } <br>} <br>function switchTab(tabpage,tabid,action,type){ <br> var oItem = $(tabpage); > for(var i=1;i<6;i ){ <BR> var x = $(type 'Tab' i) <BR> //alert(x) <BR> x.className = "mousehand" ; <BR> //var y = x.getElementsByTagName('a'); <BR> //y[0].style.color="#333333" <BR> } <BR> $(tabid).className = "선택됨" ; <BR> //gethotimagelist('_' 액션 입력); <BR> closeall(action) <BR> $(action).style.display="block" <BR> function closeall(action ){ <BR>for(var ii=1; ii<5; ii ){ <BR>var noclose; <BR>noclose="div" <BR>if (noclose!=action){ <BR>$ (noclose).style.display="none"; <BR>} <BR>} <BR>} <BR></script><br><br> </div>