Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Add Menu Buttons (30th Dec 07 at 3:05am UTC) | | Global Header
Adds as many menu buttons as you want...
just repeat: do_menu('Image Link','Link to page');
 Code: - <script>
- /*Add Menu Buttons
- Created By Wrighty
- support.virtualforums.co.uk*/
-
- var menu = get('menu_buttons','id').getElementsByTagName('font')[0];
-
- function do_menu(img_src,link){
- menu.innerHTML+= " :: <a href="+link+"><img src='"+img_src+"' border=0></a>";
- }
-
- do_menu('Image Link','Link to page');
- </script>
| |
|
Jake Junior Member
 
<(o.O<) (>O.o)> Posts: 127 Status: Offline Gender: Male Location: United States Joined:
pmwwwmsn | Re: Add Menu Buttons (16th Feb 08 at 3:10pm UTC) | | I'm sorry but what if you wan't it to be text instead of an image? | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Add Menu Buttons (16th Feb 08 at 4:00pm UTC) | | I'll code one up in a minute! | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Add Menu Buttons (16th Feb 08 at 4:12pm UTC) | |  Code: - <script>
- /*Add Menu Buttons
- Created By Wrighty
- support.virtualforums.co.uk*/
-
- var menu = document.getElementById('welcome_table').getElementsByTagName('td')[2];
-
- function do_menu(a_text,link){
- menu.innerHTML+= " :: <a href="+link+">"+a_text+"</a>";
- }
-
- do_menu('Text To Display','Link to page');
- </script>
| |
rroll.to— Shorten a link, rickroll your friends. |
|
Jake Junior Member
 
<(o.O<) (>O.o)> Posts: 127 Status: Offline Gender: Male Location: United States Joined:
pmwwwmsn | Re: Add Menu Buttons (17th Feb 08 at 4:09pm UTC) | | Thank-you much! | |
|
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Add Menu Buttons (17th Feb 08 at 4:15pm UTC) | |
No problem. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Add Menu Buttons (17th Feb 08 at 4:20pm UTC) | | Thanks Marc! | |
|
Jake Junior Member
 
<(o.O<) (>O.o)> Posts: 127 Status: Offline Gender: Male Location: United States Joined:
pmwwwmsn | Re: Add Menu Buttons (17th Feb 08 at 4:27pm UTC) | | Hey, is there any way to make the text the same as the links on the nav bar.. (like on my site, the "Website" text is a bit smaller than the other links, I don't think this is considered advertising, but it's http://gfx.vforums.co.uk/ | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Add Menu Buttons (17th Feb 08 at 4:43pm UTC) | |  Code: - <script>
- /*Add Menu Buttons
- Created By Wrighty
- support.virtualforums.co.uk*/
-
- var menu = document.getElementById('menu_buttons').getElementsByTagName('font')[0];
-
- function do_menu(a_text,link){
- menu.innerHTML+= " :: <a href="+link+">"+a_text+"</a>";
- }
-
- do_menu('Text To Display','Link to page');
- </script>
| |
|
Jake Junior Member
 
<(o.O<) (>O.o)> Posts: 127 Status: Offline Gender: Male Location: United States Joined:
pmwwwmsn | Re: Add Menu Buttons (17th Feb 08 at 4:48pm UTC) | | THANKS =] | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Add Menu Buttons (17th Feb 08 at 4:48pm UTC) | | No problem! | |
|
dog199200 Guest | Re: Add Menu Buttons (18th Feb 08 at 3:11am UTC) | | just wondering is there a way to get it so that the button is on the right side of the page and the normal buttons are on the left, like on here? | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | |
dog199200 Guest | Re: Add Menu Buttons (24th Feb 08 at 9:14am UTC) | | ok heres another one, can you get it so that guests can't see it only logged in members? | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Add Menu Buttons (24th Feb 08 at 12:10pm UTC) | | Go to the requests board please! | |
|