This script detects for the presence of FireFox and displays an image accordingly - either Get Firefox or Spread Firefox, for non-detection and detection.
edit: Forgot my script tag format, cheers Mike.
See it in action at www.afpsupport.r8.org (the top right image)Code:<script type="text/javascript"> if (navigator.userAgent.indexOf("Firefox")!=-1) document.write("<img src='http://img46.exs.cx/img46/3493/spreadfirefox180600mv.gif'>") if (navigator.userAgent.indexOf("MSIE")!=-1) document.write("<img src='http://img33.exs.cx/img33/3916/getfirefox180604pu.gif'>") </script>
cr3ative



Reply With Quote
It does in effect check for FireFox's presence, as it checks the agent string. I also can't really see why it'd be unreliable (or I may well be overseeing something major..
)





Bookmarks