September 25, 2022, 11:52:39 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Fade Locked Topics In Forum View

Pages: [1]   Go Down
  Print  
Author Topic: Fade Locked Topics In Forum View  (Read 548 times)
Vitality
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 154



View Profile
Badges: (View All)
« on: May 03, 2009, 11:10:25 am »

What does it do: It will fade all locked topics in forum view.
Preview: None
Where does it go: Footers

Code:
<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, 11:31:37 am by Vitality » Report Spam   Logged


CODE

Share on Facebook Share on Twitter

Lyle
MeTube
Member
Member
Offline Offline

Gender: Male
Posts: 69



View Profile
Badges: (View All)
« Reply #1 on: June 07, 2009, 04:05:33 pm »

this didnt work on my forums, do i need ot add anything to the headers? JQuery?
Report Spam   Logged
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« Reply #2 on: June 07, 2009, 05:02:11 pm »

Nope.  You should be able to add it straight to your forum.  You might have another code that is making this one not work, such as Color Locked Topics
Report Spam   Logged


Lyle
MeTube
Member
Member
Offline Offline

Gender: Male
Posts: 69



View Profile
Badges: (View All)
« Reply #3 on: June 08, 2009, 12:58:00 pm »

i will go over my forum and check...
Report Spam   Logged
Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #4 on: June 13, 2009, 09:50:01 am »

Awesome code! Works great on my Forum. Will probably keep it here forever Wink
Report Spam   Logged






el mafioso
Exclusive
Exclusive
Offline Offline

Posts: 553


SOTW 1st Champion


View Profile
Badges: (View All)
« Reply #5 on: June 13, 2009, 09:55:46 am »

Hey what your forum link?
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #6 on: June 13, 2009, 09:56:54 am »

My Domain... http://www.darkilscape.com Wink or the SMF For Free... http://www.darkilscape.smfforfree.com
Report Spam   Logged






Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy