日期:2014-05-17  浏览次数:21003 次

关于弹出窗口
<marquee   scrollamount= "2 "   scrolldelay= "100 "   direction= "up "   width= "300 "   height= "250 "   id= "a "   onmouseover= "a.stop() "   onmouseout= "a.start() ">  
                                                                                                                                                     
<%  
set   rs=server.createobject( "ADODB.Recordset ")  
sql= "select   top   10   *   from   news   order   by   news_id   desc "  
rs.open   sql,conn,1,1
do   while   not   rs.eof
response.write   rs     ( "content ")   & " <br> "& "----------------------------------------------- "& " <br> "
rs.movenext
loop
conn.close
set   rs=   nothing:set   conn=nothing

             
%>
我想在上面这段滚动新闻的代码中,写一段点击某条新闻   就能弹出一个窗口,显示该新闻   具体内容的代码,请问该怎么写。。。。。。。。

------解决方案--------------------
<marquee scrollamount= "2 " scrolldelay= "100 " direction= "up " width= "300 " height= "250 " id= "a " onmouseover= "a.stop() " onmouseout= "a.start() ">

<%
set rs=server.createobject( "ADODB.Recordset ")
sql= "select top 10 * from news order by news_id desc "
rs.open sql,conn,1,1
do while not rs.eof
response.write " <a href= '*.asp?id= " & rs( "id ") & " ' target= '_blank '> " & rs ( "content ") & " </a> <br> ------------------------------------ <br> "
rs.movenext
loop
conn.close
set rs= nothing:set conn=nothing
%>
</marquee>