|
Post by maxpower57 on Jun 10, 2005 11:14:40 GMT -8
i need a code that changes the color of the text that says this user is offline/online aka in the miniprofile it would say member is onlineor member is offline
Last Edit: Jun 14, 2005 10:58:33 GMT -8 by maxpower57
|
|
|
Post by CD on Jun 10, 2005 11:43:47 GMT -8
Just a guess on this one. <script> // Change online and offline colors by CDDude229 var aTD = document.getElementsByTagName("TD");
for(a=0;a<aTD.length;a++){ if(aTD[a].innerHTML.match(/member is (offline|online)/i) && aTD[a].width=="20%" && aTD[a].innerHTML.match(/Posts: (\d+)/i)){ aTD[a].replace("member is offline","member is <font color='555555'>offline</font>"); aTD[a].replace("member is online","member is <font color='000055'>online</font>"); }} </script> Try that. Global footers, change the color in the font tag.
|
|
|
Post by maxpower57 on Jun 10, 2005 12:10:42 GMT -8
nope doesnt work
|
|
|
Post by CrAzY_J on Jun 10, 2005 15:29:16 GMT -8
<script type='text/javascript'> var t=document.getElementsByTagName('td'); for(T=0;T<t.length;T++){ if(t[T].width=='20%' && t[T].innerHTML.match(/Posts:\s\d+/)){ t[T].innerHTML=t[T].innerHTML.replace(/is\sonline/,"<font color=' ff00ff'>online</font>"); t[T].innerHTML=t[T].innerHTML.replace(/is\soffline/,"<font color=' 0000ff'>offline</font>"); }} </script>
Last Edit: Jun 10, 2005 16:56:28 GMT -8 by CrAzY_J
|
|
|
Post by CD on Jun 10, 2005 16:15:53 GMT -8
Crazy, you put size for the second font tag instead of color XD
|
|
|
Post by CrAzY_J on Jun 10, 2005 16:58:17 GMT -8
Crazy, you put size for the second font tag instead of color XD No idea what ya talking about mate
|
|
|
Post by CD on Jun 10, 2005 17:11:29 GMT -8
Nice edit Crazy. Even says you did edit it.
|
|