| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 543 人关注过本帖
标题:目录收缩问题
取消只看楼主 加入收藏
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
 问题点数:0 回复次数:5 
目录收缩问题
下面的代码目录不能收缩 各位大侠帮忙看看
这个是收缩函数的
程序代码:
<SCRIPT language="javascript">
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
alert("0");
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
alert("1");
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
下面是内容的代码
程序代码:
<div id=mulu >
          <ul>
           <%
           sql="select * from p_class where parentid=0"
           set rs=conn.execute(sql)
           if rs.eof then
           else
           do while not rs.eof
           %>
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(<%=rs("id")%>)><%=rs("class")%></li>
               <%
            sql2="select * from p_class where parentid="&rs("id")
            set rs2=conn.execute(sql2)
            if rs2.eof then
            else
            do while not rs2.eof %>
            <li <%response.Write("id=submenu"&rs("id")&"")%> ><%=rs2("class")%></li>
           <%  rs2.movenext
           loop
           end if
             rs.movenext
            loop
            end if
           %>
          </ul>
          </div>
我试了一下 把最里面的do while 循环去掉才有用
这是怎么回事啊

我新建了一个文档试了一下只要用到do while 都没用了

搜索更多相关主题的帖子: 目录 
2010-04-19 20:23
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
得分:0 
不是的  我从书上找的 我也试验过了 不用 do while语句时是可以实现 收缩的
2010-04-20 12:58
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
得分:0 
回复 4楼 yms123
程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.">
<html xmlns="http://www.">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<link href="images/bass.css" rev="stylesheet" rel="stylesheet" type="text/css" media="all" />

