问题描述
DBdb=newDB();stringid;protectedvoidPage_Load(objectsender,EventArgse){index_on();index_tw();}publicvoidindex_on(){stringsql="selectid,navigationfromnavigation";DataTabledt=db.reDt(sql);index_one.DataSource=dt;index_one.DataBind();}publicvoidindex_tw(){intid=string.IsNullOrEmpty(Request.QueryString["id"])?0:int.Parse(Request.QueryString["id"]);stringsql="selectnavigation_id,id,navigation_Namefromnavigation_Name";DataTabledt=db.reDt(sql);index_two.DataSource=dt;index_two.DataBind();}
<formid="form1"runat="server"><!--<asp:RepeaterID="one"runat="server"><ItemTemplate><%#Eval("navigation")%></ItemTemplate></asp:Repeater><asp:RepeaterID="two"runat="server"><ItemTemplate><%#Eval("navigation_Name")%></ItemTemplate></asp:Repeater><div>--><styletype="text/css">.container4li,.container4_2li{list-style:none;}.container4ul,.container4_2{margin:0;}.container4{width:350px;margin:0auto;padding:7px10px;font:12pxVerdana;border:1pxsolid#ccc;background:#fffeed;line-height:15px;height:15px;_overflow:hidden;}.container4li{float:left;padding:010px;border-right:1pxsolid#ccc;}.container4div{float:left;color:#000;padding-right:10px;}li.menu4{position:relative;margin-left:-1px;top:-1px;z-index:9999;border:1pxsolid#85ccff;border-bottom:0;padding-bottom:8px;color:#ff6026;background:#dbf3ff;}.container4_2{width:350px;padding:10px;border:1pxsolid#85ccff;background:#dbf3ff;line-height:25px;font-size:14px;font-weight:bold;display:none;}.container4_2a{display:block;_zoom:1;}.container4_2a:link,.container4_2a:visited,.container4_2a:active{color:#565553;text-decoration:none;}.container4_2a:hover{color:#ff5500;text-decoration:underline;}.container4a:link,.container4a:visited,.container4a:hover,.container4a:active{color:#565553;text-decoration:none;}.menu4a:link,.menu4a:visited,.menu4a:active{color:#ff6026;}.menu4a:hover{color:#ff6026;text-decoration:underline;}</style><divid="idContainer4"class="container4"><div><b>Tag索引</b></div><ulid="idMenu4"><ahref="#tag/Table/"><asp:RepeaterID="index_one"runat="server"><ItemTemplate><liid='<%#Eval("id")%>'><%#Eval("navigation")%></li></ItemTemplate></asp:Repeater></a></ul></div><ulid="idContainer4_2"class="container4_2"><divid='<%#Eval("id")%>'><ahref="#"><asp:RepeaterID="index_two"runat="server"><ItemTemplate><liid='<%#Eval("navigation_id")%>'><%#Eval("navigation_Name")%></li></ItemTemplate></asp:Repeater></a></div></ul><script>varmenu4=[{id:1,parent:'<%#Eval("id")%>',elem:'<%#Eval("id")%>',active:"menu4"},{id:13,parent:'<%#Eval("navigation_id")%>',elem:'<%#Eval("navigation_id")%>'},];newFixedMenu([{id:"idContainer4",menu:"idMenu4"},"idContainer4_2"],{menu:menu4,relContainer:true,relative:{align:"clientleft",vAlign:"bottom",customTop:-1}});</script></form>鼠标经过下拉出不来.
这是效果图我的他么没效果我有静态的源代码哪位大侠帮忙修改修改这是我下载的静态特效源码[code=csharp]<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><title>JavaScript仿淘宝拼音索引菜单</title><scripttype="text/javascript"src="CJL.0.1.min.js"></script><scripttype="text/javascript"src="RelativePosition.js"></script><scripttype="text/javascript"src="FixedMenu.js"></script></head><body><styletype="text/css">.container4li,.container4_2li{list-style:none;}.container4ul,.container4_2{margin:0;}.container4{width:350px;margin:0auto;padding:7px10px;font:12pxVerdana;border:1pxsolid#ccc;background:#fffeed;line-height:15px;height:15px;_overflow:hidden;}.container4li{float:left;padding:010px;border-right:1pxsolid#ccc;}.container4div{float:left;color:#000;padding-right:10px;}li.menu4{position:relative;margin-left:-1px;top:-1px;z-index:9999;border:1pxsolid#85ccff;border-bottom:0;padding-bottom:8px;color:#ff6026;background:#dbf3ff;}.container4_2{width:350px;padding:10px;border:1pxsolid#85ccff;background:#dbf3ff;line-height:25px;font-size:14px;font-weight:bold;display:none;}.container4_2a{display:block;_zoom:1;}.container4_2a:link,.container4_2a:visited,.container4_2a:active{color:#565553;text-decoration:none;}.container4_2a:hover{color:#ff5500;text-decoration:underline;}.container4a:link,.container4a:visited,.container4a:hover,.container4a:active{color:#565553;text-decoration:none;}.menu4a:link,.menu4a:visited,.menu4a:active{color:#ff6026;}.menu4a:hover{color:#ff6026;text-decoration:underline;}</style><divid="idContainer4"class="container4"><div><b>Tag索引</b></div><ulid="idMenu4"><liid="idMenu4_1"><ahref="#tag/Table/">Table</a></li><liid="idMenu4_2"><ahref="#tag/Fixed/">Fixed</a></li><liid="idMenu4_3"><ahref="#tag/Color/">Color</a></li><liid="idMenu4_4"><ahref="#tag/Date/">Date</a></li><liid="idMenu4_5"><ahref="#tag/Select/">Select</a></li></ul></div><ulid="idContainer4_2"class="container4_2"><divid="1"><liid="idMenu4_11"><ahref="#">1</a></li><liid="idMenu4_12"><ahref="#">Table排序</a></li><liid="idMenu4_13"><ahref="#">图片滑动切换效果</a></li></div><divid="2"><liid="idMenu4_21"><ahref="#">浮动定位提示效果</a></li><liid="idMenu4_22"><ahref="#">仿LightBox内容显示效果</a></li><liid="idMenu4_23"><ahref="#">图片变换效果(ieonly)</a></li></div><divid="3"><liid="idMenu4_31"><ahref="#">颜色梯度和渐变效果</a></li><liid="idMenu4_32"><ahref="#">图片滑动展示效果</a></li><liid="idMenu4_33"><ahref="#">Tween算法及缓动效果</a></li></div><divid="4"><liid="idMenu4_41"><ahref="#">blog式日历控件</a></li><liid="idMenu4_42"><ahref="#">日期联动选择器</a></li><liid="idMenu4_43"><ahref="#">无刷新多文件上传系统</a></li></div><divid="5"><liid="idMenu4_51"><ahref="#">多级联动select</a></li><liid="idMenu4_52"><ahref="#">拖放效果</a></li><liid="idMenu4_53"><ahref="#">滑动条效果</a></li></div></ul><br><br><br><br><br><br><br><script>varmenu4=[{id:1,parent:0,elem:'idMenu4_1',active:"menu4"},{id:2,parent:0,elem:'idMenu4_2',active:"menu4"},{id:3,parent:0,elem:'idMenu4_3',active:"menu4"},{id:4,parent:0,elem:'idMenu4_4',active:"menu4"},{id:5,parent:0,elem:'idMenu4_5',active:"menu4"},{id:11,parent:1,elem:'idMenu4_11'},{id:12,parent:1,elem:'idMenu4_12'},{id:13,parent:1,elem:'idMenu4_13'},{id:21,parent:2,elem:'idMenu4_21'},{id:22,parent:2,elem:'idMenu4_22'},{id:23,parent:2,elem:'idMenu4_23'},{id:31,parent:3,elem:'idMenu4_31'},{id:32,parent:3,elem:'idMenu4_32'},{id:33,parent:3,elem:'idMenu4_33'},{id:41,parent:4,elem:'idMenu4_41'},{id:42,parent:4,elem:'idMenu4_42'},{id:43,parent:4,elem:'idMenu4_43'},{id:51,parent:5,elem:'idMenu4_51'},{id:52,parent:5,elem:'idMenu4_52'},{id:53,parent:5,elem:'idMenu4_53'}];newFixedMenu([{id:"idContainer4",menu:"idMenu4"},"idContainer4_2"],{menu:menu4,relContainer:true,relative:{align:"clientleft",vAlign:"bottom",customTop:-1}});</script></body></html>
[/code]
解决方案
本帖最后由 a384495569 于 2014-08-29 11:58:23 编辑
解决方案二:
有没有人在啊