Topic: browsercheck, check to see if javascript is enabled, flash detect, and screen resolution (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: purgatory |
posted 02-11-2007 01:28
I am trying to find and create a script that browser checks, checks to see if javascript is enabled, flash detect, and what the screen resolution is. |
Paranoid (IV) Inmate From: Norway |
posted 02-11-2007 08:58
Ring! ring! It's 1996 calling. Give me my homepages back or else. quote: What does mozilla do that other browsers such as IE6/7, Safari, Opera, Omniweb, Konqueror, ... don't ? You should definitely do features detection instead of browser detection. Also the kind of function you want is the very reason why it's so easy today to spoof the UA string. quote: Easy: code: <noscript><script language='javascript'> document.write( '<scr'+'ipt>alert(message)</scr'+'ipt>') </script></noscript> I hope you can see the irony here. Actually I've seen such absurdities in the the wild a few times. quote: Since when the screen resolution meant anything WRT to the resolution of the browser windows ? FYI my laptop is in 1024x768, my browser is maximised and my windows/tabs are maximixed, the windows/tabs are 822x652. If a page needs a horizontal scrollbar I make it Fit-To-Width or Zoom it out to 80 or 90% quote: Make your 5 function true or false depending if the requirement tested is met or not then combine the calls in one function: code: function allTestInOne() { var goOn = false; goOn = testRequirement1() if( goOn ) goOn = testRequirement2() if( goOn ) goOn = testRequirement3() if( goOn ) goOn = testRequirement4() if( goOn ) goOn = testRequirement5() if( goOn ) self.location.replace( 'home.asp' ) else self.location.replace( 'http://www.w3.org/WAI/' ) } |
Paranoid (IV) Inmate From: Norway |
posted 02-11-2007 17:42 |
Obsessive-Compulsive (I) Inmate From: purgatory |
posted 02-13-2007 04:32
awsome thnaks and its my personal site and I designed it for mozzilla casue I prefer it, and I guess I dont need the scrren res casue ur right. but java and flash are inportant. but thank you very much. I ts greatly appreciated . |
Paranoid (IV) Inmate From: USA |
posted 02-13-2007 06:10
Just because you prefer Mozilla doesn't mean you should force your preferences on everyone else. There are plenty of great browsers that many use on a regular basis (Firefox, Opera, Konqueror, Safari)... so purposefully making your site only work in one is not just irresponsible, but it shows that you don't care about your readers. And if you don't care about them, why should they visit your site? |
Paranoid (IV) Inmate From: London |
posted 02-13-2007 10:37
Progressive enhancement! |
Paranoid (IV) Inmate From: Norway |
posted 02-13-2007 10:51
|
Paranoid (IV) Inmate From: Paris, France |
posted 02-13-2007 20:43
Perhaps ridinglowest is trying to do a remake of this |
Paranoid (IV) Inmate From: London |
posted 02-14-2007 13:41
quote: I blame lazy developers! |
Neurotic (0) Inmate Newly admitted From: |
posted 04-21-2011 01:58
A good site which checks your browser support for javascript and also tells you the version is www.IsMyJavaScriptEnabled.com |
Nervous Wreck (II) Inmate From: |
posted 05-31-2011 11:00
Edit TP: spam removed
|