-1 |
|
je kunt proberen met een div die je plaatst waar je muis staat.
<html>
<head>
<style type="text/css">
<!--
.divOver {
position: absolute;
display: none;
}
//-->
</style>
<script language="javascript">
<!--
if (navigator.appName == "Netscape") {
document.captureEvents(Event.CLICK);
}
function showDiv() {
if (navigator.appName == "Microsoft Internet Explorer"){
mX = event.clientX;
mY = event.clientY;
}
else {
mX = e.pageX;
mY = e.pageY;
}
document.getElementById('overDiv').style.left = mX;
document.getElementById('overDiv').style.top = mY;
document.getElementById('overDiv').style.display = "block";
}
function hideDiv() {
document.getElementById('overDiv').style.display = "none";
}
//-->
</script>
</head>
<body>
<a href="javascript:;" onmouseover="showDiv();" onmouseout="hideDiv();"> Test </a>
<div class="overDiv" id="overDiv"></div>
</body>
</html>
<html> <head> <style type="text/css"> <!-- .divOver { position: absolute; display: none; } //--> </style> <script language="javascript"> <!-- if (navigator.appName == "Netscape") { document.captureEvents(Event.CLICK); } function showDiv() { if (navigator.appName == "Microsoft Internet Explorer"){ mX = event.clientX; mY = event.clientY; } else { mX = e.pageX; mY = e.pageY; } document.getElementById('overDiv').style.left = mX; document.getElementById('overDiv').style.top = mY; document.getElementById('overDiv').style.display = "block"; } function hideDiv() { document.getElementById('overDiv').style.display = "none"; } //--> </script> </head> <body> <a href="javascript:;" onmouseover="showDiv();" onmouseout="hideDiv();"> Test </a> <div class="overDiv" id="overDiv"></div> </body> </html>
niet getest, heb rap uit m'n kop geschreven |