Avatar billede med Nybegynder
11. marts 1999 - 00:00 Der er 1 løsning

Flash check

Er der nogen der har det vildeste script til at kontrollere om brugeren har en Flash plugin installeret?

Scriptet skal virke til NN & IE !
Avatar billede bug Nybegynder
12. marts 1999 - 01:40 #1
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.

//Look for a version of Internet Explorer that supports ActiveX (i.e., one that's
//running on a platform other than Mac or Windows 3.1) or a browser that supports
//the plugin property of the navigator object and that has Flash Player 2.0
//installed.

if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 &&
    navigator.appVersion.indexOf("3.1") == -1) &#124;&#124;&#124;&#124;

    (navigator.plugins && navigator.plugins["Shockwave Flash"])
                      &#124;&#124;&#124;&#124; navigator.plugins["Shockwave Flash 2.0"]){

  //Load a pre-defined HTML page with Flash Player in it into the browser window.
    window.location='flashed.html';
}
else {
    //Load a pre-defined HTML page without Flash Player into the browser window.
    window.location='nonflashed.html';
}

// Close the comment tag. -->
</SCRIPT>
</HEAD>

<BODY>

<CENTER>

<H3><A HREF="flashed.html">See the Flashed Site</A><BR>
<FONT SIZE=3>requires <A HREF="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Flash Player</A></FONT></H3>

<H3><A HREF="nonflashed.html">See the unFlashed Site</A></H3>
</CENTER>

</BODY>
</HTML>

Sådan!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester