Pages


this code to make cursor mouse text

<div style="position:absolute;width:100;height:15;color:#800080;font-size:14px;font-family:Arial;font-weight:bold;font-style:normal;text-decoration:underline" id="cursortext">java code</div>
<script type="text/javascript" language="JavaScript">
function cursorInit()
{
document.onmousemove = onMouseMove;
}
function onMouseMove(e)
{
if (!e)
var e = window.event
window.Event;
if ('undefined' != typeof e.pageX)
{
x = e.pageX;
y = e.pageY;
}
else
{
x = e.clientX + document.body.scrollLeft;
y = e.clientY + document.body.scrollTop;
}
x += 13;
y += 7;
document.getElementById('cursortext').style.left = x + "px";
document.getElementById('cursortext').style.top = y + "px";
}
onload = cursorInit;
</script>
 
 
                                

0 comment:

إرسال تعليق

Link With in

Related Posts Plugin for WordPress, Blogger...