vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Website - View Topic
Topic Rating: *****
Printable View
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


pm
[F] Website (31st Dec 07 at 5:26pm UTC)
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
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Website (31st Dec 07 at 5:30pm UTC)
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>
 
 Printable View

All times are GMT+0 :: The current time is 9:30am
Page generated in 0.477 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums