<!--#include file="data.asp"-->
<style>
.inner_ul{position:absolute;margin:0px; padding:0px;float:left;}
.inner_ul ul{ margin:0px; padding:0px;}
.inner_ul ul li{ height:31px; line-height:31px;}
</style>
<div id="left" class="left">
<div class="menu"><ul>
<%
 SortSql="Select * From lb where nid=0 order by id asc"
 Set SortRs= Server.CreateObject("ADODB.Recordset")
 SortRs.Open SortSql,Conn,1,1
 if SortRs.EOF and SortRs.BOF then
  Response.Write "暂无相关数据"
 else
%>
        <% do while not SortRs.EOF %>
       
<li onmouseover=showHideSubMenu(<%=SortRs("id") %>) onmouseout=hideSubMenu(<%=SortRs("id") %>)><div style="float:left; width:145px;"><a href="product.asp?lb=<%=SortRs("id") %>">
            <% =SortRs("title") %>
          </a></div>
          <div class="inner_ul" id="submenu<%=SortRs("id") %>" style="display:none;"><ul>
          <%
 Sql2="Select * From lb where nid="&SortRs("id")
 Set SortRs2= Server.CreateObject("ADODB.Recordset")
 SortRs2.Open Sql2,Conn,1,1
 if SortRs2.EOF and SortRs2.BOF then
  Response.Write "暂无相关数据"
 else
   do while not SortRs2.EOF
  %>
          <li><a a href="product.asp?lb=<%=SortRs("id") %>"><% =SortRs2("title") %></a></li>
          <%
  SortRs2.MoveNext
 Loop
 end if
 SortRs2.Close
 Set SortRs2=Nothing
  %>
          </ul></div>
          </li>
        <%
  SortRs.MoveNext
 Loop
%>
        <%
 End if
 SortRs.Close
 Set SortRs=Nothing

%>
<!--<li><a href="#">产品种类一</a></li>
<li><a href="#">产品种类一</a></li>
<li><a href="#">产品种类一</a></li>
<li><a href="#">产品种类一</a></li>
<li><a href="#">产品种类一</a></li>-->
</ul></div>
<div class="guanggao">
  <object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="232" height="580">
    <param name="movie" value="img/left.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="swfversion" value="6.0.65.0" /> 
  </object>
</div>
</div>
 <script language=javascript>
function showHideSubMenu(sid)
{
whichEl = eval("submenu" + sid);

if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}

function hideSubMenu(sid)
{
whichEl = eval("submenu" + sid);
eval("submenu" + sid + ".style.display=\"none\";");
}

</script>   


 

 posted on 2011-02-12 17:34  ddxgc  阅读(195)  评论(0编辑  收藏  举报