JavaScript Source Code 3000: User Details: Plugins Alert
Plugins Alert
Because seeing a table of your plug-ins is cool and all, take a look at this script. First, the JavaScript counts how many plug-ins the user has installed. Then, it alerts the user and comments on the number of plug-ins. Pretty cool!
JavaScript Source Code 3000: User Details: Plugins Alert
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- ONE STEP TO INSTALL PLUGINS ALERT:
1. Put the coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<! >
<! >
<!-- Begin
var num_of_plugins = navigator.plugins.length;
for (var i=0; i < num_of_plugins; i++) {
var list_number=i+1;
document.write("<font color=red>Plug-in No." + list_number + "- </font>"+navigator.plugins[i].name+" <br>[Location: " + navigator.plugins[i].filename + "]<p>");
}
if (list_number>15) {
alert("\nWOW, You got " + list_number + " plug-ins installed!")}
else {
alert ("\nGet some more plug-ins! You only \nhave "+ list_number + " plug-ins installed!")
}
// End -->
</SCRIPT>
</CENTER>
<!-- Script Size: 0.91 KB -->
Wyszukiwarka
Podobne podstrony:
alert buttonPlugins additionalalertplugin saveMetastock Plugin Strategic Edge Trading System Readmeplugin directionalityAlert Solo 250 EW2001 09 Gimp Workshop Plugin FeaturesUsuwanie pluginów Dreambox Telnetpluginyplugin zoomplugin insertdatetimepluginyfunction msession pluginwięcej podobnych podstron