以下为引用的内容:
<!--#include file="conn.asp" --> <script type="text/javascript">//这是javacript语言
<% //这有是asp网络语言
sql="select * from pic order by id desc" set rs=Server.CreateObject("ADODB.RecordSet") rs.open sql,conn,1,1 title1=rs("title") url1=rs("url") rs.movenext
title2=rs("title") url2=rs("url") rs.movenext
rs.close set rs=nothing %>
var imgUrl=new Array(); var imgtext=new Array();
imgtext[1]="<%=title1%>"; imgUrl[1]="<%=url1%>"; imgtext[2]="<%=title2%>"; imgUrl[2]="<%=url2%>";
var focus_width=240 var focus_height=200 var text_height=18 var swf_height = focus_height+text_height var pics=imgUrl[1]+"|"+imgUrl[2] var texts=imgtext[1]+"|"+imgtext[2] 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="'+ focus_width +'" height="'+ swf_height +'">'); document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">'); document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); document.write('<param name="FlashVars" value="pics='+pics+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">'); document.write('</object>'); </script>
<% conn.close set conn=nothing %> |