Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / New buttons - no hover?

New buttons - no hover?

Locked

Views: 3,035

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
31 Jul 2006, 10:47 PM
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

New buttons - no hover?

When creating new CSS buttons what must one do to ensure the hover works? I have added new ones at http://chicapparel.co.uk/index.php?main_page=products_new (for the "More info") and also at http://fastlec.co.uk/ (the Create Account button in the login sidebox).

Obviously they are being picked up as css buttons, but why no hover effect? What am I doing wrong?

31 Jul 2006, 11:11 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New buttons - no hover?

Tje the Create Account button in the login sidebox on the fastlec site took me to this link that appears correct, si it not?:

https://www.fastlec.co.uk/index.php?main_page=login

The 'more' is linked to

http://chicapparel.co.uk/index.php?main_page=products_new

which is the same page.

I know your expertise, so I must be missing something in your request...

Is the hover effet that you are referring to?

EDITED: Never, ever post the zen_id or zenAdminID (session id) in a forum, email, newsgroup, newsletter, advertisement, etc. etc. etc. or you will be doomed ... :eek:

31 Jul 2006, 11:35 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: New buttons - no hover?

I'm not too worried about the actual links at the moment - I just can't figure out why there's no hover action on those buttons. But it's getting late here after a long day at the keyboard ...maybe I need to sleep on it!

1 Aug 2006, 12:10 AM
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: New buttons - no hover?

Typo in the CSS?

1 Aug 2006, 2:35 PM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: New buttons - no hover?

Nope - nothing whatsoever to do with CSS!!

But I have found the answer - the define statement for the new button in includes/languages/english/YOUR_TEMPLATE/button_names.php can NOT be empty; you simply must have something - even if a non-existent image name or just a space, as the definition.

So this:

define('BUTTON_IMAGE_MORE_INFO', '');

causes the hover to malfunction...

and this

define('BUTTON_IMAGE_MORE_INFO', ' ');

or this

define('BUTTON_IMAGE_MORE_INFO', 'non-existent_image.gif');

allows it to function correctly.

1 Aug 2006, 2:36 PM
#6
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: New buttons - no hover?

Interesting and noteworthy - thanks for the tip Ryk :thumbsup:

3 Aug 2006, 4:23 PM
#7
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: New buttons - no hover?

Hi Ryk,

Thanks for that valuable info. Nice stuff on Chic Apparel. Do you know that your right boxes on Fastlec are out of alignment?

3 Aug 2006, 4:41 PM
#8
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: New buttons - no hover?

ideasgirl:

Hi Ryk,

Thanks for that valuable info. Nice stuff on Chic Apparel. Do you know that your right boxes on Fastlec are out of alignment?

Thank you. Do you mean that the right box headers are right-aligned as opposed to the left box headers which are left-aligned? :wink2: It looks OK to me in both FF & IE.

3 Aug 2006, 5:15 PM
#9
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: New buttons - no hover?

No, I mean that the whole right column it's out of the header; for me on both IE and FF.

Look the attachment.

3 Aug 2006, 8:36 PM
#10
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: New buttons - no hover?

Right - got you now...it's a screen resolution thing that I'd missed as it doesn't appear on my monitor at my regular settings.

Thanks.