where buttonid in "images/buttonid.gif" is the id attribute of the button element which is also the name of background image file for the respective button.
I am trying to define background image dynamically (assume adding a value of a variable) so that all the buttons in class ".buttons" have the respective background image.