日期:2014-05-16 浏览次数:20450 次
<script language="javascript" type="text/javascript">
<!--
// 浏览器兼容的获取节点方法
function $(objectId){
if(document.getElementById && document.getElementById(objectId)){
// W3C DOM
return document.getElementById(objectId);
}
else if (document.all && document.all(objectId)){
// MSIE 4 DOM
return document.all(objectId);
}
else if (document.layers && document.layers[objectId]){
// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];
}
else{
return false;
}
}
/* Script Form www.wangyou.com */
var now_show_id =0 ;
function swap(id,bool)
{
//alert(bool);
if(id == now_show_id )return true;
now_show_id =id ;
for(var i=1;i<=12;i++)
{
if(bool)
{
if($('b'+i) != null){
$("b"+i).style.display = bool ? 'none' : 'block';
$("s"+i).style.display = bool ? 'block' : 'none';
}
}
}
$("b"+id).style.display = bool ? 'block' : 'none';
$("s"+id).style.display = bool ? 'none' : 'block';
}
var now_id = 1;
function swap1(id,bool)
{
//alert(bool);
if(id == now_id )return true;
now_id =id ;
for(var i=1;i<=12;i++)
{
if(bool)
{
if($('d'+i) != null){
$("d"+i).style.display = bool ? 'none' : 'block';
$("a"+i).style.display = bool ? 'block' : 'none';
}
}
}
$("d"+id).style.display = bool ? 'block' : 'none';
$("a"+id).style.display = bool ? 'none' : 'block';
}
/* End Script */
//-->
</script>