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 June 27th 2016, 10:16 pm

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 : 455
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 June 27th 2016, 11:19 pm

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 June 27th 2016, 11:25 pm

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)}
});
TheCrow
TheCrow
Manager
Manager

Male Posts : 6897
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

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

Post by SpyroDragon June 28th 2016, 4:14 pm

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

Posts : 455
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 June 28th 2016, 5:10 pm

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 June 29th 2016, 2:55 am

Yes.
SpyroDragon
SpyroDragon
Forumember

Posts : 455
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 July 1st 2016, 7:44 am

Bump
SpyroDragon
SpyroDragon
Forumember

Posts : 455
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

Back to top


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