Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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: - <script>
- /*Add website link to menu - support.virtualforums.co.uk*/
-
- var image = "http://virtualforums.co.uk/images/homepage/website.gif"; //Image to Show
- var link = "http://support.virtualforums.co.uk"; //Website Link
-
- //DO NOT EDIT BELOW HERE!
- var m = document.getElementById('welcome_table').getElementsByTagName('td').item(2);
- m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link+"'><img src='"+image+"'></a></div>";
- </script>
| |
|
BizzD Full Member
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | Re: Add Website Link to Right of Menu (31st Dec 07 at 5:41pm UTC) | | Thanks Wrighty | |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Add Website Link to Right of Menu (31st Dec 07 at 5:42pm UTC) | | No problem! | |
|
Entold Junior Member
[]D [] []\/[] []D Posts: 134 Status: Offline Gender: Male Location: New York Joined:
pmwwwmsnaim | |
Alex Bailey Senior Member
Posts: 503 Status: Offline Gender: Male Location: Uk Age: 32 Joined:
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: 30 Joined:
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: - <script>
- /*Add website link to menu - support.virtualforums.co.uk*/
-
- var image = "http://virtualforums.co.uk/images/homepage/website.gif"; //Image to Show
- var link = "www.thegamerspark.com"; //Website Link
-
- //DO NOT EDIT BELOW HERE!
- var m = document.getElementById('welcome_table').getElementsByTagName('td').item(2);
- m.innerHTML = "<div style='float:left'>"+m.innerHTML+"</div><div style='float: right'><a href='"+link+"'><img src='"+image+"'></a></div>";
- </script>
| |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
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: 30 Joined:
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 Thanks | |
|
Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
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 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 slashes are adding them selves into stuff
| |
|
ashkir Full Member
Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 35 Joined:
pmskypemsnyahoo | |