| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1201 人关注过本帖
标题:[求助]鼠标指向标题,不会显示标题的内容
只看楼主 加入收藏
guyer
Rank: 2
等 级:新手上路
威 望:5
帖 子:451
专家分:0
注 册:2007-1-19
收藏
得分:0 



<%
set rs=server.createobject("adodb.recordset")
sql="select top 11 * from bigclass order by id asc"
rs.open sql,conn,1,1

%>
<%
set rs1=server.createobject("adodb.recordset")
sql1="select top 11 * from news where bigclassname='"&rs("bigclassname")&"' order by id desc"
rs1.open sql1,conn,1,1
do until rs1.eof
%>
<a href="show_news.asp?id=<%=rs1("id")%>"title="<%=rs1("title")%>" target="_blank" <%If DateDiff("d",Rs1("time"),now())<=1 Then response.Write(" style=color:#FF0000")%>> <%=left(rs1("title"),20)%>
<%if len(rs1("title"))>20 then response.write "…" end if%>
<br />
<%
rs1.movenext ()
loop
%>

这是你的代码么?


http://www./
2007-05-07 14:24
guyer
Rank: 2
等 级:新手上路
威 望:5
帖 子:451
专家分:0
注 册:2007-1-19
收藏
得分:0 

<%
set rs=server.createobject("adodb.recordset")
sql="select top 11 * from bigclass order by id asc"
rs.open sql,conn,1,1

%>
<%
set rs1=server.createobject("adodb.recordset")
sql1="select top 11 * from news where bigclassname='"&rs("bigclassname")&"' order by id desc"
rs1.open sql1,conn,1,1
do until rs1.eof
%>
<a href="show_news.asp?id=<%=rs1("id")%>"title="<%=rs1("title")%>" target="_blank" <%If DateDiff("d",Rs1("time"),now())<=1 Then response.Write(" style=color:#FF0000")%>> <%=left(rs1("title"),20)%>
<%if len(rs1("title"))>20 then response.write "…" end if%></a>
<br>
<%
rs1.movenext ()
loop
%>


http://www./
2007-05-07 14:29
netns
Rank: 1
等 级:新手上路
帖 子:60
专家分:0
注 册:2007-4-19
收藏
得分:0 

<%
set rs=server.createobject("adodb.recordset")
sql="select top 11 * from bigclass order by id asc"
rs.open sql,conn,1,1

%>
<%
set rs1=server.createobject("adodb.recordset")
sql1="select top 11 * from news where bigclassname='"&rs("bigclassname")&"' order by id desc"
rs1.open sql1,conn,1,1
do until rs1.eof
%>
<a href="show_news.asp?id=<%=rs1("id")%>" title="<%=rs1("title")%>" target="_blank" <%If DateDiff("d",Rs1("time"),now())<=1 Then response.Write(" style=color:#FF0000")%>> <%=left(rs1("title"),20)%>
<%if len(rs1("title"))>20 then response.write "…" end if%></a> <br />

<%
rs1.movenext ()
loop
%>


就是这样的啊

2007-05-07 16:30
guyer
Rank: 2
等 级:新手上路
威 望:5
帖 子:451
专家分:0
注 册:2007-1-19
收藏
得分:0 

你先把 <a href="show_news.asp?id=<%=rs1("id")%>" title="<%=rs1("title")%>" target="_blank" <%If DateDiff("d",Rs1("time"),now())<=1 Then response.Write(" style=color:#FF0000")%>> <%=left(rs1("title"),20)%>
<%if len(rs1("title"))>20 then response.write "…" end if%></a> <br />

改成 <a href="show_news.asp?id=<%=rs1("id")%>" title="<%=rs1("title")%>" target="_blank">
<%=left(rs1("title"),20)%>
</a> <br />

看看会出错么?


http://www./
2007-05-07 16:46
netns
Rank: 1
等 级:新手上路
帖 子:60
专家分:0
注 册:2007-4-19
收藏
得分:0 
以下是引用guyer在2007-5-7 16:46:04的发言:

你先把 <a href="show_news.asp?id=<%=rs1("id")%>" title="<%=rs1("title")%>" target="_blank" <%If DateDiff("d",Rs1("time"),now())<=1 Then response.Write(" style=color:#FF0000")%>> <%=left(rs1("title"),20)%>
<%if len(rs1("title"))>20 then response.write "…" end if%></a> <br />

改成 <a href="show_news.asp?id=<%=rs1("id")%>" title="<%=rs1("title")%>" target="_blank">
<%=left(rs1("title"),20)%>
</a> <br />

看看会出错么?

结果是一样的。

2007-05-07 19:27
快速回复:[求助]鼠标指向标题,不会显示标题的内容
数据加载中...
 
   



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

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