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

一个图片新闻效果,改成动态不能实现,谁帮我看一下.
东西在   http://www.zsgd.com/tp.rar
里面有数据库,图片及文件.其中1.asp是动态的,不能实现.2.asp是静态的,可以实现.

静态页面代码:

<script   type= "text/javascript ">
var   swf_width=200
var   swf_height=200

var   files= 'http://www.ruochi.com/product/bcastr/pic/gymnasium.jpg|http://www.ruochi.com/product/bcastr/pic/zd.jpg|http://www.ruochi.com/product/bcastr/pic/adidas.jpg|http://www.ruochi.com/product/bcastr/pic/Maradona.jpg|http://www.ruochi.com/product/bcastr/pic/poster.jpg '
var   links= 'http://www.ruochi.com|http://www.ruochi.com|http://www.ruochi.com|http://www.ruochi.com|http://www.ruochi.com '
var   texts= '安联球场|齐达内|马拉多纳解说世界杯|Adidas的世界杯用球|世界杯海报 '
document.write( " <object   classid= 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 '   codebase= 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 '   width= ' "+   swf_width   + " '   height= ' "+   swf_height   + " '> ");
document.write( " <param   name= 'movie '   value= 'http://www.ruochi.com/product/bcastr/bcastr.swf '> <param   name= 'quality '   value= 'high '> ");
document.write( " <param   name= 'menu '   value= 'false '> <param   name=wmode   value= 'opaque '> ");
document.write( " <param   name= 'FlashVars '   value= 'bcastr_flie= "+files+ "&bcastr_link= "+links+ "&bcastr_title= "+texts+ " '> ");
document.write( " <embed   src= 'http://www.ruochi.com/product/bcastr/bcastr.swf '   wmode= 'opaque '   FlashVars= 'bcastr_flie= "+files+ "&bcastr_link= "+links+ "&bcastr_title= "+texts+ "&   menu= 'false '   quality= 'high '   width= ' "+   swf_width   + " '   height= ' "+   swf_height   + " '   type= 'application/x-shockwave-flash '   pluginspage= 'http://www.macromedia.com/go/getflashplayer '   /> ");   document.write( " </object> ");
</script>


这个怎么写成动态的?

------解决方案--------------------
<!--#include file= "conn.asp "-->
<%
Set rs=Server.CreateObject( "ADODB.RecordSet ")
sql= "select * from xx order by id desc "
rs.Open sql,conn,1,1
%>
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 无标题文档 </title>
</head>

<body>
<script type= "text/javascript ">
var swf_width=200
var swf_height=200

<% for i=1 to 5%>
var files <%=i%> = "upfile/ <%=rs( "image ")%> ";
var links <%=i%> = "1.asp?id= <%=rs( "id ")%> ";
var texts <%=i%> = " <%=rs( "title ")%> ";
<% rs.MoveNext
next
%>
var files=files1+ "| "+files2+ "| "+files3+ "| "+files4+ "| "+files5;
var links=links1+ "| "+links2+ "| "+links3+ "| "+links4+ "| "+links5;
var texts=texts1+ "| "+texts2+ "| "+texts3+ "| "+texts4+ "| "+texts5;