Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 17th, 2017, 02:12am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Sticky Subject color  (Read 2863 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2070
xx Sticky Subject color
« Thread started on: Aug 19th, 2006, 03:09am »

Name: Sticky Subject Color [CB]

Description: Will allow you to change the color of Sticky and Sticky Lock Thread Title.

Submitted by: Zando

Location: Board Footers

Code:

<script type="text/javascript">
<!--

/*
Important Thread Subject Color Change
Coded By Zando
*/

var sti="sticky.gif"; //Sticky Img URL
var sticolor="00aeff"; //Desired Sticky Subject Color

var lo="stickylock.gif"; //Stick Lock Img URL
var locolor="ffae00"; //Desired Sticky Lock Subject Color

var tdz=document.getElementsByTagName("td")
for(z=0;z<tdz.length;z++){
if(tdz[z].className.match(/windowbg2/) && tdz[z].width=="6%" && tdz[z].align=="center" && tdz[z+1].className.match(/windowbg2/)){
var font=tdz[z+2].getElementsByTagName("a")
var stick=tdz[z].getElementsByTagName("img")
if(stick[0].src.match(sti)){
font[0].style.color=sticolor;
}
if(stick[0].src.match(lo)){
font[0].style.color=locolor;
}
}}

//-->
</script>



Note: Make sure the Image URL's are just the last part of the URL and not the entire URL. e.g.
Use
sticky.gif
not
http://207.44.144.11/boardimages/sticky.gif
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls