Functions / up
up(n)
up( )
up(int n)
up(string 'top')

allows you to raise object up
up( )
return: object
raise object one level up
Code
<script type="text/javascript">
	function start_1(idCanvas)
	{
		jc('#myCircle_1').up();
	}

	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1('canvas_1');
	}
	
	function onload_1(idCanvas)
	{
		jc.start(idCanvas,true);
		var fillStyle = "rgb("+255+", "+0+", "+0+")";
		var radius=100;
		jc.circle(100,120,radius,fillStyle,1).id('myCircle_1');
		fillStyle = "rgb("+0+", "+255+", "+0+")";
		jc.circle(80,80,radius,fillStyle,1);
		fillStyle = "rgb("+0+", "+0+", "+255+")";
		jc.circle(150,40,radius,fillStyle,1);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px"></canvas>
View
up(int n)
return: object
raise object n levels up
Code
<script type="text/javascript">
	function start_2(idCanvas)
	{
		jc('#myCircle_2').up(2);
	}

	function stop_2(idCanvas)
	{
		jc.clear(idCanvas);
		onload_2('canvas_2');
	}
	
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,true);
		var fillStyle = "rgb("+255+", "+0+", "+0+")";
		var radius=100;
		jc.circle(100,120,radius,fillStyle,1)
			.id('myCircle_2');
		fillStyle = "rgb("+0+", "+255+", "+0+")";
		jc.circle(80,80,radius,fillStyle,1);
		fillStyle = "rgb("+0+", "+0+", "+255+")";
		jc.circle(150,40,radius,fillStyle,1);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px"></canvas>
View
up(string 'top')
return: object
raise object to the top of canvas (to the top of layer, if you use it)
Code
<script type="text/javascript">
	function start_3(idCanvas)
	{
		jc('#myCircle_3').up('top');
	}

	function stop_3(idCanvas)
	{
		jc.clear(idCanvas);
		onload_3('canvas_3');
	}
	
	function onload_3(idCanvas)
	{
		jc.start(idCanvas,true);
		var fillStyle = "rgb("+255+", "+0+", "+0+")";
		var radius=100;
		jc.circle(100,120,radius,fillStyle,1)
			.id('myCircle_3');
		fillStyle = "rgb("+0+", "+255+", "+0+")";
		jc.circle(80,80,radius,fillStyle,1);
		fillStyle = "rgb("+0+", "+0+", "+255+")";
		jc.circle(150,40,radius,fillStyle,1);
	}
</script>
<canvas id="canvas_3" width="250px" height="265px"></canvas>
View