WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: embed element within object tag not validating?

for

From: John Foliot - bytown internet
Date: Jul 21, 2002 10:17AM


Well then:

<script type="text/javascript">
<!--

var sBrowser = navigator.userAgent;
if (sBrowser.indexOf("IE") > -1)
{
sBrowser = "IE";
} else {
sBrowser = "nonIE";
}
// end browser sniff

if (sBrowser == "IE")
document.write("<object
classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0' width='70' height='400'> <param name=movie
value='images/flash/intro.swf'> <param name='quality' value='high'>")

else
document.write("<object data='images/flash/intro.swf' width='70'
height='400'>")
//-->
</script>
<noscript>
<div><img src="images/intro2.gif" width="70" height="400" alt=""></div>
</noscript>

It is after all only eye candy.

see: www.zaphodbeeblebrox.com

JF

> -----Original Message-----
> From: Bill Mason [mailto: <EMAIL REMOVED> ]
> Sent: July 20, 2002 11:13 AM
> To: <EMAIL REMOVED>
> Subject: RE: embed element within object tag not validating?
>
>
> At 07:28 AM 07/20/2002, John Foliot wrote:
> >Ya, order and CSS are important here: style="margin-left:-70px;" on the
> >"classid" object so that the IE version is *on top* of the non-clasid
> >version in IE, as it is rendered second.
>
> Oh, that's too bad then. You can't really be dependent on style
> sheets to
> fix what's really an IE bug: it's trying to render all the nested objects
> when the spec calls for the browser to render the first one it can and
> ignore the rest.
>
> If I could figure out on Microsoft's site how to file a bug
> report, I would....
>
> Thanks John.
>
> Bill Mason
> Accessible Internet
> <EMAIL REMOVED>
> http://www.accessibleinter.net/
>
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/