Forum Moderators: open

Message Too Old, No Replies

Firefox Problems

firefox, no properties

         

ACJavascript

5:28 pm on Apr 24, 2005 (gmt 0)

10+ Year Member



Hello all,

Okay, I am trying to get firefox to control an embed code. I just keep getting this error:

Error: document.player.controls has no properties
Source File: file:///C:/AC/CustomScripts/charlotte/templates/playtime_controls.html
Line: 5

My Code:
document.player.controls.stop();

My Embed Code:
<EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='player' name='player' displaysize='0' autosize='-1' bgcolor='darkblue' showcontrols="false" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="0" height="0" src="http://www.cytech-services.com/tester/songs/5.mp3" autostart="true" designtimesp='5311' loop="false" enablejavascript="true">
</EMBED>

I have also tried:
document.player.stop();

but Firefox just says stop() is not a valid function.

Anyone know what I should do?

Thanks for any possible help!

BlobFisk

10:46 am on Apr 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried document.getElementById('player').stop()?

The DOM structure that you are using looks like the IE specific one, try using DOM1 to access elements and Firefox should behave as expected!

HTH

ACJavascript

11:14 am on Apr 26, 2005 (gmt 0)

10+ Year Member



Thanks for replying!

Yep I have tried that as well, same error "stop is not a function"

dodozhang21

6:12 pm on Apr 30, 2005 (gmt 0)

10+ Year Member



do some function writing maybe

the one on this page works for me on firefox

[phon.ucl.ac.uk...]