Anybody have an idea on how to detect if a user has a toolbard, such as google toolbar or the new live.com toolbar? Thanks,
<html> <head> <title>Google Toolbar Detection</title> <object id="g1" classid="clsid:6CB5E471-C305-11D3-99A8-000086395495" style="display: none;"></object> <object id="g2" classid="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" style="display: none;"></object> </head> <body> <script language="javascript" type="text/javascript"> <!-- if (navigator.appName == "Microsoft Internet Explorer") { if (document.GoogleActivated) { alert("The Google Toolbar \(" + document.GoogleToolbarVersion + "\) was detected on your computer."); } else if (document.g2 && typeof(g2.Search) != "undefined") { alert("The Google Toolbar was detected on your computer."); } else { alert("The Google Toolbar was not detected on your computer."); } } else { alert("The Google Toolbar requires Microsoft Windows and Internet Explorer 5.0 or higher."); } //--> </script> </body> </html> Code (markup):
Giraph, this works great on IE6, thanks. Now, I just need something that works with firefox. Also, any idea on how to impliment this in PHP.... but I think I can figure that one out.