PHP Code:
<html>
<head>
<script>
var Cur='pointer';
if (document.all){ Cur='hand'; }
function Link(url){
window.top.location=url;
}
function MseOver(t){
t.style.cursor=Cur;
// extras to change the bg color
t.bgcol=t.style.backgroundColor;
t.style.backgroundColor='yellow';
t.onmouseout=function(){ t.style.backgroundColor=t.bgcol; }
}
</script>
</head>
<body>
<div style="width:100px;height:100px;background-Color:red;"
onmouseover="javascript:this.style.cursor=Cur;"
onclick="javascript:window.top.location=url;"
>
<br>
or
<br>
<div style="width:100px;height:100px;background-Color:red;"
onmouseover="javascript:MseOver(this);"
onclick="javascript:Link('http://www.vicsjavascripts.org.uk');"
>
</div>
</body>
</html>
Hope this is better
I now have a better idea what you want.
more you explain the more we can help
ps added extras to change the background color(pity to wast the function), hope this does not confuse
Bookmarks