vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Website

[F] Website - Posted By BizzD (0wnzer) on 31st Dec 07 at 5:26pm
I think admins could have that on their forum and put a website there that the site is based on,a sister site or just some site the admin created and wants to advertise. If you could may you make a code like that?

Thanks,
0wNzEr

Re: Website - Posted By Michael (wrighty) on 31st Dec 07 at 5:30pm
This will add a website (or other) button to the right hand side of the menu. Very similar to the current one here at vFS

Global Header

Code:
 
  1. <script>
  2. /*Add website link to menu - support.virtualforums.co.uk*/
  3.  
  4. var image = "http://virtualforums.co.uk/images/homepage/website.gif"; //Image to Show
  5. var link = "http://support.virtualforums.co.uk"; //Website Link
  6.  
  7. //DO NOT EDIT BELOW HERE!
  8. var m = document.getElementById('welcome_table').getElementsByTagName('td').item(2);
  9. m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link+"'><img src='"+image+"'></a></div>";
  10. </script>