Mince, on ne peut pas éditer les messages.. Dommage, donc désolé pour le triple post mais pas le choix
Donc je n'avais pas fini, j'ai trouvé un nouveau preloader JS pour mes images qui semble bien plus efficace que mon précédent ( je crois d'ailleurs l'avoir déniché ici même, donc merci :D ), le voici:
Code Javascript :
var time = 3;
var maxtime = 120;
/* PAs touche */
var done = 1;
time = time * 1000;
maxtime = maxtime * 1000;
loaded = new Array();
function Pre_load()
{
for( index = 0; index < document.images.length; index++ )
{
loaded[ index ] = false;
}
}
window.setTimeout( "document.getElementById('Loading_Img').style.visibility='hidden';", maxtime );
function Preload_Img()
{
imgs = document.images;
for( index = 0; index < imgs.length; index++ )
{
if( done >= imgs.length )
{
break;
}
else if( imgs[ index ].complete && loaded[ index ] == false )
{
done++;
loaded[ index ] = true;
}
}
if( done >= imgs.length )
{
window.setTimeout( "document.getElementById('Loading_Img').style.visibility='hidden';", time );
}
else
{
window.setTimeout( "Preload_Img()", '58' );
}
if( done == imgs.length )
{
window.setTimeout( "window.location.href='intro.html';", time);
}
PRC = Math.round( ( ( done / imgs.length ) * 100 ) );
barwidth = PRC * 2.13 ;
preview =
'<img src="images/loadingbar.gif" width=' + barwidth + ' height = 13/>'
+'<br />'+'<br />'
+ ' '+ PRC + ' ' + '%'
document.getElementById('Loading_Img').innerHTML = preview;
}
Pre_load();
Preload_Img();
Malheureusement, après avoir passé tout le weekend a trafiquoter ceci, je n'ai toujours pas réussi a inclure la possibilité de loader mon swf dans ce preloader...
Ce serait vraiment cool si quelqu'un avait une idée ou une piste a suivre, car là je sèche complètement
Merci