Advertise Here

Author Topic: [Code] Fade Locked Topics In Forum View  (Read 1485 times)

0 Members and 1 Guest are viewing this topic.

Offline Vitality

  • SMF For Free Member
  • *
  • Posts: 53
  • Revolution X
    • View Profile
    • Revolution X

  • Total Badges: 14
    Badges: (View All)
    Linux User Topic Starter Combination Level 3 Level 2
[Code] Fade Locked Topics In Forum View
« 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.
« Last Edit: May 03, 2009, 09:10:37 pm by Agent Moose »

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1134 Views
Last post July 06, 2007, 03:37:45 pm
by Bullet_RHLI
18 Replies
3604 Views
Last post December 24, 2007, 10:37:07 pm
by nativejim
1 Replies
520 Views
Last post February 07, 2009, 11:52:24 am
by simply sibyl
4 Replies
1188 Views
Last post January 12, 2012, 02:00:46 pm
by Octavia
6 Replies
703 Views
Last post February 21, 2017, 06:55:25 pm
by Songbird