Advertise Here

Author Topic: [Code] Color all Topics in Certain Board  (Read 1831 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Color all Topics in Certain Board
« on: February 24, 2008, 02:18:15 pm »
Footers:
Code: [Select]
<script>
function ColorTopics(ID,Color){
if(location.href.match("board," + ID)) $("a[href*='/topic,']").css("color",Color);
};
ColorTopics("ID","COLOR");
</script>

ID = The ID of the Board you want the topics to be colored.
COLOR = The Color of the topics.  You may use HEX.

Original Request: http://www.smfsupport.com/support/smf_for_free_codes/request_color_code-t10338.0.html
« Last Edit: February 25, 2008, 02:47:58 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline TheWarzone1

  • SMF For Free Full Member
  • *
  • Posts: 129
    • View Profile

  • Total Badges: 25
    Badges: (View All)
    Nineth year Anniversary Eighth year Anniversary Linux User Mobile User Level 5
Re: Color all Topics in Certain Board
« Reply #1 on: February 24, 2008, 11:17:50 pm »
is there a way to use this on a specific topic? like say i wanted to make sticky topics a certain color. could i do that?

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Color all Topics in Certain Board
« Reply #2 on: February 25, 2008, 05:58:27 am »
There was a code for that done a while back.  Check here  Codes Index
   


And I Play:  Mafia-Mandemz

Offline atlantic reefer

  • SMF For Free Full Member
  • *
  • Posts: 187
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Color all Topics in Certain Board
« Reply #3 on: February 25, 2008, 05:00:00 pm »
k just have a quick question - is it possible to make the topic show up in red on the homepage too?
Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode

 

Related Topics

  Subject / Started by Replies Last post
18 Replies
4610 Views
Last post December 24, 2007, 10:37:07 pm
by nativejim
5 Replies
1377 Views
Last post October 23, 2007, 10:45:46 am
by simply sibyl
2 Replies
884 Views
Last post February 05, 2008, 07:06:12 pm
by littlebouncers
1 Replies
1352 Views
Last post April 29, 2008, 01:23:42 am
by Vice
3 Replies
1232 Views
Last post June 30, 2009, 10:39:22 pm
by Coco