> sorry what i meant was i dont believe you can change a
> background image via javascript. my bad
Something like this;
<html>
<head>
<script>
function changeOver(id)
{
var elem = document.getElementById(id);
elem.style.backgroundImage = "url(submit.gif)";
elem.style.cursor = 'pointer';
elem.style.cursor = 'hand';
}
function changeOut(id)
{
var elem = document.getElementById(id);
elem.style.backgroundImage = "url(search.gif)";
}
</script>
</head>
<body>
<span style="background-image: url(search.gif); color: white;" id="myP" onmouseout="changeOut(this.id);" onmouseover="changeOver(this.id);">
Hello to all of you. This text is white
</span>
</body>
</html>
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.