
February 11th, 2008, 08:53 AM
|
|
Registered User
|
|
Join Date: Feb 2008
Posts: 1
Time spent in forums: 18 m 48 sec
Reputation Power: 0
|
|
|
Other - Access to embed attributes
Hello,
I have an object defined like that:
Code:
<object name="myObject" classid="CLSID:07000E2B-6AAD-497D-8E5B-5976560AD429"
border="0"
height="400"
width="300">
<param name="src" value="file" />
<param name="width" value="600" />
<param name="height" value="800" />
<param name="type" value="application/x-myriad-music" />
<param name="pluginspage" value="http://www.myriad-online.com/cgi-bin/mmplug.pl" />
<embed name="myEmbed"
src="file"
width=600
height=800
type="application/x-myriad-music"
pluginspage="http://www.myriad-online.com/cgi-bin/mmplug.pl">
</embed>
</object>
In the same I can access to the param's object like that for example:
Code:
alert(document.myObject.childNodes[0].name)
I tried to access the embed in the same way:
Code:
alert(document.myObject.embeds[0].name)
Unfortunately that doesn't work, I get an error telling that embeds.0 is not an object and I read somewhere that IE6 doesn't recognize embed when we use object tag, or something like that.
Any idea to get it working ?
Regards,
Alain
|