I've been looking for a script that will detect a surfers browser type and version and display a text message with directions for a the browser type and version i say.
I've been looking for a script that will detect a surfers browser type and version and display a text message with directions for a the browser type and version i say.
It's impossible to do perfectly. You can best attempt it with Javascript:Code:<div id="instructions-opera" style="display: none;"> Instructions for Opera... </div> <div id="instructions-ie" style="display: none;"> Instructions for IE... </div> <div id="instructions-generic"> Generic instructions... </div> <script type="text/javascript"> var btype = "generic"; document.getElementById("instructions-" + btype).style.display = "none"; if(window.opera) btype = "opera"; else if(window.ActiveXObject) btype = "ie"; document.getElementById("instructions-" + btype).style.display = "block"; </script>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
where would it be processed?
what language?
see this article for the forum rules about posting
I was hoping for JS
boogyman, this would be the right forum to post in being that there is no question about a particular scripting language, but instead they are looking for this specific service.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Bookmarks