1 / 8

@ 翁玉礼

HTML5 Discuss. @ 翁玉礼. Compare to html4. Canvas Video and audio Local offline store New form control . Canvas. <canvas id=" myCanvas "></canvas> < script type="text/ javascript "> var canvas= document.getElementById (' myCanvas '); var ctx = canvas.getContext ('2d'); //get context

tave
Download Presentation

@ 翁玉礼

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML5 Discuss @翁玉礼

  2. Compare to html4 • Canvas • Video and audio • Local offline store • New form control

  3. Canvas <canvas id="myCanvas"></canvas> <script type="text/javascript"> varcanvas=document.getElementById('myCanvas'); varctx=canvas.getContext('2d'); //get context ctx.fillStyle='#FF0000'; //draw color ctx.fillRect(0,0,80,100); //fill in </script>

  4. Video(new) <video src="movie.ogg" controls="controls"> Tips:Your browser not support video markup </video>

  5. Video(old) <object id=video width=300 height=330 classid=“clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <paramname=urlvalue=“abcd.wmv"> <paramname=autostart value="1"></object> OR <embed src=“abcd.wmv" type=audio/x-pn-realaudio-plugin height=124 width=180 autostart=true loop=true>

  6. offline storage • localStorage • //no time limit localStorage.lastname=“leon"; document.write(localStorage.lastname); • sessionStorage • //for one session • sessionStorage.lastname=“leon"; document.write(sessionStorage.lastname);

  7. New form control Email、url、number、range、date pickers、search、color…

  8. Do you start to write with html5? Thanks!

More Related