<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example raphael</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
test
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type="text/javascript" src="raphael-min.js"></script>
<script type="text/javascript">
// Creates canvas 320 � 200 at 10, 50
var paper = Raphael(10, 50, 500, 200);
p = paper.rect(50, 50 , 50, 50 ).attr({stroke:"#fff","stroke-width":0.3, fill: "hsb(0.50, 1, 1)",});
p.mouseover(function () {
this.animate({height:Math.floor(Math.random()*50) }, 400, "bounce");
}).mouseout(function () {
this.animate({width:Math.floor(Math.random()*50) }, 400, "bounce");
})
q = paper.rect(50, 50 , 50, 50 ).attr({stroke:"#fff","stroke-width":0.3, fill: "hsb(0.90, 1, 1)",});
q.mouseover(function () {
this.animate({height:Math.floor(Math.random()*50) }, 400, "bounce");
}).mouseout(function () {
this.animate({width:Math.floor(Math.random()*50) }, 400, "bounce");
})
</script>
test
</body>
</html>