Easy Rollovers

for osCommerce Online Merchant v2.2

There seemed to be a need for implementing rollover images for the various buttons in oscommerce. Sometimes buttons consist of straight images with link href tags and sometimes images are form submit buttons. The quickest and easiest solution I saw for this was some javascript which automatically parses the page after its loaded, looking for any image or input tag containing a specific class. In the default example I made this class "rollover". This contribution only consists of one js file which you can just dump into your site wherever you'd like. The only other modification needed unfortunatley was a modification to a core oscommerce file. At least the change is very minor and if you had to update the file as new releases come out you could easily add the change back in.

Files