Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Click Here To Login
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel

Ecommerce Templates on Google Plus


 All Forums
 Technical
 ASP (Windows server) versions
 use rollover action on buttons (images)?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/25/2012 :  16:15  Show Profile
Hello,

We have all of the links such as "more details", "add to cart", etc, replaced with buttons. Since each of these images are defined as an includes parameter, rather than a CSS class, how can I use a CSS "on hover" property to display a slightly lighter or darker button image when the user hovers over it? Or is there a different method I should use? I have created "3D" buttons, but they look static when you hover and they don't do anything.

Thanks!

P.S. has anyone done anything similar and have any feedback as to whether they think lighter or darker is a better "on hover" effect? Our page background is white. Thanks

Edited by - RCpilot on 05/25/2012 16:17

Sinbad
Administrator

USA
53560 Posts

Posted - 05/25/2012 :  16:57  Show Profile
Hi I've haven't tried it but you might be able to do something like:

a.hover {
color:#333;
text-decoration: none;
font-family: Verdana, Arial, sans-serif;
background-attachment: scroll;
background-image: url(../topnavbk.png);
background-repeat: no-repeat;
}

Winners never quit, quitters never win
User Manual for Ecommerce Templates
Go to Top of Page

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/25/2012 :  21:54  Show Profile
Hi Marlene,

Thanks for the info, but I'm not sure what you mean to do with it. Wouldn't a.hover affect any hyperlink that is hovered? Are there separate classes for all of the buttons? I would assume this is the case, as one might want to format each link (whether text or image) to a different size, etc.

I am on board with you as far as the hover effect being correct, but I am not sure how to work it into the existing parameters/buttons.

Thanks,
Alex
Go to Top of Page

Sinbad
Administrator

USA
53560 Posts

Posted - 05/26/2012 :  09:07  Show Profile
Hi which buttons are you looking to change, all store generated buttons?

Winners never quit, quitters never win
User Manual for Ecommerce Templates
Go to Top of Page

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/26/2012 :  14:30  Show Profile
Hi Marlene,

Yes, I previously created 3D shaded buttons for "add to cart", "details", "continue shopping", etc. etc. etc.

I would like to create a 2nd version of each with a different color or shading, and have each button display the alternate version when hovered.

I think if the buttons were defined by CSS rather than image files, you would just change the background image, text color, etc. with CSS hover effects. But I am not sure in this case since the button is already defined as an image actual (?).

Thanks!

Edited by - RCpilot on 05/26/2012 14:31
Go to Top of Page

threecrow
Ecommerce Template Expert

USA
734 Posts

Posted - 05/26/2012 :  14:59  Show Profile
Try the below link

http://kyleschaeffer.com/best-practices/pure-css-image-hover/

John

Don't make excuses. It's what you do, not why you didn't.
Go to Top of Page

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/28/2012 :  19:39  Show Profile
John,

Thanks - that is the CSS portion.

What I need to know is the CSS class for each of the buttons. I guess what I was asking is: does ECT have a list of the button CSS classes? If not, I suppose I'll go read through each of the applicable pages and figure out what they are. A list of the applicable classes would be a big time-saver though!

Thanks!
Go to Top of Page

insight
ECT Moderator

USA
2983 Posts

Posted - 05/28/2012 :  20:35  Show Profile  Click to see insight's MSN Messenger address
Unfortunately, a majority of the 38 store generated buttons don't have any CSS classes applied to them so I don't think you'll get far with this

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
http://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/cart?gid=7
Go to Top of Page

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/28/2012 :  20:59  Show Profile
Thanks for the info Peter. That's the primary reason I'm here asking ECT for further guidance. I figured if the buttons were CSS, they wouldn't need to be defined in the includes file.

Vince what is the best way to apply CSS hover effects to the buttons? We are using the new "css" version recently purchased.

Is there some way to apply the CSS (like Marlene's suggestion above) to the buttons via the includes file? I must be missing the obvious.

Thanks!

Alex

Edited by - RCpilot on 05/28/2012 21:03
Go to Top of Page

Andy
Administrator

69006 Posts

Posted - 05/29/2012 :  03:11  Show Profile
The buttons don't have css classes associated with them as Peter says so they can't be styled on an individual basis.

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

RCpilot
Ecommerce Template Guru

USA
1041 Posts

Posted - 05/29/2012 :  16:10  Show Profile
Oh,

I thought the cart buttons would use CSS as part of the "CSS-based template." Would it be too much to ask for some CSS classes in the next round of updates?

Couldn't they be added to the relevant buttons on the cart pages, but not actually added to the style sheet, and thus the new classes would not cause any new affects until each user included the relevant classes in the style sheet?

Thanks!
Go to Top of Page

Andy
Administrator

69006 Posts

Posted - 05/30/2012 :  03:15  Show Profile
Please do add it to the suggestions forum and we can pick it up from there. It's not possible to just add css classes for buttons to the css version as they would need defining in the code, not the design.

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

Andy
Administrator

69006 Posts

Posted - 05/30/2012 :  04:20  Show Profile
By the way, the add to cart button does already have its own class so that can be styled instead of using a button - like we do here http://www.ecommercetemplates.com/css-templates.asp

Here's a tutorial I saw today with some nice shiny button examples http://www.paulund.co.uk/how-to-create-shiny-css-buttons

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2013 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000