Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

FireFox checker - see if using firefox *for cms*

Initiate Mage
Joined
Apr 18, 2008
Messages
84
Reaction score
1
SS :

Stars0fLight - FireFox checker - see if using firefox *for cms* - RaGEZONE Forums


Place this at the top of your html/php/htm file
PHP:
<script>
function detectBrowser() {
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
		if ((browser=="Netscape") && (version>=4)) {
		}
		else {
			alert("Please use FireFox for best viewing of this site. ~Stars");
		}
}
</script>

Change the
alert("Please use FireFox for best viewing of this site. ~Stars");
to your likeing
 
Initiate Mage
Joined
Jul 18, 2008
Messages
81
Reaction score
1
Re: [Release] FireFox checker - see if using firefox *for cms*

I don't believe this detects whether or not the browser implements different rendering engines, Gecko for example. In most cases, it wouldn't matter though.

However, nice googling.
 
Junior Spellweaver
Joined
Jul 28, 2008
Messages
154
Reaction score
1
Re: [Release] FireFox checker - see if using firefox *for cms*

Mm, nice.
 
Initiate Mage
Joined
Apr 15, 2008
Messages
29
Reaction score
0
Re: [Release] FireFox checker - see if using firefox *for cms*

Why would you want them limited to firefox? What about Opera and Safari and all the others?
 
Initiate Mage
Joined
Apr 18, 2008
Messages
84
Reaction score
1
Re: [Release] FireFox checker - see if using firefox *for cms*

Why would you want them limited to firefox? What about Opera and Safari and all the others?

add those in...?
i just don't use those 2...>->
 
Experienced Elementalist
Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Release] FireFox checker - see if using firefox *for cms*

I hate firefox. Opera FTW. :laugh:
 
Back
Top