nani ou autre pour voir où on est !!! pour les essais !!!
<script type="text/javascript" src="der.js"></script>
window.onload=function()
{ var nom=unescape(self.location.pathname).split('/');
var pag=nom[nom.length-1];
var pages=new Array( "nani.html", "kati.html", "loli.html", "rita.html" );
var nb1=pages.length;
var sui=0;
for ( i=0; i<nb1; i++ )
{ if ( pages[i]==pag )
{ sui=i+1;
if ( sui >= nb1 )
{ sui=0; }
break;
}
}
setTimeout ( function()
{ location.replace( pages[sui] ); }
,1000 );
}
<script type="text/javascript">
var pages=new Array("nani.html","kati.html","loli.html","rita.html");
var index=1;
setInterval( function() { index++;
document.getElementById("aff").src=pages[index%pages.length]; }, 1000 );
</script>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<script type="text/javascript">
window.onload=function()
{ var nom=unescape(self.location.pathname).split('/');
var pag=nom[nom.length-1];
var pages=new Array( "nani.html", "kati.html", "loli.html", "rita.html" );
var nb1=pages.length;
var sui=0;
for ( i=0; i<nb1; i++ )
{ if ( pages[i]==pag )
{ sui=i+1;
if ( sui > nb1 )
{ sui=0; }
break;
}
}
setTimeout ( function()
{ location.replace( pages[sui] ); }
,1000 );
}
</script>
...
<meta http-equiv="Refresh"
content="1; URL="kati.html">
...
<meta http-equiv="Refresh"
content="1; URL="loli.html">