vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Add Website Link to Right of Menu - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Add Website Link to Right of Menu (31st Dec 07 at 5:33pm 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>
 
BizzD
Full Member
***

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


pm
Re: Add Website Link to Right of Menu (31st Dec 07 at 5:41pm UTC)
Thanks Wrighty {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Add Website Link to Right of Menu (31st Dec 07 at 5:42pm UTC)
No problem! {Smile}
Entold
Junior Member
**

[Avatar]
[]D [] []\/[] []D

Posts: 134
Status: Offline
Gender: Male
Location: New York
Joined:  
Reputation: 0%  


pmwwwmsnaim
Re: Add Website Link to Right of Menu (25th Apr 08 at 1:07am UTC)
Very Nice

http://img296.imageshack.us/img296/6647/signatureforvforumsfe0.png[/img]
Alex Bailey
Senior Member
****

Posts: 503
Status: Offline
Gender: Male
Location: Uk
Age: 32
Joined:  
Reputation: 8%  


pmmsnaim
Re: Add Website Link to Right of Menu (18th Jul 08 at 9:27pm UTC)
shows up when not logged in, doesnt show when logged in

Link: www.bailey.vforums.co.uk

ting-tong2k6@hotmail.com
RuhRoe
Full Member
***

Posts: 218
Status: Offline
Gender: Male
Age: 29
Joined:  
Reputation: 5%  


pmxfire
Re: Add Website Link to Right of Menu (2nd Nov 08 at 8:47pm UTC)
Can someone help? http://gamerspark.vforums.co.uk/

It shows up on the right but when I click it it just goes to the same place. I hover over it and the link goes to http://gamerspark.vforums.co.uk/www.thegamerspark.com

Anything I'm doing wrong?

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 = "www.thegamerspark.com"; //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>
 
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 33
Joined:  
Reputation: 62%  


pmwww
Re: Add Website Link to Right of Menu (2nd Nov 08 at 9:19pm UTC)
change the www. to html:// see if that changes it.
RuhRoe
Full Member
***

Posts: 218
Status: Offline
Gender: Male
Age: 29
Joined:  
Reputation: 5%  


pmxfire
Re: Add Website Link to Right of Menu (3rd Nov 08 at 1:37am UTC)
Pretty sure you mean http:// ?

I switched it to that and it worked {Grin} Thanks
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 33
Joined:  
Reputation: 62%  


pmwww
Re: Add Website Link to Right of Menu (3rd Nov 08 at 1:44am UTC)
 
Pretty sure you mean http:// ?

I switched it to that and it worked {Grin} Thanks


Yep I did. XD to much HTML running through my brain at the time, still is. I was even thinking about it at the staff meeting at my place of work.

I knew it had to be http:// that's the most common thing now, I hardly ever see www. unless its http://www.

edit:
Whoa {Shocked} slashes are adding them selves into stuff
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 34
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Add Website Link to Right of Menu (17th May 09 at 7:49pm UTC)
Preview: http://wimg.co.uk/BDvtKF.gif
 Printable View

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