473,486 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Compatibility problem with Firefox

rajiv07
141 New Member
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  <head>
  3.   <title><%=strTitle%></title>
  4.  <script language="JavaScript"> <!--
  5.  
  6. var message="Sorry, that function is disabled.";  
  7.  
  8.  
  9. function onKeyDown(e) {
  10. if (event.keyCode == 122) {
  11. event.keyCode = 0;
  12. event.returnValue = false;
  13.  alert(message);
  14. }
  15. }
  16.  
  17.  
  18. function click(e) {
  19. if (document.all) {
  20. if (event.button == 2) {
  21. alert(message);
  22. return false;
  23. }
  24. }
  25.  if(event.button == 4)
  26.             {                
  27.                 alert(message);
  28.             }
  29.  
  30.  
  31. if (document.layers) {
  32. if (e.which == 3) {
  33. alert(message);
  34. return false;
  35. }
  36. }
  37. }
  38. if (document.layers) {
  39. document.captureEvents(Event.MOUSEDOWN);
  40. }
  41. document.onmousedown=click;
  42.  
  43. if (document.layers) {
  44. document.captureEvents(Event.KEYDOWN);
  45. }
  46. document.onkeydown=onKeyDown;
  47.  
  48. // --> </script>
  49.  </head>
  50. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  51. <div align="center">
  52. <font face=arial size=1 color=#000000><%=strTitle%></font>
  53.  <OBJECT 
  54.   ID="mediaPlayer"  
  55.   CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"  
  56.   CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
  57.   STANDBY="Loading Microsoft Windows Media Player components..." 
  58.   TYPE="application/x-oleobject">
  59.   <PARAM NAME="fileName" VALUE="<%=strFullPath%>">
  60.   <PARAM NAME="invisible" VALUE="true">
  61.   <PARAM NAME="animationatStart" VALUE="false">
  62.   <PARAM NAME="autoStart" VALUE="true">
  63.   <PARAM NAME="showControls" VALUE="true">
  64.   <PARAM NAME="ShowStatusBar" VALUE="true">
  65.   <PARAM NAME="allowScan" VALUE="true">
  66.   <PARAM NAME="transparentatStart" VALUE="true">
  67.   <embed menu="true" QUALITY="best" ShowStatusBar="true" width=305 height=90 loop="false" autostart="true"></embed>
  68.  </OBJECT>
  69.  </div>
  70. </body>
  71.  
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
Apr 23 '08 #1
3 1609
gits
5,390 Recognized Expert Moderator Expert
you just cannot embed activeX controls in other browsers ... this will only! work with IE ...

kind regards

PS: and btw. i would never recommend to use such an annoying 'don't-right-click-me'-script ... it's bad ui-design since it doesn't really avoid what it should avoid and it overrides learned behaviour by the user ... so it is annoying and useless too ...
Apr 23 '08 #2
rajiv07
141 New Member
Thanks Gits and sorry to take long time to reply

Could you suggest me any other method to embed WMA file in HTML.Because i want to display WMA file in my site.

Regards
Rajiv
May 2 '08 #3
gits
5,390 Recognized Expert Moderator Expert
i'm not very familiar with such multimedia-like content in webpages since that always requires plugins that are not necessarily available at the clients machines ... but i guess you could try to create a flashmovie and use a flashplayer for that ... and i assume with that you would have the most support in browsers and operating systems where the browser is executed ... note: since i use a mac for example i couldn't use wma files unless i would download an additional codec-pack ... and i always find it annoying to make things at a page work for myself ... because it would be bad ui-design. you could even try to detect the ability to play wma-files (don't ask me how ;) - i don't know) ... and just use another good page for those who cannot use your wma-content to avoid to possibly force the user to download codecs or whatever ...

kind regards
May 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2488
by: Kevin Matthews | last post by:
i'm having strange problems with browser compatibility between firefox and internet explorer, ---------------------------------------- The following is the CSS:...
36
3520
by: Simon Wigzell | last post by:
I have the following in my webpage: <body onresize=CenterIt(); onMouseMove=mouseCheck(event);> CenterIt and mouseCheck are my own javascript functions. Works fine for IE and Opera, doesn't...
1
1785
by: Goffin | last post by:
Hey I have an asp.net datagrid width a scrollbar. This scrollbar is placed using a div-tag around the grid with a style property overflow:scrolling, a width an a height. This works very well in...
34
3793
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
4
1921
by: dreamamit2001 | last post by:
Hi, I would like to know the ASP.NET2.0's(Controls, Menubar, Validations, Object Data Souce Controls, Treeview Control) compatibility with IE5.0 browser on Mac OS. If I don't use Client side...
27
2684
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such...
1
982
by: Jawad Rehman | last post by:
Hi.... Is there any font that is compitable with IE 6 and FireFox 2 Beta 2.In my page i have Verdana font.Its looks different in both browsers. I have used Multi Line textbox in page.It shows...
5
1595
by: Big Moxy | last post by:
I'm a Windows guy and know virtually nothing about the Mac world. How can I ensure compatibility with Mac browsers? My question is motivated by the fact I have a new client who is running a Mac. ...
57
4671
by: HEX | last post by:
Have a site under development which works with both IE and Mozilla Firefox. Three MAC users accessed site and two have a small problem with one page and the other recently went to the new Leopard...
1
2757
by: Jason7899 | last post by:
hi, i have tested ie8 and for my suprise this browser have this "Compatibility View List" when this is turned off some sites that i have made that have some ajax functions simple don´t run i don´t...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.