Mozilla + Mediplayer + Javascript |
bruzgis 03-16-2006, 02:30 PM Hi, i have a little problem: i try to use mediaplayer in my page. It works good
with html tag object and IE, but i want to make it work with Mozilla firefox too.
I think the problem is that when i use embed tag i cant specify the name of the mediplayer object and i cant say him "play()" so.
Here is the code i use:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<OBJECT ID="MediaPlayer"
WIDTH="160" HEIGHT="130"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE=http://codingforums.com/archive/index.php/"_a.wmv">
<PARAM NAME="autostart" VALUE="false">
<PARAM NAME="showcontrols" VALUE="false">
<EMBED TYPE="application/x-mplayer2"
SRC=http://codingforums.com/archive/index.php/"_a.wmv"
NAME="MediaPlayer"
WIDTH="160" HEIGHT="130"
AUTOSTART="0" SHOWCONTROLS="0">
</EMBED></OBJECT>
<br>
<IMG SRC=http://codingforums.com/archive/index.php/"http://codingforums.com/archive/index.php/rodyti1.bmp" NAME="but"
border=0
onMouseOver="document.but.src='rodyti2.bmp'"
onMouseOut="document.but.src='rodyti1.bmp'"
onclick="document.MediaPlayer.play()" width="36" height="28">
</body>
</html>
What is my problem? Could anyone try to make it work on Mozilla?
|
|
|
|
|