| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 571 人关注过本帖
标题:response.write超连接问题
只看楼主 加入收藏
wms102
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-1-20
收藏
 问题点数:0 回复次数:2 
response.write超连接问题

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><form name="form1">
<div align="right">

<select name="menu1" onChange="MM_jumpMenu('blank',this,0)">

<option value="1">--Web fink--</option>
<option value="2">
<% '从news表中读取友情连接
Set Rs1 = Server.CreateObject("ADODB.RecordSet")
Sql1="Select * From news where nfrom='英文' and typeid=66"
Rs1.Open Sql1,conn,1,1
Do While not Rs1.EOF
Response.Write "<option ><a href="& trim(rs1("link")) &">"& rs1("Title") &"</a></option>"
Rs1.MoveNext
Loop
Rs1.Close
Set Rs1=nothing
%>
</option>

</select>
</div>
</form></td>
</tr>
</table>
在做友情连接的时候,怎么连接不上数据库里数据

搜索更多相关主题的帖子: response write selObj name 
2007-06-29 17:20
shdyh977
Rank: 1
等 级:新手上路
威 望:1
帖 子:109
专家分:0
注 册:2007-5-22
收藏
得分:0 
<% Do While not Rs1.EOF %>
<option ><a href="<%=rs1("link")%>">rs1("Title")</a></option>
<%Rs1.MoveNext
Loop
Rs1.Close
Set Rs1=nothing
%>
2007-06-29 17:32
恒天
Rank: 1
等 级:新手上路
威 望:2
帖 子:165
专家分:0
注 册:2007-6-1
收藏
得分:0 
<% Do While not Rs1.EOF %>
<option ><a href="<%=rs1("link")%>"><%=rs1("Title")%></a></option>
<%Rs1.MoveNext
Loop
Rs1.Close
Set Rs1=nothing
%>
2007-06-30 11:52
快速回复:response.write超连接问题
数据加载中...
 
   



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

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