这个页面的标题处的下拉列表如何实现
if 有二级分类
response.write"自己显示"
then
response.write"一级标题说明"
end if
谢谢,在线等
[此贴子已经被作者于2006-11-24 17:39:34编辑过]
[此贴子已经被作者于2006-11-24 17:39:34编辑过]
用DW生成这个菜单后 就有JS的代码了
在相应的JS代码中加如ASP的变量就可以了 配合数据库使用
如:
<%
set rs = server.CreateObject("adodb.recordset")
sql = "select top 3 * from tab"
rs.open sql,conn,1,1
i=rs("text")
rs.movenext
ii = rs("text")
rs.movenext
iii = rs("text")
%>
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_1124173644_0) return;
window.mm_menu_1124173644_0 = new Menu("root",57,18,"",12,"#000000","#FFFFFF","#CCCCCC","#FF0000","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
mm_menu_1124173644_0.addMenuItem("商品1","location='<%=i%>'");
mm_menu_1124173644_0.addMenuItem("商品2","location='<%=ii%>'");
mm_menu_1124173644_0.addMenuItem("商品3","location='<%=iii%>'");
mm_menu_1124173644_0.addMenuItem("商品3","location='<%=iii%>'");//这个位置可以循环
mm_menu_1124173644_0.hideOnMouseOut=true;
mm_menu_1124173644_0.bgColor='#555555';
mm_menu_1124173644_0.menuBorder=1;
mm_menu_1124173644_0.menuLiteBgColor='#FFFFFF';
mm_menu_1124173644_0.menuBorderBgColor='#777777';
mm_menu_1124173644_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
[此贴子已经被作者于2006-11-25 11:26:52编辑过]