techhead4life [mailto:[EMAIL PROTECTED]] ink wired:
> I want to know if there is a script in jsp that detect plugins in browser. I found the following on the web: // If you use this script please leave the following line intact //SCRIPT BY www.volume4.co.za //MOVE WINDOW POSITION window.moveTo(200,200); //TEST VARIABLES browsername = navigator.appName; //IF STATEMENTS IE if (navigator.appName.indexOf("Microsoft") != -1) { browserversion = navigator.appVersion.charAt("22"); } //CHECK FOR VIDEOPLAYER PLUGIN //Not implemented yet //CHECK FOR FLASH PLUGIN //Not implemented yet //CHECK FOR JAVA ENABLING if (navigator.javaEnabled() != -1) { javaE = "OK"; } else { javaE = "<a herf = \"../help/help.html\" target=_blank>Java Enable your browser</a>"; } //DETERMINE SCREEN RESOLUTION if ((screen.width != 800) && (screen.height != 600)) { screenw = "<a href = \"../help/help.html\" target=_blank>Change your screen resolution please</a>"; screenh = "."; } else { screenw = screen.width + " x "; screenh = screen.height; } //WINDOW OPENING METHOD function opener() { destination = "../help/help.html"; window.open(destination,null,"height=500, width=585, menubar=no, scrollbars=yes"); } //WINDOW CLOSING METHOD function closer() { window.close(); } //HTML PAGE document.write("<html><head><title>VirtualCCSA - JavaScript Tester IE</title>" + "<style>a:hover {Color:lime} </style>" + "</head><body bgcolor=\"gray\"><font color=\"white\"><center><h3>Test Results</h3>" + "</center><b>Browser: </b>" + browsername + " " + browserversion + "<br><b>FlashPlayer: </b>" + "<a href = \"javascript:opener();\">See if you have the plug-in</a>" + "<br><b>JavaEnabled: </b>" + javaE + "<br><b>Media Player: </b>" + "<a href = \"javascript:opener();\">See if you have the required player</a>" + "<br><b>Screen res: </b>" + screenw + screenh + "<p>If there is a link next to any of the sections, click on the link to find out more or download the needed software" + "<p><center><b><a href = \"javascript:closer(); \">close window</a></b></center></font></body></html>"); //DOCUMENT END -- Dwacon www.dwacon.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com