<!DOCTYPE html> <html> <body> Select color: <input id="colorpick" type="color" name="favcolor" onchange="JavaScript:colorchanged()"><br> <script type="text/javascript"> function colorchanged() { console.log("colorchanged()"); var colorval = document.getElementById("colorpick").value; console.log(colorval); document.body.style.background = colorval; } </script> </body> </html>
Friday, March 21, 2014
Set color using HTML5 color type input
Example to using HTML5 color type input, read with Javascript to change background color of page.
Friday, March 14, 2014
O'Reilly Webcast: Getting Started with HTML5 Canvas
This video introduce the basics of working with HTML5 canvas: how to create canvas draw lines, shapes and as time permits other canvas capabilities. This webcast talk is designed for people without a background with HTML 5 canvas.
Subscribe to:
Posts (Atom)