Accessing Embeded objects inside Layers in Netscape
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jayaprakash_A
Posted On:   Monday, July 30, 2001 07:24 AM

I have an embeded object in my HTML. I use the following code. classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject"> pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="amgg2_b00001p02.wmv" width=320 height=300 autostart=0 showcontrols=0>    More>>

I have an embeded object in my HTML. I use the following code.







classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"

standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject">











pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"

src="amgg2_b00001p02.wmv"
width=320
height=300
autostart=0
showcontrols=0>









But, I am not able to acces this object in my javascript through layers like the following code.



document.layers['layerslideshow'].embeds['MediaPlayer1']



When I remove that "style" property in the div tag, everything works fine. Why is this. Can anyone explain this?    <<Less

Re: Accessing Embeded objects inside Layers in Netscape

Posted By:   luke_dalessandro  
Posted On:   Wednesday, August 1, 2001 10:45 AM

.embeds is not a layer property, it's a document property.


reference it like this


document.layers['layerslideshow'].document.embeds['MediaPlayer1']




It probably works when you don't set the style because netscape doesn't interpret a non-absolute div as a layer.

Re: Accessing Embeded objects inside Layers in Netscape

Posted By:   Firat_Tiryaki  
Posted On:   Tuesday, July 31, 2001 01:56 AM

try to access the embed object outside the layer:


document.embeds['MediaPlayer1'];


or set the position to relative.

About | Sitemap | Contact