Board Logo

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


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: Remove or Modify 'Nav Tree'  (Read 4350 times)
Richard
Executive Member


member is offline

Avatar




Homepage PM


Posts: 11512
xx Remove or Modify 'Nav Tree'
« Thread started on: Jan 14th, 2005, 8:54pm »

<script>
for(r_o=0; r_o<document.links.length; r_o++){
if(document.links[r_o].className == "nav")
document.links[r_o].parentNode.removeNode(true);
}
</script>


This code should be placed in your footers.
« Last Edit: Mar 18th, 2005, 5:56pm by Richard » User IP Logged

Richard
Executive Member


member is offline

Avatar




Homepage PM


Posts: 11512
xx Flatten Nav Tree
« Reply #1 on: Mar 18th, 2005, 5:58pm »

<script>
//Created by Dave, http://support.conforums.com
var boardMod="";
for(iLink=0; iLink<document.links.length; iLink++){
if(document.links[iLink].className == "nav"){
if(document.links[iLink].parentNode.getElementsByTagName('FONT')[0])
{
boardMod = "<FONT class=\"nav\">"+document.links[iLink].parentNode.getElementsByTagName('FONT')[0].innerHTML+"</FONT>";
document.links[iLink].parentNode.innerHTML = document.links[iLink].parentNode.innerHTML.replace(document.links[iLink].parentNode.getElementsByTagName('FONT')[0].innerHTML, "");
}
document.links[iLink].parentNode.innerHTML = document.links[iLink].parentNode.innerHTML.replace(/
/ig, "-");
while(document.links[iLink].parentNode.getElementsByTagName('IMG')[0]){
document.links[iLink].parentNode.getElementsByTagName('IMG')[0].removeNode(true);
}

if(boardMod.match(/^\(Moderator:/i) && !(boardMod.match(/Moderators: none/)))
document.links[iLink].parentNode.innerHTML += boardMod;
else
document.links[iLink].parentNode.innerHTML = document.links[iLink].parentNode.innerHTML.substring(0, document.links[iLink].parentNode.innerHTML.length - 3);
break;
}}
</script>


This script should be placed in your footers.

« Last Edit: Mar 18th, 2005, 5:59pm by Richard » 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