<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Untitled Document</title></Head><Body> <CanvasID= "MyCanvas"width= "All"Height= "All"style= "border:1px solid blue;"></Canvas> <Scripttype= "Text/javascript"> varCanvas=document.getElementById ("MyCanvas"); varContext=Canvas.getcontext ("2d"); Context.beginpath (); //Great CircleContext.arc ( -, -, -,0, Math.PI*2,true); Context.fillstyle="Yellow"; Context.fill (); Context.stroke (); Context.closepath (); //left EyeContext.beginpath (); Context.arc ( $, -, the,0, Math.PI,true); Context.stroke (); Context.closepath (); //Right EyeContext.beginpath (); Context.arc ( -, -, the,0, Math.PI,true); Context.stroke (); Context.closepath (); //MouthContext.beginpath (); Context.arc ( -,260, -,0, Math.PI,false); Context.fillstyle=" White"; Context.fill (); Context.closepath (); Context.stroke (); //here are the teeth.Context.beginpath (); Context.moveto ( About,260); Context.lineto ( About,296); Context.stroke (); Context.closepath (); Context.beginpath (); Context.moveto ( the,260); Context.lineto ( the,310); Context.stroke (); Context.closepath (); Context.beginpath (); Context.moveto ( -,260); Context.lineto ( -,315); Context.stroke (); Context.closepath (); Context.beginpath (); Context.moveto ( the,260); Context.lineto ( the,312); Context.stroke (); Context.closepath (); Context.beginpath (); Context.moveto (290,260); Context.lineto (290,298); Context.stroke (); Context.closepath (); </Script></Body></HTML>
:
HTML Canvas smiley