Simple Machine Codes
April 19, 2024, 06:34:56 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Topic Color V2

Pages: [1]   Go Down
  Print  
Author Topic: Topic Color V2  (Read 612 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: August 02, 2007, 10:44:48 am »

Footers:
Code:
<script>
function add_color_v2() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
$("a").each(function() {
if(this.innerHTML.match(/\[color=.*\]/i)) {
this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\]/i,"<font color='$1'>");
};});});}
add_color_v2();
</script>

This is just like V1 of this code. In V1, you only let the members have certain colors, with V2, you can let them have any color they want!

All you have to do is add [color=YOUR COLOR HERE] into the front of a topic title, and change the YOUR COLOR HERE part to the color you want it to be.  you may use HEX

I hope you like it
Report Spam   Logged

Share on Facebook Share on Twitter

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #1 on: August 02, 2007, 05:31:49 pm »

Moose, can you do a preview please and maybe make it a little clearer about how you input the information.  Thanks.
Report Spam   Logged

Jamie1200
Newcomers!

Offline Offline

Posts: 2


View Profile
« Reply #2 on: October 06, 2007, 03:13:35 pm »

This Mayt Seem A Little Stupid But Whats HEX?
This Is a Wild stab In The Dark But Is Hex (FFFFFF & 000000)?
Sorry But In Stupid Today!  Huh?
Report Spam   Logged

The man who smiles when things go wrong has thought of someone to blame it on
LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #3 on: October 06, 2007, 03:34:51 pm »

Yep, hex is the 6 digit alpha numeric code you use for colors.
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy