Hejsa
Et lille eks.
<html>
<head>
<title></title>
<script language="JavaScript"><!--
var inLayer = false;
function click() {
if (event.button == 1 && !inLayer) {
alert('Du her trykket uden for layeret...')
}
}
function udenfor() {
alert("Du forlader nu layeret");
inLayer = false;
}
document.onmousedown = click
// -->
</script>
<style type="text/css">
#lay { position: absolute; z-index: 1; top: 126px; left: 456px; width: 200px; height: 25px; visibility: visible }
</style>
</head>
<body bgcolor="white">
<div id="lay">
<a href="
www.kandu.dk" onmouseout="udenfor()" onmouseover="inLayer=true">kandu</a>
</div>
</body>
</html>