[CODE=html]<html>
<head>
<title><%=strTi tle%></title>
<script language="JavaS cript"> <!--
var message="Sorry, that function is disabled.";
function onKeyDown(e) {
if (event.keyCode == 122) {
event.keyCode = 0;
event.returnVal ue = false;
alert(message);
}
}
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if(event.button == 4)
{
alert(message);
}
if (document.layer s) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layer s) {
document.captur eEvents(Event.M OUSEDOWN);
}
document.onmous edown=click;
if (document.layer s) {
document.captur eEvents(Event.K EYDOWN);
}
document.onkeyd own=onKeyDown;
// --> </script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0 ">
<div align="center">
<font face=arial size=1 color=#000000>< %=strTitle%></font>
<OBJECT
ID="mediaPlayer "
CLASSID="CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microso ft.com/activex/controls/mplayer/en/nsmp2inf.cab#Ve rsion=5,1,52,70 1"
STANDBY="Loadin g Microsoft Windows Media Player components..."
TYPE="applicati on/x-oleobject">
<PARAM NAME="fileName" VALUE="<%=strFu llPath%>">
<PARAM NAME="invisible " VALUE="true">
<PARAM NAME="animation atStart" VALUE="false">
<PARAM NAME="autoStart " VALUE="true">
<PARAM NAME="showContr ols" VALUE="true">
<PARAM NAME="ShowStatu sBar" VALUE="true">
<PARAM NAME="allowScan " VALUE="true">
<PARAM NAME="transpare ntatStart" VALUE="true">
<embed menu="true" QUALITY="best" ShowStatusBar=" true" width=305 height=90 loop="false" autostart="true "></embed>
</OBJECT>
</div>
</body>
[/CODE]
This Html file i am using to play Sample WMA file in my site.Its working in IE but its not play in FireFox.Please suggest me if you have any idea.
Regards
Rajiv
<head>
<title><%=strTi tle%></title>
<script language="JavaS cript"> <!--
var message="Sorry, that function is disabled.";
function onKeyDown(e) {
if (event.keyCode == 122) {
event.keyCode = 0;
event.returnVal ue = false;
alert(message);
}
}
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if(event.button == 4)
{
alert(message);
}
if (document.layer s) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layer s) {
document.captur eEvents(Event.M OUSEDOWN);
}
document.onmous edown=click;
if (document.layer s) {
document.captur eEvents(Event.K EYDOWN);
}
document.onkeyd own=onKeyDown;
// --> </script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0 ">
<div align="center">
<font face=arial size=1 color=#000000>< %=strTitle%></font>
<OBJECT
ID="mediaPlayer "
CLASSID="CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microso ft.com/activex/controls/mplayer/en/nsmp2inf.cab#Ve rsion=5,1,52,70 1"
STANDBY="Loadin g Microsoft Windows Media Player components..."
TYPE="applicati on/x-oleobject">
<PARAM NAME="fileName" VALUE="<%=strFu llPath%>">
<PARAM NAME="invisible " VALUE="true">
<PARAM NAME="animation atStart" VALUE="false">
<PARAM NAME="autoStart " VALUE="true">
<PARAM NAME="showContr ols" VALUE="true">
<PARAM NAME="ShowStatu sBar" VALUE="true">
<PARAM NAME="allowScan " VALUE="true">
<PARAM NAME="transpare ntatStart" VALUE="true">
<embed menu="true" QUALITY="best" ShowStatusBar=" true" width=305 height=90 loop="false" autostart="true "></embed>
</OBJECT>
</div>
</body>
[/CODE]
This Html file i am using to play Sample WMA file in my site.Its working in IE but its not play in FireFox.Please suggest me if you have any idea.
Regards
Rajiv
Comment