Title: Submenu Link Code
Description: add links right below the "home" banner!
timaeus222 - January 28, 2008 07:18 PM (GMT)
Timaeus's Submenu Code
| QUOTE (Submenu Code) |
<script> var atitle = "prev"; var arcadeurl = "URL"; if (location.href.indexOf("act=Arcade") != -1) { document.write('<script src="http://www.xgbarcade.com/Arcade/proxgb/arcade.js" type="text/JavaScript"><\/script>'); } else { td = document.getElementsByTagName('td'); for (i=0;i<td.length;i++) { if (td[i].align=="right" && td[i].innerHTML.match("Search") && td[i].innerHTML.match("Calendar") ) { link = '<img src="IMG URL" /> <a href="' + arcadeurl + '">Link Name</a> ' td[i].innerHTML = link + " " + td[i].innerHTML; }}} </script>
|
If you want to add a submenu link, use this code in the "Headers and Body" box in "Board Wrappers", under "<%BOARD HEADER%>". The links appear to the left of the "Help", "Search", "Members", and "Calendar" links, which can lead anywhere! :D
URL = The Link Destination
IMG URL = URL of image next to link
Link Name = The name of the link. :p
You can add all kinds of stuff this way. If you want more than one, as you add more of these code chunks above each other, they line up in order of first on the bottom is on the farthest right and so on. :D
Preview Code
Megacherv - January 28, 2008 08:16 PM (GMT)
[offtopic]Your zenny system is very well thought out, although you should change a few things:-
1. We can get the Timaeus Patch here for free
2. We can get sigs, sprites and avatars on here for free
(Those 2 I'm not bothered about, this next one is great)
3. Z1000 for Z400, people will repeatedly do that, getting a Z600 profit each time
[/offtopic]
Can somebody eventually move that to his advert topic please? Which bit are we lookng at here? Is it the shop menu?
mega rock.exe - January 29, 2008 01:24 AM (GMT)
This is interesting. It might be considered.
timaeus222 - January 29, 2008 09:50 PM (GMT)
@Megacherv: It's a code that adds links next to the Help, Search, Members, and Calendar links right below the Home Page Banner.
@megarock: okay, thanks. I think it would be a great addition to TREZ, and a convenient way to navigate. :)
Kingofkingz750 - January 30, 2008 10:25 PM (GMT)
Not a code you ripped it from an arcade code >_>...
| QUOTE |
if (location.href.indexOf("act=Arcade") != -1) { document.write('<script src="http://www.xgbarcade.com/Arcade/proxgb/arcade.js" type="text/JavaScript"><\/script>'); }
|
Nice code editing skillz though, great job on that part
timaeus222 - January 30, 2008 11:33 PM (GMT)
thanks. Yeah, I used that, so what. :p It's a good idea. :D
Kingofkingz750 - January 30, 2008 11:37 PM (GMT)
Well thats all I can do too, scrath coding looks so hard!! but timaus I suggest you join www.phantom-designs.net they'll help you learn to code + you can make code requests
timaeus222 - January 31, 2008 03:05 AM (GMT)
I edited the directions; they were wrong on where to put the code, sorry... >_<