Functions / mouseover
mouseover(fn)
mouseover(function fn)
mouseover( )

Its one of the functions that works with events. For correct work of such functions it is necessary to specify at canvas initialization frames per second - fps: jc.start (idCanvas, fps).
mouseover(function fn)
return: object
The mouseover event is sent to an jCanvaScript object when the mouse pointer enters the object.
Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		var text=jc.text("",10,10);
		jc.circle(100,120,50,'#ff0000',1)
			.mouseover(function(point){
				this.color('#ffff00');
				text.string('x='+point.x+', y='+point.y);
			});
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
mouseover( )
return: object
Code
<script type="text/javascript">	
	function start_2(idCanvas)
	{
		jc('#myCircle_2').mouseover();
	}
	function stop_2(idCanvas)
	{
		jc('#myCircle_2')
			.color('#ff0000');
	}
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_2')
			.mouseover(function(){
				var r = Math.floor(Math.random() * (254));
				var g = Math.floor(Math.random() * (254));
				var b = Math.floor(Math.random() * (254));
				this.color('rgb('+r+','+g+','+b+')');
			});
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View