sandra
05-28-2007, 03:02 PM
I have a problem in my page with show my swf file randomly. i used bellow code :
<script type="text/javascript">
(function(){
var theSwf=["images/ad/ad_screencooling-4.swf", "images/ad/ad_screencooling.swf", "images/ad/ad_kaspersky2.swf"];
theSwf.sort(function() {return 0.5 - Math.random();})
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n\
codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"\n\
width="300" height="60">\n\
<param name="movie" value="'+theSwf[0]+'"> \n\
<param name="quality" value="high">\n\
<param name="wmode" value="transparent">\n\
<param name="menu" value="false">\n\
<!--[if !IE]> <-->\n\
<object data="'+theSwf[0]+'"\n\
width="362" height="287" type="application/x-shockwave-flash">\n\
<param name="quality" value="high">\n\
<param name="wmode" value="transparent">\n\
<param name="menu" value="false">\n\
<param name="pluginurl" value=" http://www.macromedia.com/go/getflashplayer">\n\
FAIL (the browser should render some flash content, not this).\n\
</object>\n\
<!--> <![endif]-->\n\
</object>\n');
})();
</script>
so
i used it just in htm page not in asp. do u know the reason?
also this script just work in ie and the firefox didn't support it. (fire fox show that swf files randomly with wrong size but ie show it completely. \
Would you please help me to solve this problem?
<script type="text/javascript">
(function(){
var theSwf=["images/ad/ad_screencooling-4.swf", "images/ad/ad_screencooling.swf", "images/ad/ad_kaspersky2.swf"];
theSwf.sort(function() {return 0.5 - Math.random();})
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n\
codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"\n\
width="300" height="60">\n\
<param name="movie" value="'+theSwf[0]+'"> \n\
<param name="quality" value="high">\n\
<param name="wmode" value="transparent">\n\
<param name="menu" value="false">\n\
<!--[if !IE]> <-->\n\
<object data="'+theSwf[0]+'"\n\
width="362" height="287" type="application/x-shockwave-flash">\n\
<param name="quality" value="high">\n\
<param name="wmode" value="transparent">\n\
<param name="menu" value="false">\n\
<param name="pluginurl" value=" http://www.macromedia.com/go/getflashplayer">\n\
FAIL (the browser should render some flash content, not this).\n\
</object>\n\
<!--> <![endif]-->\n\
</object>\n');
})();
</script>
so
i used it just in htm page not in asp. do u know the reason?
also this script just work in ie and the firefox didn't support it. (fire fox show that swf files randomly with wrong size but ie show it completely. \
Would you please help me to solve this problem?