Can I set few colors in my nick
2 posters
Page 1 of 1
Can I set few colors in my nick
Hello!
Can I set in my nick (on my forum) 2 or more colors with some code in javascript?
Can I set in my nick (on my forum) 2 or more colors with some code in javascript?
Kralj- Forumember
- Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia
Re: Can I set few colors in my nick
Hi!
If your name on your forum is the same as here, add this code to your JavaScript codes management:
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>
');
});
Re: Can I set few colors in my nick
Cassius Dio wrote:Hi!
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
- Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia
Re: Can I set few colors in my nick
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>
');
});
Re: Can I set few colors in my nick
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
edit: and there is some space between letters
Kralj- Forumember
- Posts : 128
Reputation : 6
Language : Croatian || English || HTML
Location : Croatia
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum