Darth Wong wrote:PS. About the HTML, those lower-case tags and seemingly superfluous slashes in the input and img tags are actually required for XHTML Strict validation.
The problem with that is that your doctype is HTML4, specifically:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
not say
Code: Select all
<?xml version="1.0" encoding="ISO 8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
which all our pages are. As such I wouldn't expect your (original) document to pass XHTML strict anyway.
That said you seem to have changed the link to an XHTML one since I first downloaded it, and the new page is not working in IE either, probably because you are not declaring your vars as globals.
I would suggest preloading the dice images as well, either in Javascript or via hidden <img> elements, as it would avoid the dice row briefly disappearing in Firefox when you first roll the dice.