Latest Challenges
Comment
The best solution I can quickly think of... would be to leverage a jquery library, to minimize the amount of actual work you will need to do.
First thing I did was went to http://plugins.jquery.com and did a search on "gradient". This returned a bunch of results... one of which was http://plugins.jquery.com/project/jqcanvas, which seems to be cross browser compatible and was actually the one we used in our session for this very example.
Just include your scripts and then call the functions on the appropriate elements.
I hope this helps,
J