Hi Joey,
This is an excerpt from the Usage page in the wiki:
"In order to avoid unnecessary duplication cufón does not come bundled
with a selector engine, which means that by default you’ll only be
able to use tag names (such as h1) as selectors. However, cufón
detects quite a few popular JavaScript frameworks (such as jQuery,
MooTools, Dojo and Prototype) automatically, so if you’re using one
you’ll only need to include it before cufón and things like
Cufon.replace('#content > h1:first-child') and Cufon.replace('#nav a')
will work just fine."
Safari and Firefox 3.1 (not 3.0) support document.querySelectorAll()
which is why using a class name worked in Chrome (like Safari, it's a
WebKit-based browser). Other browsers only have
document.getElementsByTagName().
If you do not plan on using a JavaScript framework with selector
support, you can give the element an ID and use the following code:
Cufon.DOM.ready(function() {
Cufon.replace(document.getElementById('nav').getElementsByTagName('a'));
});
Also, ".rightnav" sounds like a bit too much to replace (you might run
into spacing issues) - perhaps you should try something like
".rightnav a" instead? You should also avoid using "cufon" as a class
name because it's used internally by cufón :)
Simo