现在的位置: 首页 > 综合 > 正文

关于ff和ie共用js输出flash的问题

2013年12月15日 ⁄ 综合 ⁄ 共 689字 ⁄ 字号 评论关闭
var so = new SWFObject("images/focus1.swf", "myMovie", "300", "216", "6", "#F0F0F0");
   so.addVariable("pics", "<%= pic %>");
   so.addVariable("links", "<%= url %>");
   so.addVariable("texts", "<%= txt %>");
   so.addVariable("borderwidth","300");
   so.addVariable("borderheight","198");
   so.addVariable("textheight","18");
   so.write("flashcontent");

上面先引用<script type="text/javascript" src="js/swfobject.js"></script>

后台处理asp:

dim rs,sql
 sql="select * from rotate"
 set rs = Server.CreateObject("adodb.recordset")
 rs.open sql,conn,1,1
 if not rs.eof then
 	i=1
	while not rs.eof
		if i=1 then
			pic=rs("pic")
			txt=rs("title")
			url=rs("url")
		else
			pic=pic&"|"&rs("pic")
			txt=txt&"|"&rs("title")
			url=url&"|"&rs("url")
		end if
	  rs.movenext
	  i=i+1
	wend
 end if
 rs.close
 set rs=Nothing

这样就解决了 

抱歉!评论已关闭.