Simple Machine Codes
April 20, 2024, 03:19:00 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 V3

Pages: [1]   Go Down
  Print  
Author Topic: Topic Color V3  (Read 514 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 17, 2007, 03:41:17 am »

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

This is exactly like the second one, but better.  It just adds color to the Big Topic title and things like that.

Just add [color=YOUR COLOR HERE] to the beggining of the topic title, and change the YOUR COLOR HERE to the color you want the topic title
Report Spam   Logged

Share on Facebook Share on Twitter

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #1 on: August 18, 2007, 12:29:12 am »

What has been updated?
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: August 18, 2007, 03:18:56 am »

It will change the color of the h1 color too.
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