Frage

I have a problem with Cufon, I have a list with a source that I have, but also put the hover quisiea other source, it is possible?

Cufon.replace('header nav#menu ul li', {fontFamily:'Helvetica Neue'});
Cufon('header nav#menu ul li a', {
    hover: {
        fontFamily:'Archer Bold'
    }
});

Example: http://jsfiddle.net/ykbxm/

War es hilfreich?

Lösung

Okey, lets say that there is cufon api: CUFON API

Everything is writen here, but no good examples, so if you want to use cufon hover on some elements, first you have them active. There is some elements whitch is allery activated, but I don't remember which. For example a element:

hoverables: { a: true }

Full example you can find: here

P.S. It's bad decision to call cufon for same element twice: you was calling cufon for li and then for a element.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top