标题:[求助]这个是什么原因
取消只看楼主
sncelpl
Rank: 1
等 级:新手上路
帖 子:87
专家分:0
注 册:2006-6-28
结帖率:86.67%
 问题点数:0 回复次数:0 
[求助]这个是什么原因

<%
Dim s_RootID
'当然更改为其他跟栏目的时候,只需要适当的更改下面的值,就可以实现不同栏目。
s_RootID = "A"

Sub GetNewsCata()
Dim cRs, cSql, i, TempCataStr
Set cRs = Server.CreateObject( "ADODB.Recordset" )
cSql = "SELECT * FROM DdsCata WHERE C_ID <> 1 ORDER BY C_RootID"
cRs.Open cSql, oConn, 1, 3

Do While Not cRs.EOF

TempCataStr = "<option value='"&Trim(cRs("C_ID"))&"'>"
TempCataStr = TempCataStr&"&nbsp;|"

For i=1 To Int(Len(Trim(cRs("C_RootID")))/4) - 1
TempCataStr = TempCataStr&"&nbsp;|"
Next

TempCataStr = TempCataStr&"_"&Trim(cRs("C_Title"))&"</option>"
Response.Write TempCataStr

cRs.MoveNext
Loop
cRs.Close
Set cRs = Nothing
End Sub
%>
<td width="18%"></td>
<td class="font_mb green"><font color="#C41039">月检修计划</font></td>
<td align="right"><a href="News sDefault.asp?cataid=A00017" class="tt2">更多</a></td>
</tr>
</table></td>
<td width="1%" background="Images/Bg_2.gif"></td>
<td width="44%" background="Images/Nav_Title_4.gif">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18%"> </td>
<td class="font_mb green"><font color="#006F68">继电保护定值通知单</font></td>
<td align="right"><a href="News sDefault.asp?cataid=A0006" class="tt2">更多</a></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><Script Language="JavaScript" Src="<%=RootUrl%>/News sNews.asp?Cataid=A0001&Attr=0&ChildCata=0&Style=1&RowNum=10&ColNum=1&TitleNum=12&TitleCSS=&Line_H=24&More=0&MoreCSS=&Date=2&Click=0&Postfix=&NaviPic=7&OpenMode=1"></Script></td>
<td background="Images/Bg_2.gif"></td>
<td valign="top"><Script Language="JavaScript" Src="<%=RootUrl%>News sNews.asp?Cataid=A0006&Attr=0&ChildCata=0&Style=1&RowNum=10&ColNum=1&TitleNum=12&TitleCSS=&Line_H=24&More=0&MoreCSS=&Date=2&Click=0&Postfix=&NaviPic=7&OpenMode=1"></Script></td>
</tr>
<td valign="top"><Script Language="JavaScript" Src="<%=RootUrl%>/News sNews.asp?Cataid=A0001&Attr=0&ChildCata=0&Style=1&RowNum=10&ColNum=1&TitleNum=12&TitleCSS=&Line_H=24&More=0&MoreCSS=&Date=2&Click=0&Postfix=&NaviPic=7&OpenMode=1"></Script>
我改成:<td valign="top"><Script Language="JavaScript" Src="<%=RootUrl%>/News sNews.asp?Cataid=A00010&Attr=0&ChildCata=0&Style=1&RowNum=10&ColNum=1&TitleNum=12&TitleCSS=&Line_H=24&More=0&MoreCSS=&Date=2&Click=0&Postfix=&NaviPic=7&OpenMode=1"></Script>
就正常了地址如果是A0001就不行

搜索更多相关主题的帖子: option 
2007-03-29 08:54



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




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

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