Can i have a code to remove :: between new thread etc and have it spaced by 2px
Code:
- <script type="text/javascript">
- /*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>
Not in menu he said!![]()
In the space between new topic etc....
I'll try to get to this tonight!![]()
Not in menu he said!![]()
In the space between new topic etc....
I'll try to get to this tonight!![]()
Oops, my bad.![]()
try:
<script>
/*Remove :: from buttons
Usual Copyright stuff here!
Wrighty*/
for(i=0; i<get('td','tag').length;i++){
if(get('td','tag')[i].innerHTML.match(/ :: /) && get('td','tag')[i].className.match(/title(1|2)/)){
get(''td','tag')[i].innerHTML = get(''td','tag')[i].innerHTML.replace(/ :: /,' ');
}
}
</script>
Untested, .... Also, Global Footer... Should work!![]()
Nope doesnt work![]()
Code:
- <script>
- <!--
- /* Remove :: */
- var td = get('td','tag');
- for(i=0;i<td.length;i++){
- if(td[i].innerHTML.match(/::/) && td[i].className.match(/title(1|2)/)){
- td[i].innerHTML = td[i].innerHTML.replace(/ ::/,'');
- }
- }
- //-->
- </script>
![]()
No...
<script>
/*Remove :: from buttons
Usual Copyright stuff here!
Wrighty*/
for(i=0; i<get('td','tag').length;i++){
if(get('td','tag')[i].innerHTML.match(/ :: /) && get('td','tag')[i].className.match(/title(1|2)/)){
get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/ :: /g,' ');
}
}
</script>
No...
<script>
/*Remove :: from buttons
Usual Copyright stuff here!
Wrighty*/
for(i=0; i<get('td','tag').length;i++){
if(get('td','tag')[i].innerHTML.match(/ :: /) && get('td','tag')[i].className.match(/title(1|2)/)){
get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/ :: /g,' ');
}
}
</script>
You had a quote instead of an apostrophe in one spot, but I decided to rewrite the code, why is mine wrong?![]()
You aren't removing them all, it's longer and also contains a variable. Mine is better and works!![]()
You aren't removing them all, it's longer and also contains a variable. Mine is better and works!![]()
It contains a variable because the get() function doesn't cache, thus every time you use get(), you're recreating the array of the hundred-and-something td's on the page; thus a variable is much more efficient.![]()
Lol code battle going onAnyway thanks for the code. It worked. XD
Yey!
I win!