数据父子关系

lwdww 2011-05-23 05:05:38
<%
set rs_channel = server.CreateObject("adodb.recordset")
rs_channel_sql = "select * from a_channel where title_in='0' and master_title='1'"
rs_channel.open rs_channel_sql ,conn,1,1
%>

<%
while not rs_channel.eof
%>
window.title_<%=rs_channel.fields("id")%>= new Menu("root",76,30,"",12,"#000000","#0066CC","#EEEEEE","#EEEEEE","center","middle",3,0,1000,-5,7,true,false,true,0,true,true);

title_<%=rs_channel.fields("id")%>.addMenuItem("<%=rs_channel.fields("title")%>","location='fz btpn-3.html'");
title_<%=rs_channel.fields("id")%>.hideOnMouseOut=true;
title_<%=rs_channel.fields("id")%>.bgColor='#555555';
title_<%=rs_channel.fields("id")%>.menuBorder=1;
title_<%=rs_channel.fields("id")%>.menuLiteBgColor='#FFFFFF';
title_<%=rs_channel.fields("id")%>.menuBorderBgColor='#777777';

title_<%=rs_channel.fields("id")%>.writeMenus();

<%
rs_channel.movenext
wend
rs_channel.close
set rs_channel = nothing
%>

}
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}
</script>
在红色区域显示下拉菜单 怎么写出来
...全文
113 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