index.htm框架页
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>团购旅行网后台管理平台</title>
<script language="javascript">
function switchSysBar(){
   if (menu.switchPoint.innerText == 3){
       menu.switchPoint.innerText = 4
      midfrm.cols="0,15,*";
   }
   else{
  menu.switchPoint.innerText = 3
  midfrm.cols="144,9,*";
   }
}
</script>
<script language="javascript">
<!--
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
//-->
</script> 
</head><frameset rows="41,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="top.htm" name="top" scrolling="No" noresize="noresize" id="top" title="topFrame" />
 <frameset rows="*" cols="144,9,*" name="midfrm" framespacing="0" frameborder="NO" border="0">
  <frame src="lefttree.htm" name="left" scrolling="NO" noresize id="left">
  <frame name="menu" scrolling="no" noresize src="switchbar.htm" >
  <frame src="about:blank" name="main" id="main">
</frameset>
</frameset>
<noframes>
<body>
<p>此网页使用了框架,但您的浏览器不支持框架。</p>
</body>
</noframes></html>
收藏条switchbar.htm
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="images/roccss.css" type=text/css rel=stylesheet>
<STYLE type=text/css>.np {
FONT-SIZE: 18px; CURSOR: hand; COLOR: red; FONT-FAMILY: Webdings
}
</STYLE><META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width=15 border=0>
  <TBODY>
  <TR class=kzt_bg>
    <TD vAlign=center align=middle height="100%"><span class="np" id="switchPoint" onClick="parent.switchSysBar()" title="打开/关闭导航">3</span></TD></TR></TBODY></TABLE></BODY></HTML>
请大家研究研究如何将index.htm里的js里的3和4改为相对应的两个图片

解决方案 »

  1.   

    FONT-FAMILY: Webdings 已将 数字 3 4 转成 小图标 了
    你想换成什么图片 ??把3  换成 <img src="close.gif">
    把4  换成 <img src="open.gif">是这样吗?脚本 的innerText 换成innerHtml 就好了
      

  2.   

    <script language="javascript" > 
    function switchSysBar(){ 
       if (menu.switchPoint.innerText == 3){ 
           menu.switchPoint.innerText = 4 
          midfrm.cols="0,15,*"; 
       } 
       else{ 
      menu.switchPoint.innerText = 3 
      midfrm.cols="144,9,*"; 
       } 

    </script > 
    在这里如何换?
      

  3.   

    是的
    function switchSysBar(){  
       if (menu.switchPoint.innerHtml == "<img src=\"close.gif\""> ){  
           menu.switchPoint.innerHtml = "<img src=\"open.gif\""  
          midfrm.cols="0,15,*";  
       }  
       else{  
      menu.switchPoint.innerHtml = "<img src=\"close.gif\""  
      midfrm.cols="144,9,*";  
       }  
    }  
    下面也换下
    <span class="np" id="switchPoint" onClick="parent.switchSysBar()" title="打开/关闭导航" >3 </span >具体要调试下
    其实也有比较好的办法