javascript - How to disable Cufon on certain elements? -
i use cufon accross our site similar cufon.set('fontfamily', 'din medium').replace('h1');
single h1 tag cufon disabled, without changing h1 tag other tag, must remain is.
i can add classes etc h1 tag if required, , can html/css/js not changing actual tag.
anyone know if possible , if how?
thanks in advance,
shadi
depending on selector engine use, can:
- add class exception h1 element
- you can use :not selector apply cufon h1's don't have aforementioned class (with jquery , classname 'clean'
cufon.replace('h1:not(.clean)');
Comments
Post a Comment