This commit is contained in:
Ilya Kantor 2014-11-16 01:40:20 +03:00
parent 962caebbb7
commit 87bf53d076
1825 changed files with 94929 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="blue" onmouseenter="log(event)" onmouseleave="log(event)">
<div id="red"></div>
</div>
<textarea id="text"></textarea>
<input type="button" onclick="text.value=''" value="Очистить">
<script src="script.js"></script>
</body>
</html>

View file

@ -0,0 +1,5 @@
function log(event) {
text.value += event.type+' [target: '+event.target.className+']\n';
text.scrollTop = text.scrollHeight;
}

View file

@ -0,0 +1,21 @@
#blue {
background:blue;
width:160px;
height:160px;
position:relative;
}
#red {
background:red;
width:70px;
height:70px;
position:absolute;
left:20px;
top:20px;
}
#text {
display: block;
height:100px;
width:400px;
}