| author | Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> |
| Thu, 08 Sep 2011 21:24:21 +0200 | |
| changeset 271 | 4e4e2fda4e66 |
| parent 133 | 9578d3ddce17 |
| permissions | -rwxr-xr-x |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
3 |
<head> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
4 |
<title>Example raphael</title> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
6 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
7 |
</head> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
8 |
<body> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
9 |
test |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
10 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
11 |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
12 |
<script type="text/javascript" src="raphael-min.js"></script> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
13 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
14 |
<script type="text/javascript"> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
15 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
16 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
17 |
// Creates canvas 320 � 200 at 10, 50 |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
18 |
var paper = Raphael(10, 50, 500, 200); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
19 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
20 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
21 |
p = paper.rect(50, 50 , 50, 50 ).attr({stroke:"#fff","stroke-width":0.3, fill: "hsb(0.50, 1, 1)",}); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
22 |
p.mouseover(function () { |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
23 |
this.animate({height:Math.floor(Math.random()*50) }, 400, "bounce"); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
24 |
}).mouseout(function () { |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
25 |
this.animate({width:Math.floor(Math.random()*50) }, 400, "bounce"); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
26 |
}) |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
27 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
28 |
q = paper.rect(50, 50 , 50, 50 ).attr({stroke:"#fff","stroke-width":0.3, fill: "hsb(0.90, 1, 1)",}); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
29 |
q.mouseover(function () { |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
30 |
this.animate({height:Math.floor(Math.random()*50) }, 400, "bounce"); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
31 |
}).mouseout(function () { |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
32 |
this.animate({width:Math.floor(Math.random()*50) }, 400, "bounce"); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
33 |
}) |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
34 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
35 |
</script> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
36 |
test |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
37 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
38 |
</body> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
99
diff
changeset
|
39 |
</html> |