vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Deleting the "::" on menu bar

[F] Deleting the "::" on menu bar - Posted By RuhRoe (mezorro) on 13th Feb 08 at 9:58pm
I know this is there but i am using http://support.virtualforums.co.uk/board/codesubmit/topic/3401/action/view_topic/page/1/menu-buttons-inside-banner/ with the code and it doesn't work with it. Anyway you can delete it with this code on?

Re: Deleting the "::" on menu bar - Posted By Michael (wrighty) on 13th Feb 08 at 10:16pm
use this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*Menu Buttons Inside Banner by Danny*/
  4.  
  5. var xPos = '0'; // X Postion
  6. var yPos = '0'; // Y Postion
  7. var height = '174'; // Banner Image Height
  8.  
  9. var getID = document.getElementById("welcome_table");
  10. getID.style.height = height;
  11. var getTab = getID.getElementsByTagName('td')[0];
  12. getTab.align = 'left';
  13. getTab.vAlign = 'top';
  14. getTab.style.backgroundImage = 'url('+getTab.getElementsByTagName("img")[0].src+')';
  15. var getMenu = getID.getElementsByTagName('td')[2];
  16. getTab.innerHTML = '<div style="position: relative; top:'+yPos+'; left:'+xPos+';">'+getMenu.innerHTML.replace(/:: /g,"")+'</div>';
  17. getMenu.parentNode.parentNode.parentNode.parentNode.parentNode.style.display ='none';
  18.  
  19. //-->
  20. </script>
 

Re: Deleting the "::" on menu bar - Posted By RuhRoe (mezorro) on 13th Feb 08 at 10:59pm
Thanks {Grin}