Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 20

Discussione: caricare

  1. #1

    caricare

    E' possibile far caricare una pagina per intero prima che questa venga visualizzata?
    O meglio ancora, mostrare una pagina d'attesa mentre il browser carica gli elementi della pagina sucessiva nella quale si verrà catapultati al termine del caricamento?
    Una cosa tipo il preload di flash senza tutti gli accorgimenti di quest'ultimo.

    grazie

  2. #2
    Utente di HTML.it
    Registrato dal
    Apr 2000
    Messaggi
    938
    Ciao



    Puoi far visualizzare un messaggio fino al completo caricamento della pagina.


    <script>
    /************************************************** ******************************
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    ************************************************** ******************************/

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>

    </HEAD>

    <BODY bgcolor="white" onload="hideIt()">



    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....</h3></td></tr></table></div>')
    </script>

    <! -- Inizio Pagina -->




    Massimo

  3. #3
    Grazie!

    Devo metterlo nella pagina da caricare vero?

  4. #4
    Utente di HTML.it
    Registrato dal
    Feb 2001
    Messaggi
    743
    io ho fatto cosi... ma non funzione
    ;(((


    <html>
    <head>

    <script>
    / ****************************************
    ****************************************

    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    ****************************************
    ****************************************
    /

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>




    <title>..:: Relazione sulla Coppia ::..</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <link href="unicss.htm" rel="stylesheet" type="text/css">
    </head>
    <body bgcolor="#ffffff" onload="hideIt()">

    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....</h3></td></tr></table></div>')
    </script>

    <! -- Inizio Pagina -->

  5. #5
    Utente di HTML.it
    Registrato dal
    Apr 2000
    Messaggi
    938
    Ciao

    L'errore è nelle righe commentate delle info dell'autore


    Cambia così i commenti


    /*
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    */



    Cambia così la pagina, i tag che devono stare tra <head> e </head> CSS ecc..


    <html>
    <head>
    <title>..:: Relazione sulla Coppia ::..</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <link href="unicss.htm" rel="stylesheet" type="text/css">
    <script>
    /*
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    */

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>
    </head>
    <body bgcolor="#ffffff" onload="hideIt()">

    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....</h3></td></tr></table></div>')
    </script>

    <! -- Inizio Pagina -->

  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    6,034
    l'hai provato anche disabilitando javascript?

  7. #7
    Utente di HTML.it
    Registrato dal
    Feb 2001
    Messaggi
    743
    ok
    cosi funziona...
    poi io volevo aggiungere una rotella in flash...
    ma non va + niente...

    <html>
    <head>
    <title>..:: Relazione sulla Coppia ::..</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <link href="unicss.htm" rel="stylesheet" type="text/css">
    <script>
    /*
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    */

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>
    </head>
    <body bgcolor="#ffffff" onload="hideIt()">

    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....</h3><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="200">
    <param name="movie" value="load.swf">
    <param name="quality" value="high">
    <embed src="load.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="200"></embed></object>

  8. #8
    Utente di HTML.it
    Registrato dal
    Apr 2000
    Messaggi
    938
    Ciao


    Manca un pezzo di script


    Tutto dopo


    <! -- Inizio Pagina -->


    Massimo

  9. #9
    Utente di HTML.it
    Registrato dal
    Feb 2001
    Messaggi
    743
    <html>
    <head>
    <title>..:: Relazione sulla Coppia ::..</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <link href="unicss.htm" rel="stylesheet" type="text/css">
    <script>
    /*
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    */

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>
    </head>
    <body bgcolor="#ffffff" onload="hideIt()">

    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....vediamo</h3><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="200">
    <param name="movie" value="load.swf">
    <param name="quality" value="high">
    <embed src="load.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="200"></embed></object>

  10. #10
    Utente di HTML.it
    Registrato dal
    Apr 2000
    Messaggi
    938
    Ciao



    <html>
    <head>
    <title>..:: Relazione sulla Coppia ::..</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <link href="unicss.htm" rel="stylesheet" type="text/css">
    <script>
    /*
    Copyright (C) 1999 Thomas Brattli
    This script is made by and copyrighted to Thomas Brattli at www.bratta.com
    Visit for more great scripts.
    This may be used freely as long as this msg is intact!
    */

    //Browsercheck
    n=document.layers
    ie=document.all

    //Hides the layer onload
    function hideIt(){
    if(ie || n){
    if(n) document.divLoadCont.visibility="hidden"
    else divLoadCont.style.visibility="hidden"
    }
    }
    </script>
    <style>
    #divLoadCont{position:absolute; width:100%; height:100%; top:0; left:0; background-color:white; layer-background-color:white; font-family:arial,helvetica; z-index:100}
    TD{font-family:arial,helvetica}
    </style>
    </head>
    <body bgcolor="#ffffff" onload="hideIt()">

    <script>
    //We write the table and the div to hide the content out, so older browsers won't see it
    if(ie || n) document.write('<div id="divLoadCont"><table width="100%" height="95%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><h3>....Attendere per favore....</h3></td></tr></table></div>')
    </script>

    <! -- Inizio Pagina -->



    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="200">
    <param name="movie" value="load.swf">
    <param name="quality" value="high">
    <embed src="load.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="200"></embed></object>


    Modifica quello scritto sopra per flash il forum ha sostituito una scritta con una faccina



    Massimo

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.