Here you go. This shows a div and writes content to it. I'm sure you can make it fit your needs. vwphillips helped me with this just last week.
HTML Code:
<html>
<head>
<script language="JavaScript">
<!--
var myTimer;
var x;
var y;
function get_xy(event){
x = event.clientX;
y = event.clientY;
}
function viewMe(id){
var myId=document.getElementById(id);
hide(id);
//capture the mouse
myId.style.position = "absolute";
myId.style.top = y + 10 +"px";
myId.style.left = x + 10 +"px";
show(id);
myId.innerHTML="Write me in that div";
}
function show(id){
document.getElementById(id).style.display="block";
}
function hide(id){
document.getElementById(id).style.display="none";
}
</script>
</head>
<body>
<a href="javascript:void(0);"
onmouseover="get_xy(event);myTimer=setTimeout("viewMe('myDiv')",1000);"
onmouseout="clearTimeout(myTimer);hide('myDiv')">test</a>
<div id="myDiv" style="border:1px solid black;display:none;"></div>
</body>
</html>
Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.
Bookmarks