Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Got Shockwave?</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <H2> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from older browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. hasShockwave = false for (i=0; i<navigator.plugins.length; i++) { if (navigator.plugins[i].name.indexOf("Shockwave") >= 0) { hasShockwave = true } } if (hasShockwave) { document.write("You have Shockwave, you lucky person, you!") } else { document.write("Sorry, you don't have Shockwave.") } // End hiding script from older browsers --> </SCRIPT></H2> </BODY> </HTML>