inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 13:25:43 GMT -8
I know how to make my name appear in red but is there a way i can change the color of my my members? Like one have purple and one have orange etc.
|
|
inherit
The Jedi Master of Proboards PBS Oscars: Most Unique
6777
0
Nov 19, 2012 0:15:08 GMT -8
Tommy Huynh
Coffee isn't my cup of tea.
19,374
January 2003
swg2
|
Post by Tommy Huynh on Oct 1, 2005 13:27:44 GMT -8
I know how to make my name appear in red but is there a way i can change the color of my my members? Like one have purple and one have orange etc. Look in the Code Index.
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Oct 1, 2005 13:28:02 GMT -8
|
|
inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 13:30:06 GMT -8
Ok thanks Tommy and thanks once again fru fru. Mayaari
|
|
inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 16:05:57 GMT -8
What am i doing wrong?
It wont work....
<script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&user='+name) != -1) document.links[cn].style.color=color; }
colorName('Connie','purple'); // --> </script>
I put it in my global footer like the instructions said..
Did i type something wrong in the code?
I'm trying to make the user name Connie have the color purple.
Do i have to give the link to my site?
Mayaari
|
|
inherit
Proboards Legend
12897
0
Oct 16, 2016 6:49:45 GMT -8
Snakeair
I don't know what to write here.
40,721
August 2003
snakeair
|
Post by Snakeair on Oct 1, 2005 16:07:34 GMT -8
That user "Connie" is that her username or display name? When putting members names in that code you need to use the username. (the one they registered with) For example i'm Snakeair but i registered with snakeair. Click on there profile to see there username.
Post your board URL if you still can't get it to work.
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Oct 1, 2005 16:08:18 GMT -8
What am i doing wrong? It wont work.... <script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&user='+name) != -1) document.links[cn].style.color=color; } colorName('Connie','purple'); // --> </script> I put it in my global footer like the instructions said.. Did i type something wrong in the code? I'm trying to make the user name Connie have the color purple. Do i have to give the link to my site? Mayaari try changing connie to lowercase. And enter the hex for purple instead, #663399
|
|
inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 16:09:27 GMT -8
It's the username.
|
|
inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 16:10:03 GMT -8
Ok will do.
Sorry for bugging about this again hehe
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Oct 1, 2005 16:10:28 GMT -8
usernames are no longer case-sensitive, but unfortunately javascript is. You need to make usernames lowercase when doing something with it in a code.
|
|
inherit
49718
0
Jun 1, 2006 6:42:22 GMT -8
mayaari
70
July 2005
mayaari
|
Post by mayaari on Oct 1, 2005 16:14:08 GMT -8
Oh ok gotcha and yep it worked. Thanks for all your help!
Mayaari
|
|