inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jul 22, 2005 4:43:46 GMT -8
Global Header, This will remove the "[" and "]" brackets from when you have Text menus enabled. Edit the red with what you would like to replace them with. (leave blank for no dividers)
<script type="text/javascript"> <!-- /* fix text menus by ross */
var startChar = '['; //Start character var dividerChar = '-'; //Dividing Character(s); var endChar = ']'; //End character
//no need to edit below var menu = document.getElementsByTagName('td').item(5).firstChild; var a = menu.innerHTML.replace(/^\n?(<.+?>)\[/, startChar+' $1'); var b = a.replace(new RegExp('\\](<\/a>)(\\n|\\s|&nb'+'sp;)*$', 'i'), '$1 '+endChar); var c = b.replace(new RegExp('\\](<\/a>)(&nb'+'sp;|\\s)(<a.+?>)\\[', 'gi'),'$1 '+dividerChar+' $3'); menu.innerHTML = c; //--> </script>
Edited 05/02/07: Compatibility fix for Opera users
|
|