Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: December 03, 2007, 02:38:20 pm » |
|
Footers: <script> function sticky_topic_color() { //Created by Agent Moose at smcodes.smfforfree3.com var color = "COLOR HERE" if(location.href.match(/board,(\d+)/i)){ b = document.getElementsByTagName("td") for(a=0;a<b.length;a++){ if(b[a].className == "windowbg3"){ d = b[a].getElementsByTagName('a')[0] d.innerHTML = "<font color='"+color+"'>" + d.innerHTML + "</font>" };};};}; sticky_topic_color(); </script> This will make it so that when ever you have a Stickied topic, the link will automaticly be a diffrent color from all the other topic links. Just change COLOR HERE to the color you want it to be.
|
|
|
|
|
Myth
Lightning Guardian
Members
Offline
Gender:
Posts: 28
Ike for Brawl!
|
|
« Reply #1 on: December 03, 2007, 03:00:09 pm » |
|
Are there all the basic colors? or do you have to put like the #FFFFF thing?
|
|
|
|
|
Sassy Pants
Members
Offline
Gender:
Posts: 42
|
|
« Reply #2 on: December 03, 2007, 03:11:32 pm » |
|
ok, NOW I know FOR SURE there is something wrong with my forum, this code didnt work for me either
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #3 on: December 03, 2007, 03:14:41 pm » |
|
You may use any color you wish. that includes like Red, Green, or you using colors like #000000.
|
|
|
|
Myth
Lightning Guardian
Members
Offline
Gender:
Posts: 28
Ike for Brawl!
|
|
« Reply #4 on: December 03, 2007, 03:23:36 pm » |
|
Ok thanks
|
|
|
|
Gordie
Starter
Offline
Gender:
Posts: 15
|
|
« Reply #5 on: December 03, 2007, 03:24:54 pm » |
|
Sassy...what's your forum url?
|
|
|
|
Sassy Pants
Members
Offline
Gender:
Posts: 42
|
|
« Reply #6 on: December 03, 2007, 03:30:23 pm » |
|
Check your PM
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #7 on: December 23, 2007, 06:09:18 pm » |
|
very cool code
|
Newest:
|
|
|
Coreeeey
Starter
Offline
Posts: 8
|
|
« Reply #8 on: December 26, 2007, 12:02:38 am » |
|
If I use this code and "Automatic Color For Locked Topic" and I have a topic that is both stickied and locked, which will take precedence?
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #9 on: December 26, 2007, 12:50:40 am » |
|
Which ever code is below the other in your footer, I think.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #10 on: December 26, 2007, 07:10:18 am » |
|
I wouldn't know. But what omikron says would make since.
|
|
|
|
Coreeeey
Starter
Offline
Posts: 8
|
|
« Reply #11 on: December 27, 2007, 12:48:24 am » |
|
Well I tried it. I had 2 topics on a board, both were locked and stickied. Stickies were supposed to turn green, locked were supposed to turn red. One of the topics turned green, and the other turned red. I can remember in which order but they were different colors.
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #12 on: December 29, 2007, 01:51:29 pm » |
|
what about for moved topics
|
Newest:
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #13 on: January 15, 2008, 04:27:08 pm » |
|
there is a bug with this! i sticked two topics and one showed up green the other white(like all other posts)
|
Newest:
|
|
|
Blahs
100 Club Member
Offline
Posts: 184
Rockstar!
|
|
« Reply #14 on: March 22, 2008, 11:20:34 pm » |
|
Hey thanks a lot...
|
Join my forums!!!! Url: http://silabforums.smfforfree4.com/index.php
|
|
|
|
|