Citation:
<script language="JavaScript">
<!--
/* define image width and height */
var pic_width=921;
var pic_height=104;
/* define the length of time to stay on each image */
/* 1000 = 1 second */
var delay=2000;
/* define image urls */
if (document.images)
{
pic1= new Image(pic_width,pic_height);
pic1.src="URL image1";
pic2= new Image(pic_width,pic_height);
pic2.src="URL image2";
pic3= new Image(pic_width,pic_height);
pic3.src="URL image3";
}
var pics= new Array(5)
pics[0]=pic1.src;
pics[1]=pic2.src;
pics[2]=pic3.src;
var numpics=3;
var thenum=0;
imgName="img1";
function change_it()
{
if (document.images)
{
document.write("<img src='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'>");
setTimeout('change_it2()',delay);
}
}
function change_it2()
{
var x=0;
thenum+=1;
if (thenum>numpics-1)
thenum=0;
document[imgName].src=pics[thenum];
x+=1;
setTimeout('change_it2()',delay);
}
//-->
</script>
<script type="text/javascript">
<!--
change_it();
//-->
</script>
Citation:
<script language="JavaScript1.2">
var variableslide=new Array()
//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]
variableslide[0]=['http://votre image 1.gif', 'http://votre lien1', 'FACULTATIF texte(vous pouvez laisser vide)']
variableslide[1]=['http://votre image 2. gif', 'http:// votre lien 2', ' ']
variableslide[2]=['http://votre image 3.jpg', 'http://votre lien 3', ' ']
var slidewidth='230px'
var slideheight='180px'
var slidebgcolor='#F3F3F3'
var slidedelay=3000
////Do not edit pass this line////////////////
var ie=document.all
var dom=document.getElementById
for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}
var currentslide=0
function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]
if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}
if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}
if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
</script>
var slidewidth='230px' => largeur du plus grand image dans votre diaporama
var slideheight='180px' => hauteur du plus grand image dans votre diaporama
var slidebgcolor='#F3F3F3' => couleur de l'arrière plans
var slidedelay=3000=> Définies la durée de temps de séjour sur chaque image
FACULTATIF texte => Un texte de description peut être ajoutée en option sous une image dans le diaporama
______________
Visitez :