
Code:
- <script>
-
- function GuildListing(Page){
-
- GuildPages = Math.ceil((GuildList.length + 1)/10);
-
- var GuildStart = (GuildPage * 10) - 10
- var GuildEnd = GuildStart + 10
-
- var Guildpost = '<table class="border" width="100%">\n<tr height="20">\n<td class="title1" colspan="2">Guild List - Page ' + Page + '</td>\n</tr>\n';
-
- for(i=GuildStart;i<=GuildEnd;i++){
-
- if(i%2 == 0){
-
- GuildPost += '<tr height="30">\n';
-
- }
-
- if(GuildList[i]){
-
- GuildPost += '<td class="window1" width="50%">' + GuildList[i][0] + '</td>\n';
-
- } else {
-
- GuildPost += '<td class="window2" width="50%"> </td>\n';
-
- }
-
- if(i%2 == 1){
-
- GuildPost += '</tr>\n';
-
- }
-
- }
-
- GuildPost += '<tr height="20">\n<td class="title2" colspan="2">Close Window</td>\n</tr>\n</table>\n';
-
- return GuildPost;
-
- }
-
- </script>
-