1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Image Slideshow</title>
<script type="text/javascript" language="Javascript">
<!-- Hide script from old browsers
photos = new Array("images/pathfinder.gif","images/surveyor.gif","images/surveyor98.gif")
modele = new Array("rouge","rechampi","noir")
prix = new Array("729","323","696")
lien= new Array("lien1.html","lien2.html","lien3.html")
thisPic = 0
total = photos.length - 1
function processPrevious()
{
var px, md, lien, image;
lien = document.getElementById("lien");
md = document.getElementById("modele");
px = document.getElementById("prix");
image = document.getElementById("myPicture");
if (thisPic > 0)
{
thisPic--;
image.src=photos[thisPic];
lien.href=lien[thisPic];
px.innerHTML = prix[thisPic];
md.innerHTML = modele[thisPic];
}
}
function processNext()
{
var px, md, lien, image;
lien = document.getElementById("lien");
md = document.getElementById("modele");
px = document.getElementById("prix");
image = document.getElementById("myPicture");
if (thisPic < total)
{
thisPic++;
image.src=photos[thisPic];
lien.href=lien[thisPic];
px.innerHTML = prix[thisPic];
md.innerHTML = modele[thisPic];
}
}
// End hiding script from old browsers -->
</script>
</head>
<body style="background-color:#FFFFFF">
<p><a href="lien1.html" id="lien2">rouge</a></p>
<p id="prix">729</p>
<p id="modele">rouge</p>
<p align="center"><img src="images/pathfinder.gif" id="myPicture" style="width: 201px; height:155px" alt="Slideshow" /></p>
<h1 align="center">
<a href="javascript:processPrevious()"><< Previous</a> <a href="javascript:processNext()">Next >></a></h1>
</body>
</html> |
Partager