The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Name Color not working again?

4 posters

Go down

Name Color not working again? Empty Name Color not working again?

Post by SpyroDragon Mon 27 Jun - 23:16

This is for
www.RaptorClan.com

I have this as my javascript code

Code:
$(function(){
  multiColor(1, '<strong><font color="#ffffff">Sp</font><font color="#00ffff">yr</font><font color="#666666">o</font><font color="#00ffff"> ▀█▀ </font><font color="#ffffff">Dr</font><font color="#00ffff">ag</font><font color="#666666">on</font></strong>');
 
  function multiColor(id, html){$('a[href="/u'+id+'"] strong').not(function(){return $("img",this)[0]}).html(html)}
});


and this as my CSS
Code:
body {
  background:url() fixed no-repeat 0 0 #000;
  background-size:100% 100%;
}


}
/*
Hackety-hack-hack…
FF2, with the above code, will only display the repeat-y image for as
 high as the window’s viewport is; higher content (upon
 scrolling) will not have the bg.
This "hack" makes the tiled background work properly in FF2.
This type of "advanced selector" is not understood by IE6…dunno
 ’bout IE7.
*/
html>body {
 min-height: 100%;
 width: auto;
}



div.t16 {font-size: 16pt}
div.t9 {font-size: 9pt}
div.t12 {font-size: 11pt}


td.catLeft, th.thLeft {
border-width: 0px 0px 0px 0px;
}


 #profile-advanced-details div.separator { display:none !important }
#profile-advanced-details dl { display:inline }
#profile-advanced-details dl#field_id8 { display:block }
  #profile-advanced-details dl dd, #profile-advanced-details .field_uneditable { display:inline }
#profile-advanced-details dl dt { float:none; display:inline }
  #profile-advanced-details dl dd { margin-left:5px }
#profile-advanced-details { white-space:pre-wrap }
.forumline { border-spacing:0 }
th.thLeft, .thRight {
border: none !important;
font-size: 0;
}


/* Right icon of the name in members list */
.name strong a[href="/1"],#chatbox_members a[href="/u1"], .gensmall a[href="/u1"]{
  padding-right: 15px;
  background: url(http://i35.servimg.com/u/f35/19/49/56/15/the_di10.gif) no-repeat right;}


And the name color isn't changing :S
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by Amadeus Tue 28 Jun - 0:19

I think u do it wrong <font color="#ffffff">Sp</font> because <font color="#ffffff">Sp</color> is good. Check this.
Amadeus
Amadeus
Forumember

Female Posts : 157
Reputation : 1
Language : Polish, English
Location : Poland

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by TheCrow Tue 28 Jun - 0:25

You can use this one instead. I think it's easier this way:
Code:
$(function(){
  multiColor(1, '<strong><span style="color:#ffffff">Sp</span><span style="color:#00ffff">yr</span><span style="color:#666666">o</span><span style="color:#00ffff"> ▀█▀ </span><span style="color:#ffffff">Dr</span><span style="color:#00ffff">ag</span><span style="color:#666666">on</span></strong>');
 
  function multiColor(id, html){$('a[href="/u'+id+'"] strong').not(function(){return $("img",this)[0]}).html(html)}
});


Name Color not working again? Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by SpyroDragon Tue 28 Jun - 17:14

Didnt work... the 1st one works on
SpyroDragon.com but its not working on
RaptorClan.com for some reason :S
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by Ace 1 Tue 28 Jun - 18:10

Are both of these the same forum version?
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by SpyroDragon Wed 29 Jun - 3:55

Yes.
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

Name Color not working again? Empty Re: Name Color not working again?

Post by SpyroDragon Fri 1 Jul - 8:44

Bump
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

Back to top

- Similar topics

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