Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Jun 26th, 2017, 03:47am


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 Thread Background Modifier  (Read 3821 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17636
xx Sticky Thread Background Modifier
« Thread started on: Feb 5th, 2004, 3:51pm »

Code submitted by luke[z]web


Changes the BG color and adds text ;)

All you need to edit is the #FFFFFF to whatever colour you wish, maybe even multi-coloured :)

Also you may edit this....

sticky[a+2].innerHTML = "Sticky: " + sticky[a+2].innerHTML;

the Sticky: part to whatever, and if you dont wish to add text remove that line completely :)

Code:
<script>
/* Conforums Hack By Luke Dyson
http://lukezweb.conforums.com/
This cannot be reposted or eddited! */
var sticky = document.getElementsByTagName("td");
for(a=0;a<sticky.length;a++){
if(sticky[a].innerHTML.match(/sticky.gif/i)){
if(sticky[a].className.match("windowbg2")){
sticky[a].style.backgroundColor = "#FFFFFF";
sticky[a].bgColor = "#FFFFFF";
sticky[a+1].style.backgroundColor = "#FFFFFF";
sticky[a+1].bgColor = "#FFFFFF";
sticky[a+2].style.backgroundColor = "#FFFFFF";
sticky[a+2].bgColor = "#FFFFFF";
sticky[a+2].innerHTML = "Sticky: " + sticky[a+2].innerHTML;
sticky[a+3].style.backgroundColor = "#FFFFFF";
sticky[a+3].bgColor = "#FFFFFF";
sticky[a+4].style.backgroundColor = "#FFFFFF";
sticky[a+4].bgColor = "#FFFFFF";
sticky[a+5].style.backgroundColor = "#FFFFFF";
sticky[a+5].bgColor = "#FFFFFF";
sticky[a+6].style.backgroundColor = "#FFFFFF";
sticky[a+6].bgColor = "#FFFFFF";
}}}
</script>

 
« Last Edit: Jun 4th, 2010, 02:20am by Dave » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
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