
Originally Posted by
sandra
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?
Well, the script actually looks OK. The problem with the size of the flash display is due to the fact that you have different dimensions in the two object tags:
Code:
width="300" height="60">\n\
and:
Code:
width="362" height="287" type="application/x-shockwave-flash">\n\
The first line is used by IE and the second by all others. If IE shows the correct size, change the second line to:
Code:
width="300" height="60" type="application/x-shockwave-flash">\n\
Incidentally, if this were to be made an external script, you wouldn't have that 'click to activate' stuff. And, it would be a good idea to include a tag set for non-javascript enabled browsers enclosed in <noscript></noscript> tags (without the \n\'s) that features only one of the possible ads in the 'source' entry points:
Code:
<param name="movie" value="images/ad/ad_screencooling-4.swf">
and:
Code:
<object data="images/ad/ad_screencooling-4.swf"
respectively.
Bookmarks