Advertise Here

Author Topic: Question about this code  (Read 1242 times)

0 Members and 1 Guest are viewing this topic.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Question about this code
« on: March 19, 2009, 01:52:48 pm »
Code: [Select]
<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 code is only showing the color for ONE stickied topic per board, is there a way it could show it for ALL stickied topics in every board?

EDIT:
Also, for stickied topics, can it also put the word sticky: next to it?
« Last Edit: March 20, 2009, 07:59:34 pm by +Andrew+ »

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1034 Views
Last post June 14, 2007, 02:44:57 pm
by Freetalk creator
2 Replies
910 Views
Last post September 22, 2007, 07:25:47 pm
by x-Treme
11 Replies
2065 Views
Last post August 07, 2008, 08:45:58 am
by BlueButterfly
3 Replies
992 Views
Last post November 28, 2008, 02:59:07 pm
by interruption
1 Replies
2911 Views
Last post July 25, 2011, 09:56:56 am
by simply sibyl