If you uploaded an actual HTML file with that code in it so we could look at it and also see the graphics, it'd be much more helpful.