iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 13, 2007 3:57:01 GMT -5
This code will alter the look of your Navigation Tree. Preview: ClickGlobal Footer. Cross Browser. Open Source. <script type="text/javascript"> <!--
/*Navigation Mod - By iAlex - Open Source*/ var iLink=document.getElementsByTagName('a'); for(i=0;i<iLink.length;i++){ if(iLink.item(i).className.match(/^nav$/)){ var iKay=iLink.item(i).parentNode.innerHTML.split(/<table/i)[0].split(/<br \/?>/i)[0]; var iDiv=document.createElement('div'); iDiv.innerHTML='<table class="bordercolor" cellspacing="1" cellpadding="2"><tr><td class="titlebg"><b>Navigation</b></td></tr><tr><td class="windowbg">'+iKay.replace(/<br\s?\/?>/i, '')+'</td></tr></table><br />'; while(!iLink.item(i).nextSibling.nodeName.match(/(table|script|tr|td|div)/i)){ iLink.item(i).parentNode.removeChild(iLink.item(i).nextSibling); } iLink.item(i).parentNode.replaceChild(iDiv, iLink.item(i)); break; } }
//--> </script>
|
|