IE下能正常显示,FF不能显示怎么解决?
asp代码:
<script type="text/javascript">
imgUrl1="<%=img1 %>";
imgLink1=escape("News_detail.aspx?id=<%=idimg1 %>");
imgUrl2="<%=img2 %>";
imgLink2=escape("News_detail.aspx?id=<%=idimg2 %>");
imgUrl3="<%=img3 %>";
imgLink3=escape("News_detail.aspx?id=<%=idimg3 %>");
imgUrl4="<%=img4 %>";
imgLink4=escape("News_detail.aspx?id=<%=idimg4 %>");
imgUrl5="<%=img5 %>";
imgLink5=escape("News_detail.aspx?id=<%=idimg5 %>"); var focus_width=360
var focus_height=230
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
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+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('</object>');
</script>
asp代码:
<script type="text/javascript">
imgUrl1="<%=img1 %>";
imgLink1=escape("News_detail.aspx?id=<%=idimg1 %>");
imgUrl2="<%=img2 %>";
imgLink2=escape("News_detail.aspx?id=<%=idimg2 %>");
imgUrl3="<%=img3 %>";
imgLink3=escape("News_detail.aspx?id=<%=idimg3 %>");
imgUrl4="<%=img4 %>";
imgLink4=escape("News_detail.aspx?id=<%=idimg4 %>");
imgUrl5="<%=img5 %>";
imgLink5=escape("News_detail.aspx?id=<%=idimg5 %>"); var focus_width=360
var focus_height=230
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
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+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('</object>');
</script>
<span id="flash_focus"></span>
<script type="text/javascript">
var imgUrl = Array()
var imgtext = Array()
var imgLink = Array()
imgUrl[imgUrl.length]="upload/images/news_pic2/2010-04-20/1279676582.jpg.jpg"
imgtext[imgtext.length]="确保亚运筹办工作不留污点"
imgLink[imgLink.length]=escape("column.php?cid=15&id=383")
imgUrl[imgUrl.length]="upload/images/news_pic2/2010-02-24/1275775940.jpg.jpg"
imgtext[imgtext.length]="不断提高反腐倡廉建设科学化水..."
imgLink[imgLink.length]=escape("column.php?cid=15&id=373")
imgUrl[imgUrl.length]="upload/images/news_pic2/2010-01-08/1271229417.jpg.jpg"
imgtext[imgtext.length]="区纪委监察局召开中心组学习会..."
imgLink[imgLink.length]=escape("column.php?cid=15&id=360")
imgUrl[imgUrl.length]="upload/images/news_pic2/2010-01-06/1271472516.jpg.jpg"
imgtext[imgtext.length]="拒腐防变 警钟长鸣"
imgLink[imgLink.length]=escape("column.php?cid=17&id=358")
imgUrl[imgUrl.length]="upload/images/news_pic2/2009-12-25/1269148169.jpg.jpg"
imgtext[imgtext.length]="深入推进反腐败工作"
imgLink[imgLink.length]=escape("column.php?cid=15&id=355")
var focus_width=220
var focus_height=160
var text_height=20
var swf_height = focus_height+text_height
var pics=imgUrl.join("|")
var links=imgLink.join("|")
var texts=imgtext.join("|")
var html = '<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 +'">'
html += '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">'
html += '<param name="menu" value="false"><param name=wmode value="opaque">'
html += '<param name="wmode" value="transparent" />'
html += '<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">'
html += '<embed wmode="transparent" flashvars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" src="images/focus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" />'
html += '</object>'
document.getElementById("flash_focus").innerHTML = html
</script>firefox 要有这句 html += '<embed wmode="transparent" flashvars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" src="images/focus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" />'