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>
Thanks Wrighty
No problem!
Very Nice
shows up when not logged in, doesnt show when logged in
Link: www.bailey.vforums.co.uk
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>
change the www. to html:// see if that changes it.
Pretty sure you mean http:// ?
I switched it to that and it worked Thanks
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
Preview: http://wimg.co.uk/BDvtKF.gif