Community Add-Ons

Add file to this package
Top » Features

Easy Rollovers
for osCommerce Online Merchant v2.2

Download
by Tim Walling / 2 May 2004

(show 1 more downloads)

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.

Legend:  Download   Report

Expand All / Collapse All

Easy Rollovers 1.01 Tim Walling 2 May 2004  

Made a fix to the html_output.php file. I was handling cases where parameters are being passed to the functions so sometimes class="rollovers" wasn't being written to the image or input.

Easy Rollovers Tim Walling 2 May 2004