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.
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!
