Oliver
Junior Member
Posts: 264
inherit
37155
0
Aug 21, 2005 13:04:18 GMT -8
Oliver
264
February 2005
cloughhall
|
Post by Oliver on Jun 19, 2005 11:32:16 GMT -8
Hi can somebody please create me a code that will remove the "Help" "Members" and "Search" buttons from the menu bar?
Thankyou in advance.
Best Wishes Oliver
|
|
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 Jun 19, 2005 12:31:46 GMT -8
Give this a try in the Global Header <script type="text/javascript"> var a=document.getElementsByTagName("a"); for(c = 0; c < a.length; c ++){ if(a[c].href.match(/(help|action=(members|search))/)){ a[c].innerHTML=''; }} </script>
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 15:14:47 GMT -8
Just use transparent images. Much better then using a code
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jun 19, 2005 22:33:40 GMT -8
If you are going to use a code, always use style.display="none" instead of innerHTML='' .
|
|
inherit
48148
0
Jan 2, 2006 18:12:02 GMT -8
deemonstar
NON MIDGET
34
June 2005
deemonstar
|
Post by deemonstar on Jun 22, 2005 23:29:53 GMT -8
Give this a try in the Global Header <script type="text/javascript"> var a=document.getElementsByTagName("a"); for(c = 0; c < a.length; c ++){ if(a[c].href.match(/(help|action=(members|search))/)){ a[c].innerHTML=''; }} </script> How would you modify that code so that only 'Help' vanishes?
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Jun 22, 2005 23:39:50 GMT -8
Well I personally agree with Peter, but it would be this:
if(a[c].href.indexOf('help.proboards.com') != -1){ a[c].style.display="none";
instead of
if(a[c].href.match(/(help|action=(members|search))/)){ a[c].innerHTML='';
|
|