Visualizzazione dei risultati da 1 a 3 su 3

Discussione: detect

  1. #1

    detect

    il problema lo scrivo alla fine!!!
    ho il file index scritto così:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <HTML>
    <HEAD><TITLE>welcome at lool</TITLE>

    <!-- Prevent caching in netscape.
    Very important cause netscape tends to mangle cached code -->
    <META HTTP-EQUIV="expires" CONTENT="0">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">


    <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="fpi-init.js"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="fpi-writevb.js"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="fpi-main.js"></SCRIPT>

    </HEAD>

    <BODY BGCOLOR="#FFFFFF">



    Rilevamento del plugin per Macromedia Flash in corso...


    <NOSCRIPT>
    <META HTTP-EQUIV="Refresh" CONTENT="10;URL=noflash.html">


    </NOSCRIPT>


    </BODY>
    </HTML>

    il file fpi-init.js è

    var requiredVersion = 6; // Version the user needs to view site (max 9, min 2)
    var useRedirect = true; // Flag indicating whether or not to load a separate
    // page based on detection results. Set to true to
    // load a separate page. Set to false to embed the
    // movie or alternate html directly into this page.

    // Only set next three vars if useRedirect is true...
    var flashPage = "load.swf" // The location of the flash movie page
    var noFlashPage = "noflash.html" // Page displayed if the user doesn't have the
    // plugin or we can't detect it.
    var upgradePage = "upgrade.html" // Page displayed if we detect an old plugin






    // System globals
    var flash2Installed = false; // boolean. true if flash 2 is installed
    var flash3Installed = false; // boolean. true if flash 3 is installed
    var flash4Installed = false; // boolean. true if flash 4 is installed
    var flash5Installed = false; // boolean. true if flash 5 is installed
    var flash6Installed = false; // boolean. true if flash 6 is installed
    var flash7Installed = false; // boolean. true if flash 7 is installed
    var flash8Installed = false; // boolean. true if flash 8 is installed
    var flash9Installed = false; // boolean. true if flash 9 is installed
    var maxVersion = 9; // highest version we can actually detect
    var actualVersion = 0; // version the user really has
    var hasRightVersion = false; // boolean. true if it's safe to embed the flash movie in the page
    var jsVersion = 1.0; // the version of javascript supported


    il mio problema è che quando pubblico il file index mi carica il vile swf a schermo pieno e non riesco a capire come mai.
    dove sbaglio?
    grazie

  2. #2
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,649
    da quello che hai postato si intuisce solo come funziona lo sniffer,
    tu stai puntando direttamente all' swf, non alla pagina html che lo contiene,
    sostituisci a
    var flashPage = "load.swf" // The location of the flash movie page
    questo
    var flashPage = "load.htm" // The location of the flash movie page
    dove load.htm è la pagina prodotta da flash al momento della pubblicazione dell' swf

  3. #3
    grazie, ma ora ho un altro problemino....
    facendo così mi carica i file in alto a sinistra, io vorrei caricarli al centro dello schermo.
    come posso fare
    grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.