<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>外部 Js を導入する必要がある場合は、更新して実行する必要があります </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 "']"); <br> else <br> { <br> return eval ('document.all.' objName); <br> } <br>} <br>function switchTab(tabpage,tabid,action,type){ <br> var oItem = $(tabpage); > for(var i=1;i var x = $(type 'Tab' i) <br> //alert(x); <br> x.className = "マウスハンド" ; <br> //var y = x.getElementsByTagName('a'); <br> //y[0].style.color="#333333"; <br> $(tabid).className = "選択済み" ; <br> //gethotimagelist(type '_' action); <br> $(action).style.display="block"; function closeall(action ){ <br>for(var ii=1; iivar noclose; <br>noclose="div" ii; <br>$ (noclose).style.display="none" <br>} <br>} <br>} <br></script><br><br> </div>