View Full Version : embed tag and XHTML
castali
05-22-2004, 04:20 PM
I get from W3C validator errors everywhere in an object tag (flash)
<embed src="images/logo.swf" quality="high" wmode="transparent" align="default" scale="exactfit" bgcolor="#491809" width="100" height="100" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">
</embed>
on each attributes !! src quality .. all !!
what is the good syntax ?
even if you check the macromedia flasjh page all is wrong !! http://validator.w3.org/check?uri=http%3A%2F%2Fwww.macromedia.com%2Fsoftware%2Fflash%2Fabout%2F
thank you
mindlessLemming
05-22-2004, 04:52 PM
The alternative you seek:
http://alistapart.com/articles/flashsatay/
:)
castali
05-22-2004, 05:32 PM
thanks for the link
but I couldn't fix it .. I just don't understand what is this c.swf?path=movie.swf
what is c.swf ?
castali
05-22-2004, 06:06 PM
it works in that way >>> http://ln.hixie.ch/?start=1081798064&count=1
]|V|[agnus
05-22-2004, 08:59 PM
the ALA method is excessively complex. liorean posted a link to a much simpler method that requires NO modification of the existing flash movie, nor any additional "shell" movie.
it works like so:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="559" height="60">
<param name="movie" value="header_animation.swf" />
<param name="quality" value="high" />
<!--[if !IE]> <-->
<object
data="header_animation.swf"
width="559"
height="60"
type="application/x-shockwave-flash"
>
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--> <![endif]-->
</object>
those comments are conditional comments. they actually evaluate a boolean and say, "if it's IE, give it this object tag, else, give it this one".
validates, works great.. overall, a much better solution.
castali
05-22-2004, 09:31 PM
yes it is too complex
and I found the same thing than your code on that link >>> http://ln.hixie.ch/?start=1081798064&count=1
thank you
]|V|[agnus
05-22-2004, 10:43 PM
oh, haha! yep! i didn't follow that link before i posted because the domain wasn't familiar to me from where i found that example. but hooray! problem solved..
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.