ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Sept 3, 2007 1:41:34 GMT -8
This code will alter the look of your Navigation Tree. Preview: ClickGlobal Footer. Cross Browser. Proboards. <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$/)){ x = (navigator.appName == "Microsoft Internet Explorer") ? 0 : 1; var iKay=iLink.item(i).parentNode.innerHTML.split(/<table/i)[0].split(/<br>/i)[x]; 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|form|tr|td|div|tbody|br)/i)){ iLink.item(i).parentNode.removeChild(iLink.item(i).nextSibling); } iLink.item(i).parentNode.replaceChild(iDiv, iLink.item(i)); break; } }
//--> </script> Small edit to fix problem with smilies and preview button with v5 pre-edits. - Trublu* regexp edit to handle how the forms are now nested - 8-8-11
|
|