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>
I'm sorry but what if you wan't it to be text instead of an image?
I'll code one up in a minute!![]()
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>
![]()
Thank-you much!
Thank-you much!
No problem.![]()
Thanks Marc!![]()
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/
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>
THANKS =]
No problem!![]()
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?
http://support.virtualforums.co.uk/board/codesubmit/topic/22 38/action/view_topic/page/1/ad d-website-link-to-right-of-men u/
ok heres another one, can you get it so that guests can't see it only logged in members?
Go to the requests board please!![]()