<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ShowDiv()
{
var div=document.getElementById('d')
if(!div)
{
div=document.createElement("DIV")
document.body.appendChild(div)
div.id='d'
div.style.position="absolute"
div.style.width="45px"
div.style.height="5px"
div.style.display='block'
div.innerHTML="<span style='color:red'>test!just a test!<\/span>"
document.body.appendChild(div)
}
div.style.display=''
div.style.pixelTop=window.event.y
div.style.pixelLeft=window.event.x
//俺都设了n次block和visible了,就是死活不出来
//俺alert(div)得到的也是object
}
function HideDiv()
{
var div=document.getElementById('d')
if(div)
{
div.style.display='none'
}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<img src='http://zi.csdn.net/qihoo_300_60.gif' onmousemove="ShowDiv();" onmouseout="HideDiv()"></img>
</BODY>
</HTML>