本人在它的基础上添加的内容控制的效果
<script> <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> } <BR> else <BR> { <BR> return eval('document.all.' + objName); <BR> } <BR>} <BR>function switchTab(tabpage,tabid,action,type){ <BR> var oItem = $(tabpage); <BR> 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 = "Selected"; <BR> //gethotimagelist(type+'_'+action); <BR> closeall(action); <BR> $(action).style.display="block"; <BR>} <BR>function closeall(action){ <BR>for(var ii=1; ii<5; ii++){ <BR>var noclose; <BR>noclose="div"+ii; <BR>if (noclose!=action){ <BR>$(noclose).style.display="none"; <BR>} <BR>} <BR>} <BR></script>