Click to See Complete Forum and Search --> : *.controls has no properties.


metho
February 27th, 2006, 03:12 PM
Basically we've been having this problem in which our custom buttons are not working with the embedded windows media player in both firefox and IE. We've tried both codes shown below and still get no result. Can anyone tell me what we have been doing wrong? If more code is needed to post, then I will surely do so. Thanks.


document.getElementById("showLogo").controls.play();
// document.showLogo.controls.pause();

Dr. Script
February 27th, 2006, 07:01 PM
Ok ... I assume that showLogo is the name of an <emded> object. Does this code either (1) appear after the <embed> object is created, or (2) is it invoked in the onload event handler.

I assume the answer to both is no. What I would do (the easiest) is move all the code immediately after you create the <embed> object.

PeejAvery
February 27th, 2006, 11:47 PM
I assume the answer to both is know.
Haha. Know?

metho, can you also post the code you are using to embed the media, please?

Dr. Script
February 28th, 2006, 06:43 AM
Haha. Know?

metho, can you also post the code you are using to embed the media, please?
Thanks Paul ... usually I'm lazy and type "no" for "know" ... but I don't think I've ever done it the other way around until now ;)