In my SVG tarot deck, I could not
decide between drawing the pips cards plain or with pictures
on, so I added a button to toggle the picture on and off.
People using Adobe’s SVG plug-in version 2 have reported
problems with the Javascript—something about its not
understanding getElementById. I did not want
to start getting in to an endless struggle to remain compatible
with what is after all an obsolete browser (version 3 is
available gratis from Adobe); I have enough compatibility
nightmares with HTML on Netscape Navigator 4. But it
occurred to me to try to instead use SVG’s built-in
animation features, so that I was not using Javascript at
all. I hope that I can thereby avoid causing trouble
on older SVG viewers, since they presumably will simply ignore
the animation elements.
More on
SVG’s intrinsic animations (XML.com).