标题:请教,谢谢!!
取消只看楼主
miaowuren
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2007-6-22
 问题点数:0 回复次数:0 
请教,谢谢!!

帮我看下这几段代码是什么意思,主要是怎么样个用途?
最好能解析详细点?????
<1><script language="javascript">
<!--
if (window == top)top.location.href = "Default.asp";
// -->
</script>


<2><script language = "JavaScript">
var onecount;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("SmallClassName"))%>","<%= trim(rs("BigClassName"))%>","<%= trim(rs("SmallClassName"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;

function changelocation(locationid)
{
document.myform.SmallClassName.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
<3>还有就是中文对照网站然后实现

搜索更多相关主题的帖子: javascript window count 最好 
2007-07-09 19:34



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-154119-1-1.html




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

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