Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default rollover submit buttons

    First, I do not understand why buttons were made with images in Zen Cart if they were not meant to be replaced easily. i also don't know why they were not set up as rollovers. if they are, the idea of replacing them is set up in such a convoluted fashion that it is impossible to accomplish. it might have been easier if there was a style attached to the input...but there is not.

    So... I see the buttons do not roll over in the original, and it is obviously not easy to make them roll over after the fact...

    HOW DO I DO IT??

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: rollover submit buttons

    Seems to me they are easily replaced, since they are all in one folder and named fairly intuitively.

    Searching the Free Software Add Ons for rollover reveals a mod that purports to add rollover images using Javascript. It's pretty old, so I would install it on a test site first.

    The easy way to create a rollover effect with Zencart buttons is to use css instead of images and style the hover part of the rule.

  3. #3
    Join Date
    May 2010
    Posts
    3
    Plugin Contributions
    6

    Default Re: rollover submit buttons

    I have a mod that does exactly that posted to the add-on section. It makes it to where the input buttons change to rollover rounded corner buttons based off of 3 or 4 images.

    This was created when 1.3.9 was released so I haven't gone through it since the additional updates that have occurred. You may want to diff the changes in to make sure.

    Dynamic CSS Input Buttons

    http://www.zen-cart.com/index.php?ma...oducts_id=1681

  4. #4
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: rollover submit buttons

    I ended up doing this by adding a style to the CSS... this way I didn't have to modify the psp:

    input[title=" Add Selected Products to Cart "] {
    background: url('http://www.airscopes.com/Zen/includes/templates/airscopes/buttons/english/button_add_selected.png') no-repeat top left;
    }

    input[title=" Add Selected Products to Cart "]:hover {
    background-position: -160px 0px;
    }

    and then making the image 320 x 33

    I was having trouble with the link without putting in the full path. What is the URL path supposed to be for custom buttons?

  5. #5
    Join Date
    Dec 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: rollover submit buttons

    oh, I left out that I made the gif for that button totally transparent...

  6. #6
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: rollover submit buttons

    Quote Originally Posted by airscopes View Post
    oh, I left out that I made the gif for that button totally transparent...
    Do you have a link to your site so I can see what it looks like? I am trying to do something similar. I have two image versions of each button, one plain the other rollover. But I haven't implemented the rollover yet because I haven't found a clean way to do it.

    Cheers,

    Michelle

  7. #7
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: rollover submit buttons

    Hi,
    I've had Easy Rollovers mod running on every version of zen for many years up to my recent install of 1.3.9h. so far no issues that haven't been addressed.

    Link to the current mod:

    Easy Rollovers 136

    well then...i guess i've learned to live with the form buttons not rolling over.
    Last edited by athena; 21 Feb 2011 at 08:33 PM.

 

 

Similar Threads

  1. Using html submit buttons instead of image buttons
    By Ralf Skirr in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Nov 2009, 12:10 PM
  2. link buttons vs. submit buttons
    By clevername in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 28 Jun 2008, 03:07 PM
  3. Rollover Images Buttons
    By trudesign in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2007, 09:49 PM
  4. Image rollover buttons
    By jazperson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Dec 2006, 06:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg