[ overflow @ 14.03.2002. 11:07 ] @
Ima li neko JavaScript koji detektuje da li je na klijentovom racunaru instaliran flash plug-in? |
[ overflow @ 14.03.2002. 11:07 ] @
[ daniel.fiser.cz @ 05.04.2002. 13:33 ] @
<html>
<head> <title>Flash PlugIn check</title> <script language="JavaScript"> <!-- with (navigator) if (appName.indexOf('Microsoft') != -1 && appVersion.indexOf('Mac') == -1) document.write('<'+'script language="VBScript">\nOn error resume next\n'+ 'flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\</'+'script>'); function checkFlash() { var ok = false; with (navigator) if (appName.indexOf('Microsoft') == -1) ok = (plugins && plugins['Shockwave Flash']); else if (appVersion.indexOf('3.1') == -1) { //not Netscape or Win3.1 ok = (window.flash != null); } return ok; } //--> </script> </head> <body bgcolor="#f0f0d0"> <script language="JavaScript"> <!-- if (checkFlash()) { document.write("<embed src='banner.swf' type='application/x-shockwave-flash' width='468' height='60' autostart='true' loop='true'>"); } else { document.write("<img src='banner.gif' width='468' height='60'>"); } //--> </script> <noscript> <img src='banner.gif' width='468' height='60'> </noscript> </body> </html> [ darkopo @ 08.04.2002. 20:51 ] @
Klik.
Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|