PhotoDune

Disable Cufon in IE.

149 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • Spain
IulianN says
fillerspace said
<![if !(IE 8)]>
<script type="text/javascript"> Cufon.replace('.title', { hover: true });</script>
<![endif]>
This should display in every browser (e.g. Chrome, FF, Opera, Safari, IE6 ,7,9) except IE8

Your solution is good for what I need, the cufon is displayed in all browsers, except for IE8 .
Sorry, I went to sleep at 5 a.m., so I forget to delete the original fuction, and paste only the conditional comm for IE, that was the problem.

Thank you @fillerspace , for your help / time.

@sy4mil Thanks, I created the same thing, but something didn’t work.
@christopherjon, I will do it for my next themes, thanks.

Thanks all.

708 posts
  • Belgium
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 and 1 000 dollars
Yaeko says
fillerspace said
Here is another way to do it:
<!--[if lt IE 7 ]><html class="ie6 ie"><![endif]-->
<!--[if IE 7 ]><html class="ie7 ie"><![endif]-->
<!--[if IE 8 ]><html class="ie8 ie"><![endif]-->
<!--[if IE 9 ]><html class="ie9 ie"><![endif]-->
<![if (gt IE 9)|!(IE)]><html><![endif]>

<!-- include jquery here for advanced selectors in cufon -->
<script src="jquery.js"></script>

<script>Cufon.replace('.ie6 .title,.ie7 .title,.ie9 .title', { hover: true });</script>
</html>

A bit out of context for this topic, but replying on Fillerspace comment, I think it’s best to use a CSS browser selector script to do such a thing: CSS Browser selector

This script detects the browsers and automatically adds a css class to the html tag avoiding to have all those if statements.

Cheers!

by
by
by
by
by