Simple Machine Codes
April 18, 2024, 01:50:20 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  

Description and Topic Color V3

Pages: [1]   Go Down
  Print  
Author Topic: Description and Topic Color V3  (Read 509 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:52:12 am »

Code:
<script>
function add_color_v3() {
//Created by Agent Moose
$(function() {
$("a , div.description , li span , tr th small , tr th").each(function() {
if(this.innerHTML.match(/\[color=.*\]/i)) {
this.innerHTML = this.innerHTML.replace(/\[color=(.+?)\]/i,"<font color='$1'>");
};});});}
add_color_v3();
</script>

Below the Board
« Last Edit: August 17, 2007, 03:52:24 am by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter



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