Sorry for not reading your question properly:
This is an example where "hand" is the style of your images when plus.gif or minus.gif is in the source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
<html>
<head>
<title>My page</title>
<style type="text/css">
.myClass{
cursor:hand;
}
</style>
<script type="text/javascript">
function setEvents(){
var images = document.getElementsByTagN
for(var no=0;no<images.length;no++
if(images[no].src.match(/(
images[no].className='myCl
}
}
}
</script>
</head>
<body onload="setEvents()"">
<img src="image.gif">
<img src="plus.gif">
<img src="minus.gif">
</form>
</body>
</html>
Main Topics
Browse All Topics





by: BatalfPosted on 2005-04-06 at 13:36:07ID: 13721162
Use "this" to refer to the image
rsor='hand '" onmouseout="this.style.cur sor='defau lt'">
<img src="image.gif" onmouseover="this.style.cu