Functions / attr
attr(parameter, value)
attr(string parameter)
attr(string parameter, any type value)

attr(string parameter)
return: value of parameter
Code
<script type="text/javascript">
	function start_1(idCanvas)
	{
		alert(jc('#myCircle_1')
					.attr('fill'));
	}
	function stop_1(idCanvas)
	{
		alert(jc('#myCircle_1')
					.attr('color'));
	}
	function onload_1(idCanvas)
	{
		jc.start(idCanvas);
		jc.circle(45,60,40,'#00FFFF',1)
			.id('myCircle_1');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
attr(string parameter, any type value)
return: object
Code
<script type="text/javascript">
	function start_2(idCanvas)
	{
		jc('#myCircle_2')
			.attr('fill',0);
	}
	function stop_2(idCanvas)
	{
		jc('#myCircle_2')
			.attr('fill',1);
	}
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,20);
		jc.circle(45,60,40,'#00FFFF',1)
			.id('myCircle_2');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View