一个asp控制页面大小的问题

来源:百度知道 编辑:UC知道 时间:2024/06/04 08:25:00
<!--#include file="conn.asp"-->
<%
dim sql,rs
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
sql="select * from info"
rs.open sql,conn
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
rs.close
sql="Select top "&displays&" * From news Order By Date DESC"
rs.open sql,conn
if not rs.eof then
rs.movefirst
ok=ok & ""
do while not rs.eof
if len(rs("title"))>stringes then
title=left(rs("title"),stringes)
else
title=rs("title")
end if
ok=ok &"<a href="&homepages&"/"&filers&"/Display.asp?id=" & rs("id") & " title=点击查看详细 target=_blank><font color=#ff0000>"&title

把你的:
ok=ok &"<a href="&homepages&"/"&filers&"/Display.asp?id=" & rs("id") & " title=点击查看详细 target=_blank><font color=#ff0000>"&title&"</font></a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
替换为:

newsUrl = homepages&"/"&filers&"/Display.asp?id=" & rs("id")
ok=ok &"<a href=javascript:pop2('"&newsUrl&"')" & " title=点击查看详细 ><font color=#ff0000>"&title&"</font></a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"

并且在html的body里面添加如下代码:

function pop2(url){
window.open(url,"","width=530,height=530,toolbar=no,scrollbars=no,resizable=no,menubar=no,location=no")
}

为什么不用open....

ASP页面跳转窗口大小的问题 ASP登录时,session控制页面跳转的问题~~ asp页面问题的 一个asp页面跳转问题 ASP中控制页面刷新的方法 如何在一个ASP页面中返回当前浏览器的窗口大小? 关于一个ASP页面调用多个表的问题 关于asp.net 一个页面中 的数据库连接问题! 一个很简单的问题,ASP提交页面. asp中一个关于页面刷新的问题