- 2007-09-27 (Thu) 23:13
- BrowserDetect
New browser detection only with HTML 2.0 without any JavaScript/CSS hacks.
Demo:
Browser detection : HTML 2.0 only (demo)

Example
perl -e 'print<<EOF
<img x=` s\x00rc="safari2.gif" ` sr\x00c="ie.gif"
src\x00="webkit.gif" src\x0c="opera.gif"
src="gecko.gif" src="lynx.gif" />
EOF'

Comments:2
- Joel 07-10-04 (Thu) 7:08
-
This is sweet! For all of you nay sayers over on Digg, here is a simple way to use this technique. The style changes between IE and Firefox. I’m sure the same thing could be used to set a different style sheet for each!
TESTING THIS DIV THING
- Joel 07-10-04 (Thu) 7:10
-
Code didn’t submit properly because it was interpreted as HTML:
[div /’’style=”width:100;height:100;background-color:red;border-width:1px;color:white;” /style=”width:200;height:200;background-color:blue;border-width:5px;color:black;”]
TESTING THIS DIV THING
[/div]