<SCRIPT language="javascript">
function showsubmenu(sid)
{
alert(sid);
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
alert("0");
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
alert("1");
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT><style type="text/css">
<!--
.STYLE5 {font-size: 9px}
.STYLE6 {font-size: 12px}
-->
</style>
</head>

<body class="body">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="780%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="187"><img src="images/index_01.gif" width="780" height="187" alt="" /></td>
      </tr>
    </table>
      <table width="100%" height="35" border="0" cellspacing="0" cellpadding="0" class="dhyi">
        <tr>
          <td width="5" height="35" background="images/index_03.gif">&nbsp;</td>
          <td background="images/index_04.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
             
              <td class="dhbg"><a href="index.asp">首页</a></td>
              <td class="dhbg"><a href="about.asp">公司简介</a></td>
              <td class="dhbg"><a href="product.asp">产品中心</a></td>
              <td class="dhbg"><a href="book.asp">客户留言</a></td>
              <td height="35" class="dhbg"><a href="contact.asp">联系我们</a></td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td width="4" background="images/index_08.gif">&nbsp;</td>
        </tr>
      </table> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td width="199"><table class="dl_top"  width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="28"><img src="images/index_14.gif" width="199" height="28" alt="" /></td>
        </tr>
        <tr>
       
          <td height="165" background="images/index_19.gif"><form id="form1" name="form1" method="post" action="check.asp?login=true">
            <p class="STYLE5">&nbsp;</p>
            <p class="STYLE5"><span class="STYLE6">  用户名</span>:
              <input class="font_height" name="username" type="text" id="textfield" size="15" />
            </p>
            <label></label>
                              <p><span class="STYLE6"> 密<span class="STYLE5"> </span>码:</span>
                                <input  class="font_height"name="password" type="text" id="textfield2" size="15" />
                                <label><br />
                                <br />
                                <br />
                                  
                                 <input type="image" name="imageField" id="imageField" src="images/index_23.gif" />
                                </label>  
                                <label>
              <input type="image" name="imageField2" id="imageField2" src="images/index_25.gif" />
              </label>
              </p>
                              <p>&nbsp;</p>
          </form>          </td>
         
        </tr>
        <tr>
          <td height="1" background="images/dl_buttom.gif" class="dlyi"></td>
        </tr>
      </table>     
      <table  class="mululie" width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="14" background="images/index_44.gif">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" align="left" ><div id=mulu >
          <ul>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(18)>充电器&电池</li>
              
           
            <li class="small" id=submenu18 >充电器</li>
          
           
            <li class="small" id=submenu18 >Ni Mh 电池</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(19)>电器械</li>
              
           
            <li class="small" id=submenu19 >电熨斗</li>
          
           
            <li class="small" id=submenu19 >定时器</li>
          
           
            <li class="small" id=submenu19 >电线连接器</li>
          
           
            <li class="small" id=submenu19 >开关</li>
          
           
            <li class="small" id=submenu19 >吸尘器</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(20)>普通灯及台灯</li>
              
           
            <li class="small" id=submenu20 >节能灯</li>
          
           
            <li class="small" id=submenu20 >台灯</li>
          
           
            <li class="small" id=submenu20 >吊灯</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(21)>裁缝机器</li>
              
           
            <li class="small" id=submenu21 >家庭缝纫机</li>
          
           
            <li class="small" id=submenu21 >工业缝纫机</li>
          
          </ul>
          </div></td>
        </tr>
      </table>     
      <table width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="193" valign="top"><table class="" width="199" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="32" background="images/index_58.gif">&nbsp;</td>
              </tr>
            <tr>
              <td height="150" background="images/index_60.gif">&nbsp;</td>
              </tr>
           
            <tr>
              <td bgcolor="#3884FF">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
      </table></td>
    <td><table  class="search"width="581" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40"><form id="form2" name="form2" method="post" action="product.asp?search=true">
              产品搜索  
      <label>
      <input name="guanjian" class="font_height" type="text" id="textfield3" value="关键字" />
      </label>
      <label>
      <select   class="font_height1" name="p_select" id="select">
        <option selected="selected"  value=0>请选择相应产品</option>
          
         
          <option value="18">充电器&电池</option>
              
        
            <option  class="sele" value="22">&nbsp;&nbsp;&nbsp;&nbsp;充电器</option>
          
        
            <option  class="sele" value="23">&nbsp;&nbsp;&nbsp;&nbsp;Ni Mh 电池</option>
          
         
          <option value="19">电器械</option>
              
        
            <option  class="sele" value="24">&nbsp;&nbsp;&nbsp;&nbsp;电熨斗</option>
          
        
            <option  class="sele" value="25">&nbsp;&nbsp;&nbsp;&nbsp;定时器</option>
          
        
            <option  class="sele" value="26">&nbsp;&nbsp;&nbsp;&nbsp;电线连接器</option>
          
        
            <option  class="sele" value="32">&nbsp;&nbsp;&nbsp;&nbsp;开关</option>
          
        
            <option  class="sele" value="33">&nbsp;&nbsp;&nbsp;&nbsp;吸尘器</option>
          
         
          <option value="20">普通灯及台灯</option>
              
        
            <option  class="sele" value="27">&nbsp;&nbsp;&nbsp;&nbsp;节能灯</option>
          
        
            <option  class="sele" value="28">&nbsp;&nbsp;&nbsp;&nbsp;台灯</option>
          
        
            <option  class="sele" value="29">&nbsp;&nbsp;&nbsp;&nbsp;吊灯</option>
          
         
          <option value="21">裁缝机器</option>
              
        
            <option  class="sele" value="30">&nbsp;&nbsp;&nbsp;&nbsp;家庭缝纫机</option>
          
        
            <option  class="sele" value="31">&nbsp;&nbsp;&nbsp;&nbsp;工业缝纫机</option>
          
       
            </select>
      </label>
      
    <label>
    <input type="image" name="imageField3" id="imageField3" src="images/gif-0282.gif" />
    </label>
    </form>    </td>
  </tr>
</table>
      <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="81" height="14" background="images/index_061.gif">&nbsp;</td>
          <td background="images/index_071.gif">                                    <a href="about.asp"><img src="images/gif-0350.gif" width="44" height="13" /></a></td>
        </tr>
        <tr>
          <td height="62" colspan="2">    宁波 GOOD-TURN 进出口有限公司是中国宁波 一家专业的传统公司,<br />
 我们主要是生产电器, 节能灯,缝纫机, 充点器和电池,这些广泛用于生活中<br />
 的产品远销国外很多个国家和地区像欧洲,美国,南美洲,中东和南非等地区。.<br />
 宁波 GOOD-TURN 进出口有限公司欢迎各位顾客跟我们联系。<br /></td>
          </tr>
      </table><table width="100%" border="0" cellspacing="0" cellpadding="0">
     
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">充电器&电池</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=18>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=458><img src=../uppics/2005121716335966748.jpg /></a></div><div class="ptitlefont">充电器 PP100</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=463><img src=../uppics/2005121716352961591.jpg /></a></div><div class="ptitlefont">电池 AAA800mAh</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">电器械</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=19>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=467><img src=../uppics/2005121721585776619.jpg /></a></div><div class="ptitlefont">PPIN1000</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=470><img src=../uppics/200512172244377892.jpg /></a></div><div class="ptitlefont">TS-ME20</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=474><img src=../uppics/2005121722103245447.jpg /></a></div><div class="ptitlefont">SD41</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=483><img src=../uppics/2005121722311440732.jpg /></a></div><div class="ptitlefont">TB-40 开关</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=514><img src=../uppics/2005121920122725939.jpg /></a></div><div class="ptitlefont">PP3001 清洁机</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">普通灯及台灯</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=20>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=489><img src=../uppics/2005121723302340453.jpg /></a></div><div class="ptitlefont">PLET3U</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=497><img src=../uppics/2005121723402488822.jpg /></a></div><div class="ptitlefont">KT015-11W 台灯</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=502><img src=../uppics/2005121723473078573.jpg /></a></div><div class="ptitlefont">TL3016-15W/18W/30W/36W/58W</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">裁缝机器</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=21>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=506><img src=../uppics/2005121723545455514.jpg /></a></div><div class="ptitlefont">LK0318</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=512><img src=../uppics/20051218063016062.jpg /></a></div><div class="ptitlefont">COMJPUTERIZED 刺绣品机器</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
          

 
</table>

     </td>
  </tr>
</table>
   
     
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="86" background="images/index_68.gif"><div id="footer">
            <div></div>
            <div align="center">&copy;2009 Namipan Corporation. All   Rights Reserved. - <a href="http://www." target="_blank">Copyright &copy; 2003-2008  All Rights Reserved .
页面执行时间:781.25000 毫秒
Powered by:网络之星 CMS </a> </div>
          </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
2010-04-20 18:12
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
得分:0 
回复 4楼 yms123
程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.">
<html xmlns="http://www.">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<link href="images/bass.css" rev="stylesheet" rel="stylesheet" type="text/css" media="all" />

<SCRIPT language="javascript">
function showsubmenu(sid)
{
alert(sid);
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
alert("0");
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
alert("1");
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT><style type="text/css">
<!--
.STYLE5 {font-size: 9px}
.STYLE6 {font-size: 12px}
-->
</style>
</head>

<body class="body">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="780%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="187"><img src="images/index_01.gif" width="780" height="187" alt="" /></td>
      </tr>
    </table>
      <table width="100%" height="35" border="0" cellspacing="0" cellpadding="0" class="dhyi">
        <tr>
          <td width="5" height="35" background="images/index_03.gif">&nbsp;</td>
          <td background="images/index_04.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
             
              <td class="dhbg"><a href="index.asp">首页</a></td>
              <td class="dhbg"><a href="about.asp">公司简介</a></td>
              <td class="dhbg"><a href="product.asp">产品中心</a></td>
              <td class="dhbg"><a href="book.asp">客户留言</a></td>
              <td height="35" class="dhbg"><a href="contact.asp">联系我们</a></td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td width="4" background="images/index_08.gif">&nbsp;</td>
        </tr>
      </table> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td width="199"><table class="dl_top"  width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="28"><img src="images/index_14.gif" width="199" height="28" alt="" /></td>
        </tr>
        <tr>
       
          <td height="165" background="images/index_19.gif"><form id="form1" name="form1" method="post" action="check.asp?login=true">
            <p class="STYLE5">&nbsp;</p>
            <p class="STYLE5"><span class="STYLE6">  用户名</span>:
              <input class="font_height" name="username" type="text" id="textfield" size="15" />
            </p>
            <label></label>
                              <p><span class="STYLE6"> 密<span class="STYLE5"> </span>码:</span>
                                <input  class="font_height"name="password" type="text" id="textfield2" size="15" />
                                <label><br />
                                <br />
                                <br />
                                  
                                 <input type="image" name="imageField" id="imageField" src="images/index_23.gif" />
                                </label>  
                                <label>
              <input type="image" name="imageField2" id="imageField2" src="images/index_25.gif" />
              </label>
              </p>
                              <p>&nbsp;</p>
          </form>          </td>
         
        </tr>
        <tr>
          <td height="1" background="images/dl_buttom.gif" class="dlyi"></td>
        </tr>
      </table>     
      <table  class="mululie" width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="14" background="images/index_44.gif">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" align="left" ><div id=mulu >
          <ul>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(18)>充电器&电池</li>
              
           
            <li class="small" id=submenu18 >充电器</li>
          
           
            <li class="small" id=submenu18 >Ni Mh 电池</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(19)>电器械</li>
              
           
            <li class="small" id=submenu19 >电熨斗</li>
          
           
            <li class="small" id=submenu19 >定时器</li>
          
           
            <li class="small" id=submenu19 >电线连接器</li>
          
           
            <li class="small" id=submenu19 >开关</li>
          
           
            <li class="small" id=submenu19 >吸尘器</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(20)>普通灯及台灯</li>
              
           
            <li class="small" id=submenu20 >节能灯</li>
          
           
            <li class="small" id=submenu20 >台灯</li>
          
           
            <li class="small" id=submenu20 >吊灯</li>
          
          <li class="big" style="CURSOR:hand"  onclick=showsubmenu(21)>裁缝机器</li>
              
           
            <li class="small" id=submenu21 >家庭缝纫机</li>
          
           
            <li class="small" id=submenu21 >工业缝纫机</li>
          
          </ul>
          </div></td>
        </tr>
      </table>     
      <table width="199" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="193" valign="top"><table class="" width="199" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="32" background="images/index_58.gif">&nbsp;</td>
              </tr>
            <tr>
              <td height="150" background="images/index_60.gif">&nbsp;</td>
              </tr>
           
            <tr>
              <td bgcolor="#3884FF">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
      </table></td>
    <td><table  class="search"width="581" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40"><form id="form2" name="form2" method="post" action="product.asp?search=true">
              产品搜索  
      <label>
      <input name="guanjian" class="font_height" type="text" id="textfield3" value="关键字" />
      </label>
      <label>
      <select   class="font_height1" name="p_select" id="select">
        <option selected="selected"  value=0>请选择相应产品</option>
          
         
          <option value="18">充电器&电池</option>
              
        
            <option  class="sele" value="22">&nbsp;&nbsp;&nbsp;&nbsp;充电器</option>
          
        
            <option  class="sele" value="23">&nbsp;&nbsp;&nbsp;&nbsp;Ni Mh 电池</option>
          
         
          <option value="19">电器械</option>
              
        
            <option  class="sele" value="24">&nbsp;&nbsp;&nbsp;&nbsp;电熨斗</option>
          
        
            <option  class="sele" value="25">&nbsp;&nbsp;&nbsp;&nbsp;定时器</option>
          
        
            <option  class="sele" value="26">&nbsp;&nbsp;&nbsp;&nbsp;电线连接器</option>
          
        
            <option  class="sele" value="32">&nbsp;&nbsp;&nbsp;&nbsp;开关</option>
          
        
            <option  class="sele" value="33">&nbsp;&nbsp;&nbsp;&nbsp;吸尘器</option>
          
         
          <option value="20">普通灯及台灯</option>
              
        
            <option  class="sele" value="27">&nbsp;&nbsp;&nbsp;&nbsp;节能灯</option>
          
        
            <option  class="sele" value="28">&nbsp;&nbsp;&nbsp;&nbsp;台灯</option>
          
        
            <option  class="sele" value="29">&nbsp;&nbsp;&nbsp;&nbsp;吊灯</option>
          
         
          <option value="21">裁缝机器</option>
              
        
            <option  class="sele" value="30">&nbsp;&nbsp;&nbsp;&nbsp;家庭缝纫机</option>
          
        
            <option  class="sele" value="31">&nbsp;&nbsp;&nbsp;&nbsp;工业缝纫机</option>
          
       
            </select>
      </label>
      
    <label>
    <input type="image" name="imageField3" id="imageField3" src="images/gif-0282.gif" />
    </label>
    </form>    </td>
  </tr>
</table>
      <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="81" height="14" background="images/index_061.gif">&nbsp;</td>
          <td background="images/index_071.gif">                                    <a href="about.asp"><img src="images/gif-0350.gif" width="44" height="13" /></a></td>
        </tr>
        <tr>
          <td height="62" colspan="2">    宁波 GOOD-TURN 进出口有限公司是中国宁波 一家专业的传统公司,<br />
 我们主要是生产电器, 节能灯,缝纫机, 充点器和电池,这些广泛用于生活中<br />
 的产品远销国外很多个国家和地区像欧洲,美国,南美洲,中东和南非等地区。.<br />
 宁波 GOOD-TURN 进出口有限公司欢迎各位顾客跟我们联系。<br /></td>
          </tr>
      </table><table width="100%" border="0" cellspacing="0" cellpadding="0">
     
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">充电器&电池</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=18>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=458><img src=../uppics/2005121716335966748.jpg /></a></div><div class="ptitlefont">充电器 PP100</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=463><img src=../uppics/2005121716352961591.jpg /></a></div><div class="ptitlefont">电池 AAA800mAh</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">电器械</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=19>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=467><img src=../uppics/2005121721585776619.jpg /></a></div><div class="ptitlefont">PPIN1000</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=470><img src=../uppics/200512172244377892.jpg /></a></div><div class="ptitlefont">TS-ME20</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=474><img src=../uppics/2005121722103245447.jpg /></a></div><div class="ptitlefont">SD41</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=483><img src=../uppics/2005121722311440732.jpg /></a></div><div class="ptitlefont">TB-40 开关</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=514><img src=../uppics/2005121920122725939.jpg /></a></div><div class="ptitlefont">PP3001 清洁机</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">普通灯及台灯</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=20>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=489><img src=../uppics/2005121723302340453.jpg /></a></div><div class="ptitlefont">PLET3U</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=497><img src=../uppics/2005121723402488822.jpg /></a></div><div class="ptitlefont">KT015-11W 台灯</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=502><img src=../uppics/2005121723473078573.jpg /></a></div><div class="ptitlefont">TL3016-15W/18W/30W/36W/58W</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
         
          <tr>
    <td>
     <table class="rigleft" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="84" height="24" background="images/index_141.gif"><span style="padding-left:5px;">裁缝机器</span></td>
              <td background="images/071.gif" onmouseover="this.classname='mulubg1';"><a href=product.asp?pid=21>                                    <img src="images/gif-0350.gif" alt="" width="44" height="13" /></a></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td height="90"><table  class="dl_top" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td   height="114">
             
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=506><img src=../uppics/2005121723545455514.jpg /></a></div><div class="ptitlefont">LK0318</div></div>
           
           
           
            <div class="ptitle" ><div class="bjbk"><a href=proview.asp?pid=512><img src=../uppics/20051218063016062.jpg /></a></div><div class="ptitlefont">COMJPUTERIZED 刺绣品机器</div></div>
           
           
            
             </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
              
           
           
          

 
</table>

     </td>
  </tr>
</table>
   
     
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="86" background="images/index_68.gif"><div id="footer">
            <div></div>
            <div align="center">&copy;2009 Namipan Corporation. All   Rights Reserved. - <a href="http://www." target="_blank">Copyright &copy; 2003-2008  All Rights Reserved .
页面执行时间:781.25000 毫秒
Powered by:网络之星 CMS </a> </div>
          </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
2010-04-20 18:12
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
得分:0 
大侠啊帮我看看啊
2010-04-20 18:32
zlf19871014
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-1
收藏
得分:0 
解决了,谢谢你的提醒。
原始是忽略了css中ID的唯一性
循环导致id不唯一
2010-04-20 21:05
快速回复:目录收缩问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.090629 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved