JavaScript checks whether the browser supports Flash, and the program outputs the results:
<script> function Flashchecker () {var hasflash = 0;//whether flash var flashversion = 0 is installed;//flash version if
(document.all) {var swf = new ActiveXObject (' Shockwaveflash.shockwaveflash ');
if (swf) {hasflash = 1; vswf = swf.
GetVariable ("$version");
Flashversion = parseint (Vswf.split ("") [1].split (",") [0]); } else {if (navigator.plugins && navigator.plugins.length > 0) {var swf = Navigator.plugi
ns["Shockwave Flash"];
if (swf) {hasflash = 1;
var words = Swf.description.split ("");
for (var i = 0; i < words.length ++i) {if (isNaN (parseint (words[i))) continue;
Flashversion = parseint (Words[i]);
}}} return {f:hasflash, v:flashversion};
var FLs = Flashchecker ();
var s = "";
if (FLS.F) document.write ("You have installed Flash, the current Flash version is:" + fls.v + ". X");
else document.write ("You do not have Flash installed"); </scripT>