Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wmp9 + netscape7

Status
Not open for further replies.

jackyn

Programmer
Joined
Dec 24, 2002
Messages
11
Location
FR
Hello
With :
- windows media player 9 (not realplayer)
- sound files Snd.wma (not snd.ra)
- Netscape7 (not ie6)
what I have to write
in the change() function, to change the sound ?

function change(str)
{
document.player.src = str; // does not work
document.player.play(); // does nor work
}

<embed type="application/x-mplayer2"
src=""
name="player"
width=490
height=45
autostart=1
showcontrols=1
loop=1>
</embed>

<input type=button value='?' onClick=change('snd.wma');>

Avec mes remerciements anticipes.
Anticipate thanks. jackyn
 

I've not tested this so cannot be 100% sure that it works, but give it a try anyway:

Code:
document.getElementById('myPlayer').src = str;

...

<embed id="myPlayer" ... >

Hope this helps,
Dan

 
hello
Thanks for answering
It does not work!
There is no sound.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top