metanohi-misc-subsites/old-projects/x/superdraw.htm

59 lines
1.1 KiB
HTML
Raw Normal View History

2011-08-02 19:57:57 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml">
<head>
<title>SuperDraw</title>
<style type='text/css'>
* {
margin:0;
padding:0;
text-decoration:none;
font-weight:normal;
color:#000;
font:16px arial;
}
body {
font:16px arial;
background-color:#fff;
overflow:hidden;
}
div {
position:absolute;
width:1px;
height:1px;
background-color:#000;
}
#evr {
width:100%;
height:100%;
background-color:#fff;
}
</style>
<script type='text/javascript'>
function drawdot(x,y) {
ne=document.createElement("div")
ne.setAttribute("style","top:"+y+"px;left:"+x+"px")
evr=document.getElementById("evr")
evr.appendChild(ne)
}
ft=1
function mc(event) {
x=event.pageX
y=event.pageY
drawdot(x,y)
document.title=document.title*1+1
//t=setTimeout("mc(event)",100)
}
document.onmousemove=mc
window.onload=function(){document.title="0"}
//window.onload=mc
</script>
</head>
<body>
<div id='evr'></div>
</body>
</html>