// JScript 文件var focus_width=822;
var focus_height=89;
var text_height=0;
var swf_height = focus_height+text_height;
var pics;
var links;
var texts;
var pics="img/index/banner/b1.jpg|img/index/banner/b2.jpg";
var links="#|#";
var texts="1|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="img/index/banner/focus.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>');我是把这个写在一个JS里,然后在页面导入的。IE正常。火狐不行。高手赐教
var focus_width=822;
var focus_height=89;
var text_height=0;
var swf_height = focus_height+text_height;
var pics;
var links;
var texts;
var pics="img/index/banner/b1.jpg|img/index/banner/b2.jpg";
var links="#|#";
var texts="1|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="img/index/banner/focus.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('<embed src="img/index/banner/focus.swf" width="'+focus_width+'" height="'+swf_height+'">');//======
document.write('</object>');
var focus_height=89;
var text_height=0;
var swf_height = focus_height+text_height;
var pics;
var links;
var texts;
var pics="img/index/banner/b1.jpg|img/index/banner/b2.jpg";
var links="#|#";
var texts="1|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="img/index/banner/focus.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('<embed '
+'width="'+ focus_width +'"'
+'height="'+ swf_height +'"'
+'src="img/index/banner/focus.swf"'
+'allowScriptAccess="sameDomain"'
+'quality="high"'
+'bgcolor="#F0F0F0"'
+'menu="false"'
+'wmode="opaque"'
+'FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"'
+'>'
+'</embed>'
);document.write('</object>');
加上红色部分 ff就兼容了