473,813 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why this one works in Opera not in Mozzila?

http://javascript.internet.com/games/mouse-bomb.html
works in IE

But I need it either work both in Mozzila and Opera or not work in
either.
Currently it works in Opera but not in Mozzila. Can anyone help me to
enable it in Firefox or disable it in Opera?

Thanks.
Jul 23 '05 #1
2 1072
In article <23************ **************@ posting.google. com>, i6033162556-
si*****@yahoo.c om.cn enlightened us with...
http://javascript.internet.com/games/mouse-bomb.html
works in IE

But I need it either work both in Mozzila and Opera or not work in
either.

Um, why?

I believe the test
if (window.opera)
will return true for Opera.
At least it used to.
I dunno if it will still return true if Opera is set to show itself as IE.

--
--
~kaeli~
With her marriage, she got a new name and a dress.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
kaeli wrote:
In article <23************ **************@ posting.google. com>, i6033162556-
si*****@yahoo.c om.cn enlightened us with...
http://javascript.internet.com/games/mouse-bomb.html
works in IE

But I need it either work both in Mozzila and Opera or not work in
either.
Um, why?

I believe the test
if (window.opera)
will return true for Opera.
At least it used to.


Still does :)
I dunno if it will still return true if Opera is set to show itself as IE.


Yes. window.opera is always present in Opera, irregardless of spoof-mode.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3610
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script language="JavaScript" type="text/javascript"> function show(that) { if (box.style.visibility=='hidden') { that.style.visibility = 'visible'}; }
7
7114
by: Nikolaos Giannopoulos | last post by:
I have a paragraph and simply want a bullet image to appear at the start of the paragraph text. I tried the following html: <p><span class="dot"></span>some text</p> as seen here: http://solmar.ca/temp8/test1.html Observed: IE5 and Moz 1.3 works - IE 6.0 and Opera 6.05 does not work I then assumed that maybe because there is nothing in the span that this problem appears for IE6 and Opera 6.05, so I tried a kludge as an
6
2478
by: Timo | last post by:
I have this list of checkboxes displaying properly in Opera and IE, but cannot get it in Firefox. For some reason, in FF, the checkboxes creep farther and farther to the right across the page, with each successive line: This is item one This is item two This is item three This is item four I would be grateful for some pointers on what's causing it and what I can do
1
2356
by: WH | last post by:
I put this line in HTML <body bgcolor="#FFFFFF" onLoad="focus()"> Both Mozzila and IE can do self.focus(). However Opera still does not take the focus().
2
16788
by: Pugi! | last post by:
I would like to obtain the the position of backgroundimage of a div because I use it for animation. The following code works for Internet Explorer (takes the else if) and returns positionx '10px' and position y '25px' (the backgroundPosition doesn't work). Opera follows the first road (if) and returns '10px 25px'. Firefox follows the same road (first if) as Opera but returns a blank. if (window.getComputedStyle) { var stijl =...
11
1930
by: Hymer | last post by:
Hello, I have a small table that works fine in IE6 but does not render at all in Opera or Firefox. Can anyone see what might be needed to get this to work in all three browsers? The code is below.
4
4531
by: artur.siara | last post by:
Hello, I want to remove from string a <span> tag, but with leave the value of that tag. I have that code: theExp = new RegExp("<span>", "g"); txt = txt.replace(theExp, "");
9
1958
by: DavidB | last post by:
Hi all I have a script that works perfectly in IE but not in FF. I am sure that the problem is easy to resolve, but I seem to be too dumb to figure it out. <html> <head> <script language="javascript">
5
6425
by: Heofz | last post by:
Hey all, I've been banging my head against a brick wall on this one for the last 12 hours, and the time has come for me to give up and consult the gurus on this one. The below URL contains a login page, you can test it using the details User: marco Pass: polo This seems to work PERFECTLY in opera, and it works in firefox but ONLY if I have firebug enabled. I don't care about IE for now, I'll sort that out later.
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10667
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10422
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5705
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
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 we have to send another system
2
3885
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.