Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Mozilla + Mediplayer + Javascript

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?


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

Looking for a script that scrolls
Problem in Script
Stock Data
Restrict Scrolling
Make the only clickable area the center of the screen
Am I missing something, Validating?
validate string
Having trouble with some javascript code...
Script for date validation...

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics