Me and about 5 other people are making a Firefox promotion site, I already know there are others so I don't need to be told. I haven't purchased the domain yet but I do have a sponsor site that will buy it for me (photoshopsquad.com). I'm using a free hosting service to test the pages before I do anything with it- http://groogstestpages.freehostia.com/
This is what I have so far and it works pretty well except the browser detect screws up with Firefox. It says I have Netscape which I don't understand, the code I'm using in a div is-
Quote:
<script type="text/javascript">
var browser=navigator.appName
document.write("Detecting Browser... " + browser + " ")
if (browser!="Mozilla")
{
document.write("<b>You need to get Firefox!</b>")
}
</script>
|
Apart from the main question when I get it working will it detect the browser as "Firefox", "Mozilla" or "Mozilla Firefox"? I'm also going to want to make the border and background color change but that's a hole different topic. Any help would be appreciated!
Last edited by groog; 06-30-2007 at 06:54 PM..
|