blob: 829b45e56ca548404f67e08c9edcb64388e4190b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<html>
<head>
<title>GREAT GRIDS GALLERY</title>
<style type="text/css"></style>
</head>
<body>
<canvas id="example" width="200" height="200">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
<div id='error'> booji boy</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var example = document.getElementById('example');
var context = example.getContext('2d');
context.fillStyle = "rgb(255,0,0)";
context.fillRect(30, 30, 50, 50);
$('canvas').hover(function()
{
var wonka = $(this).attr('id')
$('#error').html(wonka)
});
</script>
</body>
</html>
|