Cufon NotReplace Function #230

Open
tombultaho opened this Issue Jan 27, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Hi
I have a title that i use cufon. but i dont wanna replace for IE7. What can i do?
i coded this:

this code is runing for IE 8 and IE 9 but not Chrome and Mozilla.

I coded "Cufon.replace('.test');" in my javascript file. it's running in Chrome, Mozilla and also IE 7. But I dont want that it's replace in IE 7.

How can i do that?

You could do something like that (in your HTML header):

<!--[if !IE 7]>
  <script>
    Cufon.replace('.test');
  </script>
<![endif]-->

For more information about conditional comments have a look at:
http://msdn.microsoft.com/en-us/library/ie/ms537512(v=vs.85).aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment