It would be more helpful if you provides SOME code attempt, even if it is only the images.
As it is, you will need to modify this to your needs as this is just a SWAG as to your needs.
Code:
<!DOC HTML>
<html>
<head>
<title> Valentines </title>
<script type="text/javascript">
// From: http://www.webdeveloper.com/forum/newreply.php?do=postreply&t=256670
//<![CDATA[
var baseURL = 'http://www.nova.edu/hpd/otm/pics/4fun/';
var imgList = ['11.jpg','12.jpg','13.jpg','14.jpg','15.jpg'];
var imgCount = -1;
function changeImg() {
imgCount++;
if (imgCount < imgList.length) {
document.getElementById('mainImg').src = baseURL+imgList[imgCount];
} else {
alert('Happy Valentine');
}
}
window.onload = function() {
changeImg();
}
//]]>
</script>
</head>
<body>
Click on image<br>
<img src="" id="mainImg" onclick="changeImg()">
</body>
</html>
Happy Valentine to you too!
Bookmarks