hi to all this is a image rollover for buttons like when you move your mouse over the button it will change the button image to another here i do as much as i know and don't how to do further
can anyone say whether it is correct or wrong here is java script code as follows
<script>
var images;
function dopreload()
{
images = new
Array('image/pic borwn/antiguabrown.png','image/pic borwn/antiguabrown.png','image/pic borwn/Antiguablu.png','image/pic borwn/antiguabrown.png');
preload(images);
}
function preload(img)
{
for(var i =0; i < img.length; i++)
{
var im = new Images();
im.src = img[i];
}
}
function over(a)
{
document.images[a].src=images[a+2];
}
function out(a)
{
document.images[a].src=images[a];
}
</script>
here is corresponding html code as follows
<html>
<td> <img src="image/pic borwn/antiguabrown.png" onMouseOver="over(0)" onMouseOut="out(0)" width="145" height="80"></td> </html>