I am wanting to stylize the text with in the labels using easy cufon
Permalink Browser Info Environment
i have easy cufon and would like to use it to stylize the text within the labels
normally i just add <p class="easycufon"> to any text i want stylized
but i am unsure how i would add this to the labels in easytabs.
normally i just add <p class="easycufon"> to any text i want stylized
but i am unsure how i would add this to the labels in easytabs.
Type: | Discussion |
---|---|
Status: | New |
Hi thanks for the quick reply :)
unfortunately my efforts at trying to make it work have all failed .
i believe this is the line you refer to
'<li><a href="#'+ o.bID +'-tab-' + j + '">' + o.titles[j] + '</a></li>';
i have tried several methods of making it work .
some of the examples.
<li class="easycufon">
<a class="easycufon">
<a href="<p class="easycufon">#'+ o.bID +'-tab-' + j + '</p>">' + o.titles[j] + '</a>
(before and after the hash )
<a href="#'+ o.bID +'-tab-' + j + '"><p class="easycufon">' + o.titles[j] + '</p></a>
(also within the single quotes.)
i also tried applying li.easycufon to the template top css as well as a.easycufon
and still no success the best i got was some strange dots that appeared other wise the text was blank or i broke the script entirely .
thanks for your time . if i have not made a serious error and i may have as i have a really hard time understanding javascript. (it hurts my lil head.) it maybe a problem with easycufon .. and i may need to go and actually use the actual cufon scripts.
unfortunately my efforts at trying to make it work have all failed .
i believe this is the line you refer to
'<li><a href="#'+ o.bID +'-tab-' + j + '">' + o.titles[j] + '</a></li>';
i have tried several methods of making it work .
some of the examples.
<li class="easycufon">
<a class="easycufon">
<a href="<p class="easycufon">#'+ o.bID +'-tab-' + j + '</p>">' + o.titles[j] + '</a>
(before and after the hash )
<a href="#'+ o.bID +'-tab-' + j + '"><p class="easycufon">' + o.titles[j] + '</p></a>
(also within the single quotes.)
i also tried applying li.easycufon to the template top css as well as a.easycufon
and still no success the best i got was some strange dots that appeared other wise the text was blank or i broke the script entirely .
thanks for your time . if i have not made a serious error and i may have as i have a really hard time understanding javascript. (it hurts my lil head.) it maybe a problem with easycufon .. and i may need to go and actually use the actual cufon scripts.
I think that you are in the right way. You would search for a 'cufon.refresh' or something like this. Because cufon have already scanned the document befor you have changed the title. So you must say to cufon : re-check !
Let me know
Seb
Let me know
Seb
That's possible. Depends on wich template you work.
For example, for a multi skin template :
go to templates/multi_skins/view.js and find the function easyMSTabs_fillNav()
inside you will find the constructor of the tabs. Just add what you want !
Let me know !
Seb