Sunday, 4 March 2012

Mouse controlling your web text

<html>
<head>
<script type="text/javascript">
var i=1;
function textleft()
{
document.getElementById('header').style.position="relative";
document.getElementById('header').style.left=i;
i++;
}
</script>
</head>
<body onmousemove="textleft()">
<h1 id="header">
Move the mouse over this page
</h1>
</body>
</html>

No comments:

Post a Comment