欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

求解:这个程序为啥只能在ie中正常显示,其他的浏览器都显示不了

更新时间: 2014-01-05 01:57:38 责任编辑: Author_N1

 

求解:这个程序为什么只能在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>

--参考方法--
改成
<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" />
上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 01:57:38
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/3712/
本文WWW.DOC100.NET DOC100.NET版权所有。