Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    caricamento filmati flash

    Ho una pagina realizzata con fireworks e suddivisa in varie porzioni per consentire un caricamento più gradevole, ho inserito però anche due filmati flash. Vorrei trovare un sistema per far partire il caricamento di questi due filmati solamente dopo che ho caricato tutti i jpg della home page. Adesso accade il contrario... il caricamento iniziale dei due filmati flash rende il caricamento della home page poco fludio...
    C'è una soluzione?

  2. #2

  3. #3
    il problema è che ho 30 porzioni d'immagine....

  4. #4
    Originariamente inviato da maxcondor
    il problema è che ho 30 porzioni d'immagine....
    è il problema qual'è ?

    le metti tutte

    non vedo il problema ?

  5. #5
    ho scaricato l'esempio e funziona, l'ho applicato alla mia pagina e non funziona perchèèèèèèèèèèèèèèèè!!!!

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Castello di Caccuri</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="stili_cast/stili.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    var immagini = new Array("home_castello_r10_c1.jpg", "home_castello_r10_c11.jpg","home_castello_r10_c13 .jpg","home_castello_r10_c14.jpg","home_castello_r 10_c5.jpg","home_castello_r10_c8.jpg","home_castel lo_r10_c9.jpg","home_castello_r11_c17.jpg","home_c astello_r12_c1.jpg","home_castello_r12_c15.jpg","h ome_castello_r13_c3.jpg","home_castello_r14_c17.jp g","home_castello_r15_c18.jpg","home_castello_r15_ c3.jpg","home_castello_r15_c4.jpg","home_castello_ r15_c4.jpg","home_castello_r15_c4.jpg","home_caste llo_r2_c1.jpg","home_castello_r2_c1.jpg","home_cas tello_r2_c10_f2.jpg","home_castello_r2_c13.jpg","h ome_castello_r3_c1.jpg","home_castello_r3_c2.jpg", "home_castello_r3_c2_f2.jpg","home_castello_r3_c6. jpg","home_castello_r3_c7.jpg","home_castello_r3_c 7_f2.jpg","home_castello_r4_c10.jpg","home_castell o_r5_c7.jpg","home_castello_r6_c2.jpg","home_caste llo_r7_c1.jpg","home_castello_r7_c12.jpg","home_ca stello_r7_c14.jpg","home_castello_r7_c16.jpg","hom e_castello_r7_c5.jpg","home_castello_r7_c8.jpg","h ome_castello_r7_c9.jpg","home_castello_r8_c16.jpg" ,"home_castello_r8_c19.jpg","home_castello_r9_c1.j pg","home_castello_r9_c11.jpg","home_castello_r9_c 13.jpg","home_castello_r9_c14.jpg","home_castello_ r9_c5.jpg","home_castello_r9_c8.jpg","home_castell o_r9_c9.jpg","stend.jpg");

    var sorgenti = new Array();

    function init() {
    for (var i = 0; i < immagini.length; i++) {
    sorgenti[i] = new Image();
    sorgenti[i].car = false;
    sorgenti[i].onerror = function() {this.car = true;};
    sorgenti[i].src = immagini[i];
    }
    controlla();
    }

    function controlla() {
    for (var i = 0; i < sorgenti.length; i++) {
    if(!sorgenti[i].car){
    if(!sorgenti[i].complete){
    setTimeout("controlla()", 50);
    return;
    } else {
    sorgenti[i].car = true;
    }
    }
    }
    avvia();
    }

    function avvia() {
    var IE = navigator.appName.indexOf("Microsoft") != -1;
    var filmato = IE ? window.mainMovie : window.document.mainMovie;
    filmato.LoadMovie(0, "swf/spot_down.swf");
    }
    //-->
    </script>
    </head>
    <BODY onLoad="MM_preloadImages('images/images_home/home_castello_r2_c10_f2.jpg','images/images_home/home_castello_r3_c2_f2.jpg','images/images_home/home_castello_r3_c7_f2.jpg');init()">
    .........

  6. #6
    hai settato swLiveConnect sul tag del filmato ?

    hai messo il finto filmato di partenza ?

    ke errore ti da ?

    kome hai visto funziona, se non ti funziona è perkè dimentiki o sbagli qualkosa, prendi tempo

    PS: come hai letto nel tutorial funziona "solo" con IE

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.