<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
#myCell {
background-image: url("pic2.gif");
}
.over {
background-image: url("pic1.gif");
;
}
.out {
background-image: url("pic2.gif");
;
}
-->
</style>
<script type="text/javascript">
var selected_id = null;
var dom = document.getElementById;
function swapIt(id, newclass) {
if (dom) {
if(selected_id != id) {
el = document.getElementById(id);
el.className = newclass;
el.style.cursor = "hand";
el.style.cursor = "pointer";
}
}
}
</script>
</head>
<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="myCell" class="out" onmouseover="swapIt('myCell','over')" onmouseout="swapIt('myCell','out')">test</td>
</tr>
</table>
</body>
</html>
-------------------------------------------------------------------------
http://www.eksperten.dk/spm/288364