如题,
代码如下,这是那里的原因?最好能帮给改一下,谢了!<SCRIPT language=vbscript>
sub func_mainbody(m_sep)
if trim(m_sep) = "" then exit sub select case trim(m_sep)
case "1"
document.all.all1.style.display = "block"
document.all.all2.style.display = "none"
document.all.all3.style.display = "none"
case "2"
document.all.all1.style.display = "none"
document.all.all2.style.display = "block"
document.all.all3.style.display = "none"
case "3"
document.all.all1.style.display = "none"
document.all.all2.style.display = "none"
document.all.all3.style.display = "block"
end select
end sub
</SCRIPT>
<!--三联版面1-->
<div id="all1" class="div_guige" style="height:274px; display: block;">
<div class="div_cen" style="width:59px;"><img src="images/cen_photo/index_cen_17.gif" width="59" height="11" /><a href="javascript:func_mainbody('1');"><img src="images/cen_photo/index_cen_19.png" width="59" height="86" border="0" /></a><a href="javascript:func_mainbody('2');"><img src="images/cen_photo/index_cen_20.gif" width="59" height="81" border="0" /></a><a href="javascript:func_mainbody('3');"><img src="images/cen_photo/index_cen_21.gif" width="59" height="82" border="0" /></a><img src="images/cen_photo/index_cen_22.gif" width="59" height="14" /></div>
<div class="div_cen" style="width:927px; background-image:url(images/cen_photo/index_cen_18.gif)">
</div>
</div>
<!--三联版面1 end-->
<!--三联版面2-->
<div id="all2" class="div_guige" style="height:274px; display: none;">
<div class="div_cen" style="width:59px;"><img src="images/cen_photo/index_cen_02_17.gif" width="59" height="11" /><a href="javascript:func_mainbody('1');"><img src="images/cen_photo/index_cen_02_19.png" width="59" height="86" border="0" /></a><a href="javascript:func_mainbody('2');"><img src="images/cen_photo/index_cen_02_20.gif" width="59" height="81" border="0" /></a><a href="javascript:func_mainbody('3');"><img src="images/cen_photo/index_cen_02_21.gif" width="59" height="82" border="0" /></a><img src="images/cen_photo/index_cen_02_22.gif" width="59" height="14" /></div>
<div class="div_cen" style="width:927px; background-image:url(images/cen_photo/index_cen_02_18.gif)">
</div>
</div>
<!--三联版面2 end-->
<!--三联版面3-->
<div id="all3" class="div_guige" style="height:274px; display:none;">
  <div class="div_cen" style="width:59px;"><img src="images/cen_photo/index_cen_03_17.gif" width="59" height="11" /><a href="javascript:func_mainbody('1');"><img src="images/cen_photo/index_cen_03_19.png" width="59" height="86" border="0" /></a><a href="javascript:func_mainbody('2');"><img src="images/cen_photo/index_cen_03_20.gif" width="59" height="81" border="0" /></a><a href="javascript:func_mainbody('3');"><img src="images/cen_photo/index_cen_03_21.gif" width="59" height="82" border="0" /></a><img src="images/cen_photo/index_cen_03_22.gif" width="59" height="14" /></div>
<div class="div_cen" style="width:927px; background-image:url(images/cen_photo/index_cen_03_18.gif)">
</div>
</div>
<!--三联版面3 end-->

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【vcbenben】截止到2008-07-29 09:46:13的历史汇总数据(不包括此帖):
    发帖的总数量:1                        发帖的总分数:20                       每贴平均分数:20                       
    回帖的总数量:0                        得分贴总数量:0                        回帖的得分率:0%                       
    结贴的总数量:1                        结贴的总分数:20                       
    无满意结贴数:0                        无满意结贴分:0                        
    未结的帖子数:0                        未结的总分数:0                        
    结贴的百分比:100.00%               结分的百分比:100.00%                  
    无满意结贴率:0.00  %               无满意结分率:0.00  %                  
    敬礼!
      

  2.   

    FF不支持vbscript或者ActiveX。
    它只默认支持javascript-_-#
      

  3.   


       <script type="text/javascript">
      function func_mainbody(m_sep){
        if(m_sep == null || m_sep ==""){
         return false;
       }
       switch(m_sep){
        case '1':
           document.getElementById("all1").style.display = "block";
           document.getElementById("all2").style.display = "none";
           document.getElementById("all3").style.display = "none";
           break;
       case '2':
           document.getElementById("all1").style.display = "none";
           document.getElementById("all2").style.display = "block";
           document.getElementById("all3").style.display = "none";
           break;
         case '3':
           document.getElementById("all1").style.display = "none";
           document.getElementById("all2").style.display = "none";
           document.getElementById("all3").style.display = "block";
           break;
       default:
           break;  
       }
      }
    </script>
      

  4.   

    怎么一个问题多发啊。FF不支持vbscript和ActiveX。
    它只默认支持javascript。