This will remove the menu spacer :: from the menu bar... it'll then leave the menu buttons spaced out by 1 space!![]()
Global Header
Code:
- <script type="text/javascript">
- /*Remove :: from Menu
- Created By Wrighty
- support.virtualforums.co.uk*/
- var menu = document.getElementById('menu_buttons');
- menu.innerHTML = menu.innerHTML.replace(new RegExp(" ::","g"),'');
- </script>
pretty useful code for people using close menu button images![]()
Hey Wrighty, is there any way that I could get this code without the space?No menu spacing, but remove the :: :: still?
Sure thing!![]()
Code: JavaScript
- <script>
- /*Remove :: from Menu
- Created By Wrighty
- support.virtualforums.co.uk*/
- var menu = document.getElementById('welcome_table').getElementsByTagName('td')[2];
- menu.innerHTML = menu.innerHTML.replace(new RegExp(" :: ","g"),'');
- </script>
try that!![]()
You are a sweetheart.Thanks so much, it worked great!
CSS alternative
Images:
#welcome_table .menu *{
font-size: 0px;
}
#welcome_table .menu img{
margin-left: 5px;
}
Text:
#welcome_table .menu *{
font-size: 0px;
}
#welcome_table .menu a{
margin-left: 5px;
font-size: 13px;
}
It doesn't work.![]()
It doesn't work.![]()
Which code?
It doesn't work.![]()
Can you link the the board which you're trying it?![]()
not working when logged in
www.bailey.vforums.co.uk
This code should work flawlessly, please link to any forums that are having a problem!![]()
If you want to remove all spacing:
Find: (" ::","g"
Replace: (" :: ","g"
It's in the 4th reply!![]()
Rough preview: