On Dec 18, 7:37 am, Pureint...@gmail.com wrote:
> Hi guys, I could really do some some help & support!
>
> I need to do a document.write for flash, I've tried all sorts of
> combinations but at the end of the day, I'm just crap! I'm using this
> method as my banner is going to change depending on time of day
>
> I'm happy to be pointed in the right direction, or if someone can give
> me examples (or even do the conversion for me) it will definately be
> appreiated!
>
> This is my code:
>
I don't see any code. I assume that this movie doesn't need to
interact with JavaScript and doesn't require a specific version of
Flash. In which case, you don't need script at all.
> <object
> classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=6,0,79,0"
> id="preloader_good_afternoon"
> width="600" height="150"
>
> <param name="movie" value="preloader_good_afternoon.swf">
> <param name="bgcolor" value="#FFFFFF">
Set the background color in the movie.
> <param name="quality" value="high">
Skip this.
> <param name="allowscriptaccess" value="samedomain">
And this.
> <embed
The embed element is non-standard.
> type="application/x-shockwave-flash"
> pluginspage="http://www.macromedia.com/go/getflashplayer"
> name="preloader_good_afternoon"
> width="600" height="150"
> src="preloader_good_afternoon.swf"
> bgcolor="#FFFFFF"
> quality="high"
> swliveconnect="true"
> allowscriptaccess="samedomain"
> >
> <noembed>
> </noembed>
The noembed element is worthless.
> </embed>
> </object>
>
Here is an example that uses only object elements. It should work in
virtually everything, including the older Safari browsers that ignore
param elements (there are no param elements inside the inner object.)
The fallback is a static image. Add a link to download Flash if you
are so inclined.
<object classid="clsid

27CDB6E-AE6D-11cf-96B8-444553540000"
width="300" height="120" codebase="http://fpdownload.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" title="Movie">
<param name="movie" value="flash/movie.swf">
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/movie.swf"
width="300" height="120" title="Movie">
<!--<![endif]-->
<img src="images/animation.gif" width="300" height="120">
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Script-assisted Flash, involving version detection and DOM
manipulation (not document.write), is complicated and there aren't any
decent examples out there (Adobe couldn't even get it right.) There
will be such a script added to the Code Worth Recommending project
soon.