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

>