The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Can I set few colors in my nick

View previous topic View next topic Go down

Can I set few colors in my nick

Post by Kralj on July 1st 2013, 9:32 am

Hello!

Can I set in my nick (on my forum) 2 or more colors with some code in javascript?

Kralj
Forumember

Male Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia

Back to top Go down

Re: Can I set few colors in my nick

Post by Cassius Dio on July 1st 2013, 12:19 pm

Hi! Very Happy

If your name on your forum is the same as here, add this code to your JavaScript codes management:
Code:
$(document).ready(function(){
$('a:contains("Kralj")').replaceWith('
<a href="/u1"><span style="color: #0a39f5;">K</span><span style="color: #0a2ec4;">r</span><span style="color: #092393;">a</span><span style="color: #091762;">l</span><span style="color: #080c31;">j</span></a>
');
});

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Re: Can I set few colors in my nick

Post by Kralj on July 1st 2013, 1:41 pm

@Cassius Dio wrote:Hi! Very Happy

If your name on your forum is the same as here, add this code to your JavaScript codes management:
Code:
$(document).ready(function(){
$('a:contains("Kralj")').replaceWith('
<a href="/u1"><span style="color: #0a39f5;">K</span><span style="color: #0a2ec4;">r</span><span style="color: #092393;">a</span><span style="color: #091762;">l</span><span style="color: #080c31;">j</span></a>
');
});

yes, it's work, but it not strong. Can you writte how to make strong? And it look like that (I'm on mobile and i can make screenshot):

Last post

some theme...
Date
K
r
a
l
j

how I can fix that?

Kralj
Forumember

Male Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia

Back to top Go down

Re: Can I set few colors in my nick

Post by Cassius Dio on July 1st 2013, 5:04 pm

Try this:
Code:
$(document).ready(function(){
$('a:contains("Kralj")').replaceWith('
<a href="/u1" style="font-weight: bold;"><span style="color: #0a39f5; display: inline;">K</span><span style="color: #0a2ec4; display: inline;">r</span><span style="color: #092393; display: inline;">a</span><span style="color: #091762; display: inline;">l</span><span style="color: #080c31; display: inline;">j</span></a>
');
});

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Re: Can I set few colors in my nick

Post by Kralj on July 1st 2013, 5:28 pm

now its ok, but if I give name Kralj to same theme it become link on my profile, and colorised like that:



edit: and there is some space between letters

Kralj
Forumember

Male Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia

Back to top Go down

View previous topic View next topic Back to top


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