зеркало из https://github.com/mozilla/pjs.git
47 строки
750 B
HTML
47 строки
750 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<style type="text/css">
|
|
|
|
p {
|
|
height: 50px;
|
|
width: 300px;
|
|
border: 3px solid green;
|
|
background: yellow;
|
|
color: black;
|
|
margin: 0;
|
|
}
|
|
|
|
.one {
|
|
}
|
|
|
|
.two {
|
|
margin-left: 30px;
|
|
margin-top: -56px;
|
|
}
|
|
|
|
.three {
|
|
margin-left: 60px;
|
|
margin-top: -56px;
|
|
}
|
|
|
|
|
|
</style>
|
|
<script type="text/javascript">
|
|
|
|
function dealwith(str) {
|
|
alert("You clicked on paragraph " + str + ".");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<p class="one" onclick="dealwith('one')">Paragraph one</p>
|
|
<p class="two" onclick="dealwith('two')">Paragraph two</p>
|
|
<p class="three" onclick="dealwith('three')">Paragraph three</p>
|
|
|
|
|
|
</body>
|
|
</html>
|