HTML5

TwitterFacebook
Get flash to fully experience Pearltrees

code · Video for Everybody!

http://camendesign.com/code/video_for_everybody Video for Everybody is simply a chunk of HTML code that embeds a video into a website using the HTML5 <video> element, falling back to Flash automatically without the use of JavaScript or browser-sniffing. It therefore works in RSS readers (no JavaScript), on the iPhone / iPad (don’t support Flash) and on many browsers and platforms . Thanks to the rapid adoption of HTML5 video happening right now, Video for Everybody isn’t the only solution around . It is not a neatly packaged, fully-featured solution for those unfamiliar with HTML. VfE is for developers who either want something really simple they can quickly use on their blog or websites, or as a good starting point to develop their own custom solution. It does not use JavaScript.
In the first tutorial I showed how to create a basic data structure for shapes on an HTML5 canvas and how to make them selectable, draggable, and movable. In this second part we’ll be reorganizing the code a little bit and adding selection handles so we can resize our Canvas objects. The finished canvas will look like this: Click to select a box. Click on a selection handle to resize.

Selectable Shapes Part 2: Resizable, Movable Shapes on HTML5 Canvas - simonsarris.com

http://simonsarris.com/blog/225-canvas-selecting-resizing-shape
I’m writing a book on HTML5, including Canvas! Click here for more information. Wait! I’ve given this tutorial a major overhaul and you should really read the new one here instead. http://simonsarris.com/blog/140-canvas-moving-selectable-shapes

Making and Moving Selectable Shapes on an HTML5 Canvas: A Simple Example - simonsarris.com