|
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
本人在它的基础上添加的内容控制的效果
复制代码 代码如下:
<script type="text/javascript">
function $(objName)
{
if(document.getElementById)
{
return document.getElementById(objName );
}
else if(document.layers)
{
return eval("document.layers['" + objName +"']");
}
else
{
return eval('document.all.' + objName);
}
}
function switchTab(tabpage,tabid,action,type){
var oItem = $(tabpage);
for(var i=1;i<6;i++){
var x = $(type + 'Tab' + i);
//alert(x);
x.className = "mousehand";
//var y = x.getElementsByTagName('a');
//y[0].style.color="#333333";
}
$(tabid).className = "Selected";
//gethotimagelist(type+'_'+action);
closeall(action);
$(action).style.display="block";
}
function closeall(action){
for(var ii=1; ii<5; ii++){
var noclose;
noclose="div"+ii;
if (noclose!=action){
$(noclose).style.display="none";
}
}
}
</script>