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

求解:这个程序为什么只能在ie中正常显示,其他的浏览器都显示不了
<td width="806" valign="top" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
  <%
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from advertisement",conn,1,1
tupian1=trim(rs("pic1"))
tupian1url=trim(rs("pic1_lnk"))
piaos1=trim(rs("tit1"))

tupian2=trim(rs("pic2"))
tupian2url=trim(rs("pic2_lnk"))
piaos2=trim(rs("tit2"))

tupian3=trim(rs("pic3"))
tupian3url=trim(rs("pic3_lnk"))
piaos3=trim(rs("tit3"))

tupian4=trim(rs("pic4"))
tupian4url=trim(rs("pic4_lnk"))
piaos4=trim(rs("tit4"))
 
tupian5=trim(rs("pic5"))
tupian5url=trim(rs("pic5_lnk"))
 

rs.Close
set rs=nothing
%>
<script type="text/javascript">
imgUrl1="<%=tupian1%>";
imgtext1=""
imgLink1=escape("<%=tupian1url%>");
imgUrl2="<%=tupian2%>";
imgtext2=""
imgLink2=escape("<%=tupian2url%>");
imgUrl3="<%=tupian3%>";
imgtext3=""
imgLink3=escape("<%=tupian3url%>");
imgUrl4="<%=tupian4%>";
imgtext4=""
imgLink4=escape("<%=tupian4url%>");
imgUrl5="<%=tupian5%>";
imgtext5=""
imgLink5=escape("<%=tupian5url%>");

 var focus_width=807
 var focus_height=180
 var text_height=0
 var swf_height = focus_height+text_height
 
 var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
 
 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="images/focus2.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+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('</object>');
</script>
</td>
</tr>
</table>
------解决方案--------------------
本帖最后由 net_lover 于 2012-07-25 19:26:24 编辑
改成
<object type="application/x-shockwave-flash" data="images/focus2.swf" width="240" height="152">
<param name="movie" value="images/focus2.swf" />
<param name="allowScriptAcess" value="sameDomain" />
<param name="quality" value="best" />
<param name="scale" value="noScale" />
<param name="menu" value="false">
<param name="wmode" value="opaque" />
<param name="FlashVars" value="playerMode=embedded&pics=/user/admin/20110927113321_new.jpg
------解决方案--------------------
/user/admin/1_3.jpg
------解决方案--------------------
/user/admin/20110916044711