SMF For Free Support Forum

SMF For Free Support => SMF For Free Codes and Support => Topic started by: Vitality on May 03, 2009, 11:12:29 am

Title: [Code] Fade Locked Topics In Forum View
Post by: Vitality on May 03, 2009, 11:12:29 am
What does it do: It will fade all locked topics in forum view.
Preview: None
Where does it go: Footers

Code: [Select]
<script type="text/javascript">
/*Vitality - ZBCode*/
if(location.href.indexOf("board,")!=-1){
var getTd=document.getElementsByTagName("td")
var gotTD=getTd.length;
while(gotTD--){
if(getTd[gotTD].className=="windowbg"&&getTd[gotTD].innerHTML.indexOf("<span id=")!=-1&&getTd[gotTD].innerHTML.indexOf("<img")!=-1){
getTd[gotTD].parentNode.style.opacity='0.7';
}
}
}
</script>
You can edit that last line to change the opacity. Just change the 0.7 to whatever you want. The lower the number, the more you won't be able to see.