Il faut recopier dans la
source de la page, entre <head...> et</head >,
le texte suivant par un "copier coller"
<HEADER>
<script language="JAVASCRIPT">
var NumeroPanneau = -1;
var NumeroTransition = 0;
var VitessePanneau = 1500;
var VitesseTransition = 200;
Panneaux = new Array;
Panneaux[0] = new Image(468, 60);
Panneaux[0].src = "image0.gif";
Panneaux[1] = new Image(468, 60);
Panneaux[1].src = "image1.gif";
Panneaux[2] = new Image(468, 60);
Panneaux[2].src = "image2.gif";
AdresseWeb = new Array;
AdresseWeb[0] = "page1.htm";
AdresseWeb[1] = "page2.htm";
AdresseWeb[2] = "page3.htm";
Transitions = new Array;
Transitions[0] = new Image(468, 60);
Transitions[0].src = "trans0.gif";
Transitions[1] = new Image(468, 60);
Transitions[1].src = "trans1.gif";
Transitions[2] = new Image(468, 60);
Transitions[2].src = "trans2.gif";
Transitions[3] = new Image(100, 30);
Transitions[3].src = "trans1.gif";
Transitions[4] = new Image(100, 30);
Transitions[4].src = "trans0.gif";
function ChangePanneau()
{
if (NumeroTransition > Transitions.length - 1)
{
NumeroPanneau++;
NumeroTransition = 0;
if (NumeroPanneau > Panneaux.length - 1) NumeroPanneau = 0;
AffichePanneau();
return;
}
else
{
document.ImagePanneau.src = Transitions[NumeroTransition].src;
setTimeout("ChangePanneau()", VitesseTransition);
}
NumeroTransition++;
}
function AffichePanneau() {
document.ImagePanneau.src = Panneaux[NumeroPanneau].src;
return;
}
function ControlePanneau() {
VitessePanneauCalculee = VitessePanneau + (Transitions.length * VitesseTransition);
ChangePanneau();
setTimeout("ControlePanneau()", VitessePanneauCalculee);
}
function ChangeLienPanneau() {
window.location.href = AdresseWeb[NumeroPanneau];
}
</script>
</HEADER>
Et recopier dans la source de la page, entre <body.> et</body >:
<a
href="javascript:ChangeLienPanneau()"
onmouseover="window.status = 'En cliquant vous allez vers la page :
'+AdresseWeb[NumeroPanneau];return true;"
onmouseout="window.status = '';return true;">
<p align="center"><img border="5" height="60"
width="468" src="image0.gif"
name="ImagePanneau"></a> </p>
Et remplacer <body> par <body onload="ControlePanneau()">