Cufon Javascript Error - "Attribute only valid on v:image"

Categories:

After having used Flash based text for the web for a couple of years, I stumbled upon a great script which makes implementing raster, rich typography on the web painless and very customizable. The script Cufón is one of my new favourites, and seems to be a healthy alternative to Flash text that works well in every modern day browser - even Internet Explorer 6 (IE6).

We're currently working on a site who's audience will mostly consist of IE6 users. Midway throughout our build process I noticed the javascript error "Attribute only valid on v:image" occurring only in IE6. After much googling, I found no replies to others whom have had this problem...

In our case, the error had been due to the PNG fix that was implemented for IE6 only. We have been using Unit PNG Fix, as well as Cufón on the same page - and the inclusion of both had caused some errors.

The Fix

Option 1:Change the order in which Cufón and Unit PNG Fix scripts are included. Call Cufón BEFORE Unit PNG fix.

Damian Caynes Says:
May 14, 2010 at 3:05 AM
Thankyou! I noticed cufon was bugging on a site I was working on, found no solutions and spent all day working out other font replacement techniques, none of which were as good as cufon.

Then I did one last google and found your post, and unitpngfix had been included in the template.

If only I'd found your post at the start of the day, but still, good outcome :)

Cheers!

Raj Says:
May 14, 2010 at 3:58 AM
Thank you so much for this post! Just ran into the exact same problem on a website that I am currently developing. Calling the PNG fix last seems to fix the issue.