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.

Type: Discussion
Status: New
chaos4u
View Replies:
sebastienj replied on at Permalink Reply
sebastienj
Hi,

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
chaos4u replied on at Permalink Reply
chaos4u
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.
sebastienj replied on at Permalink Reply
sebastienj
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

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.