Hover doeasn't work...
Closed this issue · 3 comments
Hi guys,
I-m working on asp.net MVC3 and I'm using Cufon...
The code is very simple:
<ul id="menu">
<li><a href="#TODO">Home</a></li>
<li><a href="#TODO">About</a></li>
</ul>
I did a css with ul#menu a and ul#menu a:hover changes.
Cufon works fine if I change the css color on the element without hover, but doesn't work on hovering, the script is this:
function initCufon() {
Cufon.replace('ul#menu li a', { hover: true });
}
$(document).ready(function () {
initCufon();
});
Thanks is advance for you help!
I checked that it doesn't work on Firefox 4.0 only.
Hi,
Example please. What you posted should work perfectly (even though it would be better to initialize Cufón outside $(document).ready(), and use Cufon.now()).
Simo
On Aug 1, 2011, at 10:39 PM, Torone wrote:
Hi guys,
I-m working on asp.net MVC3 and I'm using Cufon...
The code is very simple:<ul id="menu"> <li><a href="#TODO">Home</a></li> <li><a href="#TODO">About</a></li> </ul>
I did a css with ul#menu a and ul#menu a:hover changes.
Cufon works fine if I change the css color on the element without hover, but doesn't work on hovering, the script is this:
function initCufon() {
Cufon.replace('ul#menu li a', { hover: true });
}$(document).ready(function () {
initCufon();
});Thanks is advance for you help!
Reply to this email directly or view it on GitHub:
#201
Now it work, Thanks.