Hi,
I need to change the image to another image using mouse click...
this is the code
i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg".
pls anyone help me to correct this code.......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>image slide</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type=text/css>
.fade-box
{
width: 359px;
position: absolute;
text-align:center;
}
#image-container
{
width: 359px;
height: 310px;
background-position:center;
background-repeat:no-repeat;
border-style:solid;
border-width:5px;
border-color:#c2cd23;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 10px;
}
function changeImage(obj)
{
obj.src =creek.jpg;
obj.src = dock.jpg;
}
</style>
</head>
<body>
<div id="image-container">
<div style="" class="fade-box" >
<a href="#"><img src="Forest.jpg" alt="forest image" width="359" border="0" height="310" onclick=changeImage(this)></a>
</div>
</div>
</body>
</html>