Coding-Spot

You are not connected. Please login or register

 
 
 

Add effect shadow & Bold on cufon text.

Message (Page 1 of 1)

#1

weeknight

weeknight
 
Senior Member

Posted May 31st 2013, 10:45 am

 
Hello all i want to ask :)

how to Add effect shadow on cufon text.?
before i look this code,
Code:
    jQuery(document).ready(function(){


    Cufon.replace('#whoisonlinetitlediv, #usermenutitle', {textShadow: '1px 1px #000'});

    Cufon.replace('span#leaguetext ',{textShadow: '1px 1px #000',  fontSize: '30px'});

    Cufon.replace('.row1.over a.gensmall ',{textShadow: '1px 1px #000',  fontSize: '11px'});

    Cufon.replace('#whoisonlinesubtitle, .forumline th, .module-title, .cattitle, .catHead, .mod_news .catLeft', {textShadow: '1px 1px #000', fontSize: '15px'});

    Cufon.replace('.nav, .forumlink, .mainmenu', {textShadow: '1px 1px #000', fontSize: '14px', hover: {color: '#a6a6a6'}});

    Cufon.replace('#page-footer', {textShadow: '1px 1px #000', fontSize: '13px', hover: {color: '#a6a6a6'}});

    Cufon.replace(' #masterleaguetitle1', {fontWeight: 'bold', fontSize: '15px'});

    Cufon.replace(' #masterleaguetitle2', {fontWeight: 'bold', fontSize: '35px'});

    });

yes, on that code add shadow effect and font weight: 'bold'
text shadow
Code:
Cufon.replace('#whoisonlinetitlediv, #usermenutitle', {textShadow: '1px 1px #000'});

bold
Code:
Cufon.replace(' #masterleaguetitle2', {fontWeight: 'bold', fontSize: '35px'});

i done try that code, with add text shadow and font weight to my cufon, but dont work :(
-------
i need add text shadow and bold
on my code.
this
Code:
Cufon.replace('#right .module-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.replace('#right td.catHead', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '15px').replace('.hierarchy a.forumlink', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '15px').replace('a.mainmenu', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.replace('table.forumline th', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '14px').replace('.nav', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '14px').replace('.module-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '14px').replace('td.t-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.replace('.text', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });
    Cufon.set('fontSize', '12px').replace('td.row1.over span.gensmall a.gensmall', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true });

please help me :)

thanks before ^_^
http://budokai.indonesianforum.net/





#2

Mark

Mark
 
Administrator
Administrator

Posted May 31st 2013, 10:48 am

 
Use this one, just do the same to the others:
Code:
Cufon.replace('#right .module-title', { fontFamily: 'HemiHeadFourTwentySix-Regular', hover: true, textShadow: '1px 1px #000', fontWeight: 'bold'});



https://coding-spot.darkbb.com


#3

weeknight

weeknight
 
Senior Member

Posted May 31st 2013, 11:28 am

 
wow amazing, that code its work ^_^

thanks mr.mark :D

problem solved :)





#4

Mark

Mark
 
Administrator
Administrator

Posted May 31st 2013, 12:02 pm

 
Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



https://coding-spot.darkbb.com


#5

Sponsored content


 

Posted

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None