I stand by what I said about <a> tags and CSS, but if you insist on using JS, I don't know that I can help you much, as I have not had to use that in any of my projects yet.
Here is a sample of the code:
Code:
<html>
<head>
<!-- SAMPLE (The real thing can be a lot better, ie you can position is absolutly and place it over the image, and hide it until the user hovers over the image) //-->
<style type="text/css">
body{
background-color: #DDDDDD;
}a:link#BUTTON1 {
color: #000000;
background-image: url("YOUR IMAGE");
}a:hover#BUTTON1 {
color: #999999;
background-image: url("YOUR IMAGE");
}a:active#BUTTON1 {
color: #BBBBBB;
background-image: url("YOUR IMAGE");
}div.IMAGES{
height: 25px;
width: 100px;
border-width: 4px;
border-style: outset;
cursor: hand;
}
</style>
</head>
<body>
<a id='BUTTON1' href='?'><div class='IMAGES'>LINK</div></a>
</body>
<html>
Does that do what you need, or do you need JS?
Bookmarks