web/res/metadataplayer/test/mouse_interaction_overlay.html
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Sat, 07 Jan 2012 16:15:16 +0100
changeset 468 e7f9898e6f99
parent 133 9578d3ddce17
permissions -rwxr-xr-x
Added tag V01.20 for changeset e2324dd2f7c9

<!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>