By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,716 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,716 IT Pros & Developers. It's quick & easy.

Why this one works in Opera not in Mozzila?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
In article <23**************************@posting.google.com >, i6033162556-
si*****@yahoo.com.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

P: n/a
kaeli wrote:
In article <23**************************@posting.google.com >, i6033162556-
si*****@yahoo.com.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.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.