html5

What's the speed difference between drawing with html5 canvas and html and javascript?

I'm interested in making a game using html and javascript. I was wondering if it really is that much faster drawing in html5 and javascript than it is with images and div's in html and javascript. Example of a game using html and javascript that works nicely: http://scrabb.ly/ Example of a game using html5 and javascript that works ni...

Can I preload multiple video resources to load in the same HTML5 <video> element?

I'm working out details on a web application which involves the sequential loading of a long series of (very short) video clips, one after the other, with occasional input from the user establishing new directions for which video clips to load. I would like to be able to have the browser preload the video clips five at a time. However,...

Graphically speaking, Isn't what really makes a game "rich," the artwork?

I've been thinking about flash and html5 and though each of them can draw circles, rectangles, curves, and do things with images, doesn't it really come down to the artwork? Game play aside (I know ugly games can be fun), all the talk about which looks best canvas or flash or something else, kind of moot? Don't the great games, graphic...

Is there any way to prevent people from making my web game available offline?

It's not the type of game that really need a server to operate. I'm using javascript and html5 right now, and I cant think of a way to prevent the game from being rip off. Using obsfucator is useless, the game would still work offline. Implementing a validation scheme is not invincible either. Someone smart can just crack the script an...

canvas animation of text

I have a canvas with two lines of text on it. I want to animate these 2 lines differently. How to do this? How can i only animated one line of text without clearing the whole screen? ...

Usage of <address> tag in HTML: copyright or webmaster?

Hello. On the footer of my client’s website I have his address and copyright notice, and under there is the address of the webmaster. With both I will use the hCard microformat. With which of them I should use the <address> tag? Thanks. ...

How to prevent text select outside HTML5 canvas on double-click?

(In every browser I've tried) double-clicking on an HTML5 canvas selects any text immediately following the canvas element. I'd prefer to keep the clicks confined to the canvas. (N.b.: I don't want to disable text selection entirely (e.g. like this): if you double-click the text it should be selected. I just don't want the clicks to "...

HTML5 save canvas to file on server

hi, i need to create a component using html5 canvas that given an image the user can paint on it and directly (via a kind of save button) upload it's customized version on the server. Can i use html canvas for it ? Any suggestion ? thx in advance ...

html5 <canvas> framerate

I was thinking of making a game using javascript for the game logic and the HTML5 canvas element to animate the drawing. My goal is to write something that works in browsers and on newer smartphones. So I wrote up a quick program that moves 100 circles around on the screen and shows me the frame rate. I was fairly disappointed with the r...

web workers: how to know if the browser supports it ?

What's the best way to know if the running browser supports web-workers ? is it try { new Worker(); } catch (e) { /* it does not */ } Thanks ...

What is Html5 Microdata?

I search many article on Html5 microdata but i ant got a clear view on that.Can somebody provide me a good article on that ?? ...

Does Google index HTML content supplied by the Object tag

This might be a weird question, but I've been unable to find an answer. Assuming I were to use an Object tag to embed an HTML snippet from an outside source (different server), how does Googles spider view that data? Does it pull in the data source like a browser would or does it only view the alternate content found between the Object t...

Geolocation not workin on Safari 5.x on Windows 7/XP

Hi, I am working on an app that uses the W3C standard geolocation API but I cannot for the life of me get it to work on Safari on my Windows 7 and XP PC. It works fine on my iPad and my iPhone. It also works perfect on Chrome (5, 6, 7 and the Canary build) and on Firefox (3.6). I don't have a Mac so I can't test it on that. IE doesn...

How can I capture an HTML document fragment as an alpha-transparent PNG?

I'm looking for a way of capturing a section of a web page as a transparent-backgrounded PNG. This would mean that the transparent background property would be truly transparent. A root level element, instead of displaying white, would create a png with a transparent background. However, I suspect the behavior I'm looking for just isn't...

Offline HTML5 .html pages - need to include file into another file

We have an offline set of HTML pages we're working with using HTML5 document type. We want to include our sub-navigation via a <script src="____"> but for some reason it's not including. Is there some other method of including the file without needing server-side assistance somewhere? Because of how we're delivering these files to the c...

How can I get pixel data of every frame in a HTML5 <video> element

I'm thinking I'll have to wait for the video to finish loading, then set up an interval (at 1/24 sec.) to get the current frame data, for the duration of the video. But that seems pretty hacky and looks like it might skip frames and such… So, is there a "onFrameChange" listener I can hook on to, so I can get every frame, or any other w...

Good looking html5 template

Where's a good looking html5 template, with big bold letters, and css for error messages and the like? ...

HTML 5 release date

When can we expect to see HTML 5 support for all the major browsers? ...

HTML5 video codec support

What codecs will be supported with the HTML5 video taq? Will it vary by browser, or is there a spec of specific codec that will be supported? ...

Canvas FPS artificially limited to 100fps?

In this page that counts the number of frames rendered and prints the FPS onto the canvas, we can see that it tops out at 100fps, which seems suspicious at the least. Why is this? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Canvas FPS artificial limiting</title> </head> <body> <canvas id="c" width="320...