Topic: browsercheck, check to see if javascript is enabled, flash detect, and screen resolution (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: purgatory |
![]() 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 |
![]() 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>
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 |
![]() |
Obsessive-Compulsive (I) Inmate From: purgatory |
![]() 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 |
![]() 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 |
![]() Progressive enhancement! |
Paranoid (IV) Inmate From: Norway |
![]()
|
Paranoid (IV) Inmate From: Paris, France |
![]() Perhaps ridinglowest is trying to do a remake of this |
Paranoid (IV) Inmate From: London |
![]() quote: I blame lazy developers! |
Neurotic (0) Inmate Newly admitted From: |
![]() 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: |
![]() Edit TP: spam removed
|