Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Detekcija "NO Flash-a"

[es] :: Flash :: Detekcija "NO Flash-a"

[ Pregleda: 4618 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

overflow
Goran Milosavljević
Integration & Internet Senior
Engineer @ Telenor
Beograd

Član broj: 396
Poruke: 345
*.tmf.bg.ac.yu

ICQ: 106825659
Sajt: localhost


Profil

icon Detekcija "NO Flash-a"14.03.2002. u 11:07 - pre 268 meseci
Ima li neko JavaScript koji detektuje da li je na klijentovom racunaru instaliran flash plug-in?
Sve sto je besmislenije, utoliko je bolje.
 
Odgovor na temu

daniel.fiser.cz
Daniel Fišer
Praga, CZ

Član broj: 2615
Poruke: 2
213.151.91.*



Profil

icon Re: Detekcija 05.04.2002. u 13:33 - pre 267 meseci
<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>
 
Odgovor na temu

darkopo
Veliko Gradiste

Član broj: 1389
Poruke: 11
*.InfoSky.Net

ICQ: 136400742
Sajt: www.012.co.yu


Profil

icon Re: Detekcija "NO Flash-a"08.04.2002. u 20:51 - pre 267 meseci
Klik.
 
Odgovor na temu

[es] :: Flash :: Detekcija "NO Flash-a"

[ Pregleda: 4618 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.