715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Hi

I’m having for the first time a problem with Cufon. SO normally to make a hover possible with Cufon we need to add this code:

Cufon.replace('element', {hover: true});

Right?

Well this time it won’t work :(, here’s the demo: Demo

I’ve also got a little jQuery script that will remove the class ‘active’ when clicked and add that class to the clicked anchor, this one doesn’t work either, I think it’s because the Cufon isn’t working like it should ? Anyone got an idea?

688 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Uruguay
_rg_ says

It´s true hover is not working, for me never works…. what i found was to add this to the functions:

window.setInterval( function() {Cufon.refresh(replaces_hover);}, 100 );

Where replaces_hover are the elements that uses cufon and needs a hover state.

So, using Cufon.refresh does the trick.

What i can´t understand is why is not working, even if i put the refresh into a hover function, just to call it once and not from an interval, it doesn´t work too.

If anybody has another idea, will be great.

86 posts
  • Author had a Free File of the Month
  • Belgium
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
BrentChesny says
Hi

I’m having for the first time a problem with Cufon. SO normally to make a hover possible with Cufon we need to add this code:

Cufon.replace('element', {hover: true});

Right?

Well this time it won’t work :(, here’s the demo: Demo

I’ve also got a little jQuery script that will remove the class ‘active’ when clicked and add that class to the clicked anchor, this one doesn’t work either, I think it’s because the Cufon isn’t working like it should ? Anyone got an idea?
It is: Cufon.replace('element', {hover: 'true'});

With quotations marks around true. :)

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says
Hi

I’m having for the first time a problem with Cufon. SO normally to make a hover possible with Cufon we need to add this code:

Cufon.replace('element', {hover: true});

Right?

Well this time it won’t work :(, here’s the demo: Demo

I’ve also got a little jQuery script that will remove the class ‘active’ when clicked and add that class to the clicked anchor, this one doesn’t work either, I think it’s because the Cufon isn’t working like it should ? Anyone got an idea?
It is: Cufon.replace('element', {hover: 'true'}); With quotations marks around true. :)

Hi!

Well it’s not working either :(

688 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Uruguay
_rg_ says

BCProducties : does that work for you? for me doesn´t either.

86 posts
  • Author had a Free File of the Month
  • Belgium
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
BrentChesny says
Hi

I’m having for the first time a problem with Cufon. SO normally to make a hover possible with Cufon we need to add this code:

Cufon.replace('element', {hover: true});

Right?

Well this time it won’t work :(, here’s the demo: Demo

I’ve also got a little jQuery script that will remove the class ‘active’ when clicked and add that class to the clicked anchor, this one doesn’t work either, I think it’s because the Cufon isn’t working like it should ? Anyone got an idea?

It should… It works for me: http://bcproducties.com/installing/

It is: Cufon.replace('element', {hover: 'true'}); With quotations marks around true. :)

Hi!

Well it’s not working either :(

Works for me: http://bcproducties.com/installing/

688 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Uruguay
_rg_ says

may be a jquery version incompatibility. I will try with jq 1.4…..

thanks for share it.

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Ok, now I don’t get it :( on this template (also made by me) it works.

template

Can it be a jQuery version issue? I’m using v 1.4.1

86 posts
  • Author had a Free File of the Month
  • Belgium
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
BrentChesny says
Ok, now I don’t get it :( on this template (also made by me) it works.

template

Can it be a jQuery version issue? I’m using v 1.4.1

Don’t think so, I just changed to 1.4.2 on my theme and it still works.

Edit: oh, you seem to be applying the cufon to the .nav element. Try changing that to .nav li a

715 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Belgium
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
Yaeko says

Ok, I found the main issue, I had my listing in a div.

I removed the div and added the class nav to the ul listing and the hover is now working … kinda … you can see that the underline changes color but not the text.

by
by
by
by
by
by