Jump to content

Need help looking at code


ScribeOfAges

Recommended Posts

I really don't know JavaScript (I am guessing this code is JS simply because it uses the <script> tags).

I was allowed to use this some time back and I have been inserting my info and deleting what I don't need. However in the midst of all that, it stopped working.

 

The page is located here: http://itcg.maplestorygameguide.com/subtypes.html

 

What I was wondering if someone could take a look at the code and advise me to why it is not working anymore or assist me in getting it working again I would be very grateful. As I said I really don't know JS, just trying to pick up whaty I can while I play with various codes.

 

Thanks.

Link to comment
Share on other sites

Well, there are three boxes and words/links are suppose to be in all three. When you click on a word in the first box, then it populates the 2nd box with the correctly tied links and then when you click a word in the 2nd box, then it populates the 3rd box with the correctly tied links and from there you click "go" to display the correct web page. I hope that made sense, anyway, it is not displaying any of the words/links in any of the boxes.

 

Code (a lot):

 

<html>

<body>

 

 

<form name=lists>

<table cellspacing=0 border=0 width="100%">

        <tr>

        <td NOWRAP width="33%"> <font face="verdana,geneva, arial, sans-serif"><b>Card Type</b></font></td>

 

                <td width="33%"> <b><font face="verdana,geneva, arial, sans-serif">Card Class/Letter</font></b></td>

 

              <td width="33%"> <b><font face="verdana,geneva, arial, sans-serif">Card Subtype</font></b></td>

          </tr>

        <tr>

 

                <td width="33%">

              <select name=majCats size=5>

                  <option>Loading...

  <option>                              

              </select>

              <br>

 

 

            <input type="Button" value="Go" onClick="if (this.form.majCats.selectedIndex>-1) goTo('' + this.form.majCats[this.form.majCats.selectedIndex].value)" name="Button">

            </td>

 

            <td NOWRAP width="33%">

              <select name=minCats size=5>

                <option>                                                            

              </select>

              <br>

              <input type="Button" value="Go" onClick="if (this.form.minCats.selectedIndex>-1) goTo('' + this.form.minCats[this.form.minCats.selectedIndex].value)" name="Button">

            </td>

 

            <td NOWRAP width="33%">

              <select name=artList size=5>

                <option>                                                                                                    

              </select>

              <br>

              <input type="Button" value="Go" onClick="if (this.form.artList.selectedIndex>-1) goTo(this.form.artList[this.form.artList.selectedIndex].value)" name="Button">

            </td>

          </tr>

        </table>

 

      </form>

 

<script>

 

 

function goTo(src) {

  window.location = src

}

 

function Spaces(size) {

var str = ""

for (;size>0;size--)

str+=" "

return str

}

 

function BlankSpace(el, size) {

var newItem = new Option

newItem.text = Spaces(size)

el[0] = newItem

}

 

function ClearList(el, end) {

var cnt = el.options.length

for (var i = cnt-1; i>=end; i--) el.options = null

el.selectedIndex = -1

if ((el.options.length==0) && (arguments[2])) BlankSpace(el,arguments[2])

}

 

var selA = document.forms.lists.artList

 

function Init() {

 

ClearList(document.forms.lists.majCats,0,25)

ClearList(document.forms.lists.minCats,0,35)

ClearList(selA,0,100)

}

 

Init()

 

 

window.onunload = Init

 

function OptionList_AddItem(itemName, itemValue, itemChild) {

var newItem = new Object

newItem.value = itemValue

newItem.text = itemName

newItem.child = itemChild

this.items[this.items.length] = newItem   

}

 

function OptionList_Change() {

var el = this.options[this.selectedIndex]

if (el.child) el.child.Populate()     

}

 

function OptionList_Populate() {

var ct=0

if (this.items.length==0) {

BlankSpace(this.src, this.size)

ct++

}

else {

ct=this.items.length

for (var i = 0; i < ct; i++) {

  var newItem = new Option

  newItem.value = this.items.value

 

  newItem.text = this.items.text

 

  newItem.child = this.items.child

 

  this.src.options = newItem

 

}

}

ClearList(this.src.options, ct)

}

 

function oL(src,size) {

src.OptionList = this

 

this.src = src

 

this.size = size

 

this.src.onchange = OptionList_Change

 

this.AI = OptionList_AddItem   

this.items = new Array

this.Populate = OptionList_Populate

 

}

 

function AccessList_Populate() {

var ct=0

 

if (this.list=="") {

BlankSpace(this.src, this.size)

ct++

}

else {

if (this.indices.length==0) this.indices = this.list.split(",")

 

ct = this.indices.length

 

for (var i=0; i<ct; i++) {

  var newItem = new Option

  newItem.text = this.items[this.indices][0]

 

  newItem.value = this.items[this.indices][1]

 

  newItem.child = this.items[this.indices][2]

 

  this.src.options = newItem

 

}

}

ClearList(this.src.options, ct)

}

 

function AL(list) {

this.src = selA

 

this.src.onchange = OptionList_Change

 

this.src.OptionList = this

 

this.items = oA

 

this.size = 100

 

this.list = list

 

this.indices = new Array

this.Populate = AccessList_Populate

 

}

</script>

 

      <p> </p>

 

      <script>

 

//place in-document text in line above "SCRIPT" that you wish placed after the box dropdown.

 

//Define Types of Cards

 

var masterList=new oL(document.forms.lists.majCats,25)

var oA=new Array()

var Boss=new oL(document.forms.lists.minCats,35)

var Character=new oL(document.forms.lists.minCats,35)

var Item=new oL(document.forms.lists.minCats,35)

var Monster=new oL(document.forms.lists.minCats,35)

var Tactic=new oL(document.forms.lists.minCats,35)

 

//Third level arrays (Cards)

 

//Boss Cards

 

//Bowman

oA[1]=new Array("Boss","cards/boss/bowmanboss.htm")

oA[2]=new Array("NPC Boss","cards/boss/bowmannpc.htm")

 

//Magician

oA[3]=new Array("Boss","cards/boss/magicianboss.htm")

oA[4]=new Array("NPC Boss","cards/boss/magiciannpc.htm")

 

//Thief

oA[5]=new Array("Boss","cards/boss/thiefboss.htm")

oA[6]=new Array("NPC Boss","cards/boss/thiefnpc.htm")

 

//Warrior

oA[7]=new Array("Boss","cards/boss/warriorboss.htm")

oA[8]=new Array("NPC Boss","cards/boss/warriornpc.htm")

 

 

 

//Character Cards

 

//Bowman

oA[9]=new Array("Archer","cards/character/archer.htm")

oA[10]=new Array("Crossbowman","cards/character/crossbowman.htm")

oA[11]=new Array("Hunter","cards/character/hunter.htm")

oA[12]=new Array("Ranger","cards/character/ranger.htm")

 

//Magician

oA[13]=new Array("Fire/Poison Mage","cards/character/fpmage.htm")

oA[14]=new Array("Ice/Lightning Mage","cards/character/ilmage.htm")

oA[15]=new Array("Magician","cards/character/magician.htm")

 

//Thief

oA[16]=new Array("Assassin","cards/character/assassin.htm")

oA[17]=new Array("Hermit","cards/character/hermit.htm")

oA[18]=new Array("Rogue","cards/character/rogue.htm")

 

//Warrior

oA[19]=new Array("Fighter","cards/character/fighter.htm")

oA[20]=new Array("Knight","cards/character/knight.htm")

oA[21]=new Array("Page","cards/character/page.htm")

oA[22]=new Array("Spearman","cards/character/spearman.htm")

oA[23]=new Array("Swordsman","cards/character/swordsman.htm")

 

 

 

//Item Cards

 

//A - E

oA[24]=new Array("Armor","cards/item/armor.htm")

oA[25]=new Array("Balrog","cards/item/balrog.htm")

oA[26]=new Array("Bear","cards/item/bear.htm")

oA[27]=new Array("Beast","cards/item/beast.htm")

oA[28]=new Array("Boar Mount","cards/item/boarmount.htm")

oA[29]=new Array("Chair","cards/item/chair.htm")

oA[30]=new Array("Dog","cards/item/dog.htm")

oA[31]=new Array("Dragon","cards/item/dragon.htm")

 

//f - J

oA[32]=new Array("Food","cards/item/food.htm")

oA[33]=new Array("Jewelry","cards/item/jewelry.htm")

 

//K - O

oA[34]=new Array("Kitty","cards/item/kitty.htm")

oA[35]=new Array("Minigame","cards/item/minigame.htm")

 

//P - T

oA[36]=new Array("Pet","cards/item/pet.htm")

oA[37]=new Array("Porcupine","cards/item/porcupine.htm")

oA[38]=new Array("Potion","cards/item/potion.htm")

oA[39]=new Array("Rabbit","cards/item/rabbit.htm")

oA[40]=new Array("Robot","cards/item/robot.htm")

oA[41]=new Array("Shield","cards/item/shield.htm")

oA[42]=new Array("Spook","cards/item/spook.htm")

oA[43]=new Array("Staff","cards/item/staff.htm")

oA[44]=new Array("Treasure","cards/item/treasure.htm")

 

//U - Z

oA[45]=new Array("Undead","cards/item/undead.htm")

oA[46]=new Array("Wand","cards/item/wand.htm")

oA[47]=new Array("Weapon","cards/item/weapon.htm")

 

 

 

//Monster Cards

 

//A - E

oA[48]=new Array("Alien","cards/monster/alien.htm")

oA[49]=new Array("Bat","cards/monster/bat.htm")

oA[50]=new Array("Bear","cards/monster/bear.htm")

oA[51]=new Array("Beast","cards/monster/beast.htm")

oA[52]=new Array("Bird","cards/monster/bird.htm")

oA[53]=new Array("Boar","cards/monster/boar.htm")

oA[54]=new Array("Bomb","cards/monster/bomb.htm")

oA[55]=new Array("Bull","cards/monster/bull.htm")

oA[56]=new Array("Clown","cards/monster/clown.htm")

oA[57]=new Array("Crab","cards/monster/crab.htm")

oA[58]=new Array("Dark","cards/monster/dark.htm")

oA[59]=new Array("Dog","cards/monster/dog.htm")

oA[60]=new Array("Dragon","cards/monster/dragon.htm")

oA[61]=new Array("Dummy","cards/monster/dummy.htm")

oA[62]=new Array("Dwarf","cards/monster/dwarf.htm")

oA[63]=new Array("Elephant","cards/monster/elephant.htm")

 

//F - J

oA[64]=new Array("Fairy","cards/monster/fairy.htm")

oA[65]=new Array("Fire","cards/monster/fire.htm")

oA[66]=new Array("Fish","cards/monster/fish.htm")

oA[67]=new Array("Flora","cards/monster/flora.htm")

oA[68]=new Array("Flying","cards/monster/flying.htm")

oA[69]=new Array("Goo","cards/monster/goo.htm")

oA[70]=new Array("Guardian","cards/monster/guardian.htm")

oA[71]=new Array("Human","cards/monster/human.htm")

oA[72]=new Array("Ice","cards/monster/ice.htm")

oA[73]=new Array("Jar","cards/monster/jar.htm")

 

//K - O

oA[74]=new Array("King","cards/monster/king.htm")

oA[75]=new Array("Kitty","cards/monster/kitty.htm")

oA[76]=new Array("Mechanical","cards/monster/mechanical.htm")

oA[77]=new Array("Monkey","cards/monster/monkey.htm")

oA[78]=new Array("Mushroom","cards/monster/mushroom.htm")

oA[79]=new Array("NPC","cards/monster/npc.htm")

 

//P - T

oA[80]=new Array("Pest","cards/monster/pest.htm")

oA[81]=new Array("Rabbit","cards/monster/rabbit.htm")

oA[82]=new Array("Reptile","cards/monster/reptile.htm")

oA[83]=new Array("Sand","cards/monster/sand.htm")

oA[84]=new Array("Scoundrel","cards/monster/scoundrel.htm")

oA[85]=new Array("Shrimp","cards/monster/shrimp.htm")

oA[86]=new Array("Soldier","cards/monster/soldier.htm")

oA[87]=new Array("Spook","cards/monster/spook.htm")

oA[88]=new Array("Summoned","cards/monster/summoned.htm")

oA[89]=new Array("Time","cards/monster/time.htm")

oA[90]=new Array("Toy","cards/monster/toy.htm")

oA[91]=new Array("Troll","cards/monster/troll.htm")

oA[92]=new Array("Turtle","cards/monster/turtle.htm")

 

//U - Z

oA[93]=new Array("Undead","cards/monster/undead.htm")

oA[94]=new Array("Water","cards/monster/water.htm")

oA[95]=new Array("Wolf","cards/monster/wolf.htm")

oA[96]=new Array("Worm","cards/monster/worm.htm")

 

 

 

//Tactic Cards

 

//Bowman

oA[97]=new Array("Skill","cards/tactic/boskill.htm")

oA[98]=new Array("Strategy","cards/tactic/bostrategy.htm")

 

//Magician

oA[99]=new Array("Skill","cards/tactic/maskill.htm")

oA[100]=new Array("Strategy","cards/tactic/mastrategy.htm")

 

//Thief

oA[101]=new Array("Skill","cards/tactic/thskill.htm")

oA[102]=new Array("Strategy","cards/tactic/thstrategy.htm")

 

//Warrior

oA[103]=new Array("Skill","cards/tactic/waskill.htm")

oA[104]=new Array("Strategy","cards/tactic/wastrategy.htm")

 

 

 

//Assigns Subtypes (third level) arrays to Second level link

 

//var c1, c2, c3, c4 are designated for boss cards

var c1=new AL("1,2")

var c2=new AL("3,4")

var c3=new AL("5,6")

var c4=new AL("7,8")

 

//var c5, c6, c7, c8 are designated for character cards

var c5=new AL("9,10,11,12")

var c6=new AL("13,14,15")

var c7=new AL("16,17,18")

var c8=new AL("19,20,21,22,23")

 

// var c9, c10, c11, c12, c13 are designated for item cards

var c9=new AL("24,25,26,27,28,29,30,31")

var c10=new AL("32,33")

var c11=new AL("34,35")

var c12=new AL("36,37,38,39,40,41,42,43,44")

var c13=new AL("45,46,47")

 

//var c14, c15, c16, c17, c18 are designated for monster cards

var c14=new AL("48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63")

var c15=new AL("64,65,66,67,68,69,70,71,72,73")

var c16=new AL("74,75,76,77,78,79")

var c17=new AL("80,81,82,83,84,85,86,87,88,89,90,91,92")

var c18=new AL("93,94,95,96")

 

//var c19, c20, c21, c22 are designated for tactic cards

var c19=new AL("97,98")

var c20=new AL("99,100")

var c21=new AL("101,102")

var c22=new AL("103,104")

 

 

masterList.AI("Boss","cards/boss/bossindex.htm",Boss)

masterList.AI("Character","cards/character/characterindex.htm",Character)

masterList.AI("Item","cards/item/itemindex.htm",Item)

masterList.AI("Monster","requirements/nature/natureallindex.htm",Nature)

masterList.AI("Tactic","requirements/outdoor/outdoorallindex.htm",Outdoor)

 

Boss.AI("Bowman","cards/boss/bowmanindex.htm",c1)

Boss.AI("Magician","cards/boss/magicianindex.htm",c2)

Boss.AI("Thief","cards/boss/thiefindex.htm",c3)

Boss.AI("Warrior","cards/boss/warriorindex.htm",c4)

 

Character.AI("Bowman","cards/character/bowmanindex.htm",c5)

Character.AI("Magician","cards/character/magicianindex.htm",c6)

Character.AI("Thief","cards/character/thiefindex.htm",c7)

Character.AI("Warrior","cards/character/warriorindex.htm",c8)

 

Item.AI("A - E","cards/item/aeindex.htm",c9)

Item.AI("F - J","cards/item/fjindex.htm",c10)

Item.AI("K - O","cards/item/koindex.htm",c11)

Item.AI("P - T","cards/item/ptindex.htm",c12)

Item.AI("U - Z","cards/item/uzindex.htm",c13)

 

Monster.AI("A - E","cards/monster/aeindex.htm",c14)

Monster.AI("F - J","cards/monster/fjindex.htm",c15)

Monster.AI("K - O","cards/monster/koindex.htm",c16)

Monster.AI("P - T","cards/monster/ptindex.htm",c17)

Monster.AI("U - Z","cards/monster/uzindex.htm",c18)

 

Tactic.AI("Bowman","cards/tactic/bowmanindex.htm",c19)

Tactic.AI("Magician","cards/tactic/magicianindex.htm",c20)

Tactic.AI("Thief","cards/tactic/thiefindex.htm",c21)

Tactic.AI("Warrior","cards/tactic/warriorindex.htm",c22)

 

masterList.Populate()

 

</script>

 

</body>

</html>

Link to comment
Share on other sites

Ok well I am going to sound stupid here, but I can't find the edit button.

 

P.S. Disregard that, I found it as modify, but I don't have a modify button for that post, so I guess I will just repost it.

 

<html>
<body>


<form name=lists>
<table cellspacing=0 border=0 width="100%">
        <tr> 
        		<td NOWRAP width="33%"> <font face="verdana,geneva, arial, sans-serif"><b>Card Type</b></font></td>

                <td width="33%"> <b><font face="verdana,geneva, arial, sans-serif">Card Class/Letter</font></b></td>

       	        <td width="33%"> <b><font face="verdana,geneva, arial, sans-serif">Card Subtype</font></b></td>
          	</tr>
	        <tr> 

                <td width="33%"> 
            		  <select name=majCats size=5>
                	  <option>Loading... 
		  <option>                               
              </select>
              <br>


             <input type="Button" value="Go" onClick="if (this.form.majCats.selectedIndex>-1) goTo('' + this.form.majCats[this.form.majCats.selectedIndex].value)" name="Button">
            </td>

            <td NOWRAP width="33%"> 
              <select name=minCats size=5>
                <option>                                                             
              </select>
              <br>
              <input type="Button" value="Go" onClick="if (this.form.minCats.selectedIndex>-1) goTo('' + this.form.minCats[this.form.minCats.selectedIndex].value)" name="Button">
            </td>

            <td NOWRAP width="33%">
              <select name=artList size=5>
                <option>                                                                                                     
              </select>
              <br>
              <input type="Button" value="Go" onClick="if (this.form.artList.selectedIndex>-1) goTo(this.form.artList[this.form.artList.selectedIndex].value)" name="Button">
            </td>
          </tr>
        </table>

      </form>

<script>


function goTo(src) {
  window.location = src
}

function Spaces(size) {
var str = ""
for (;size>0;size--)
str+=" "
return str
}

function BlankSpace(el, size) {
var newItem = new Option
newItem.text = Spaces(size)
el[0] = newItem 
}

function ClearList(el, end) {
var cnt = el.options.length
for (var i = cnt-1; i>=end; i--) el.options[i] = null
el.selectedIndex = -1
if ((el.options.length==0) && (arguments[2])) BlankSpace(el,arguments[2])
}

var selA = document.forms.lists.artList

function Init() {

ClearList(document.forms.lists.majCats,0,25)
ClearList(document.forms.lists.minCats,0,35)
ClearList(selA,0,100)
}

Init()


window.onunload = Init

function OptionList_AddItem(itemName, itemValue, itemChild) {
var newItem = new Object
newItem.value = itemValue
newItem.text = itemName
newItem.child = itemChild
this.items[this.items.length] = newItem    
}

function OptionList_Change() {
var el = this.options[this.selectedIndex]
if (el.child) el.child.Populate()      
}

function OptionList_Populate() {
var ct=0
if (this.items.length==0) {
BlankSpace(this.src, this.size)
ct++
}
else {
ct=this.items.length
for (var i = 0; i < ct; i++) {
  var newItem = new Option
  newItem.value = this.items[i].value

  newItem.text = this.items[i].text

  newItem.child = this.items[i].child

  this.src.options[i] = newItem

}
}
ClearList(this.src.options, ct)
}

function oL(src,size) {
src.OptionList = this

this.src = src

this.size = size

this.src.onchange = OptionList_Change

this.AI = OptionList_AddItem    
this.items = new Array
this.Populate = OptionList_Populate

}

function AccessList_Populate() {
var ct=0

if (this.list=="") {
BlankSpace(this.src, this.size)
ct++
}
else {
if (this.indices.length==0) this.indices = this.list.split(",")

ct = this.indices.length

for (var i=0; i<ct; i++) {
  var newItem = new Option
  newItem.text = this.items[this.indices[i]][0]

  newItem.value = this.items[this.indices[i]][1]

  newItem.child = this.items[this.indices[i]][2]

  this.src.options[i] = newItem

}
}
ClearList(this.src.options, ct)
}

function AL(list) {
this.src = selA

this.src.onchange = OptionList_Change

this.src.OptionList = this

this.items = oA

this.size = 100

this.list = list

this.indices = new Array
this.Populate = AccessList_Populate

}
</script>

      <p> </p>

      <script>

//place in-document text in line above "SCRIPT" that you wish placed after the box dropdown.

//Define Types of Cards

var masterList=new oL(document.forms.lists.majCats,25)
var oA=new Array()
var Boss=new oL(document.forms.lists.minCats,35)
var Character=new oL(document.forms.lists.minCats,35)
var Item=new oL(document.forms.lists.minCats,35)
var Monster=new oL(document.forms.lists.minCats,35)
var Tactic=new oL(document.forms.lists.minCats,35)

//Third level arrays (Cards)

//Boss Cards

//Bowman
oA[1]=new Array("Boss","cards/boss/bowmanboss.htm")
oA[2]=new Array("NPC Boss","cards/boss/bowmannpc.htm")

//Magician
oA[3]=new Array("Boss","cards/boss/magicianboss.htm")
oA[4]=new Array("NPC Boss","cards/boss/magiciannpc.htm")

//Thief
oA[5]=new Array("Boss","cards/boss/thiefboss.htm")
oA[6]=new Array("NPC Boss","cards/boss/thiefnpc.htm")

//Warrior
oA[7]=new Array("Boss","cards/boss/warriorboss.htm")
oA[8]=new Array("NPC Boss","cards/boss/warriornpc.htm")



//Character Cards

//Bowman
oA[9]=new Array("Archer","cards/character/archer.htm")
oA[10]=new Array("Crossbowman","cards/character/crossbowman.htm")
oA[11]=new Array("Hunter","cards/character/hunter.htm")
oA[12]=new Array("Ranger","cards/character/ranger.htm")

//Magician
oA[13]=new Array("Fire/Poison Mage","cards/character/fpmage.htm")
oA[14]=new Array("Ice/Lightning Mage","cards/character/ilmage.htm")
oA[15]=new Array("Magician","cards/character/magician.htm")

//Thief
oA[16]=new Array("Assassin","cards/character/assassin.htm")
oA[17]=new Array("Hermit","cards/character/hermit.htm")
oA[18]=new Array("Rogue","cards/character/rogue.htm")

//Warrior
oA[19]=new Array("Fighter","cards/character/fighter.htm")
oA[20]=new Array("Knight","cards/character/knight.htm")
oA[21]=new Array("Page","cards/character/page.htm")
oA[22]=new Array("Spearman","cards/character/spearman.htm")
oA[23]=new Array("Swordsman","cards/character/swordsman.htm")



//Item Cards

//A - E
oA[24]=new Array("Armor","cards/item/armor.htm")
oA[25]=new Array("Balrog","cards/item/balrog.htm")
oA[26]=new Array("Bear","cards/item/bear.htm")
oA[27]=new Array("Beast","cards/item/beast.htm")
oA[28]=new Array("Boar Mount","cards/item/boarmount.htm")
oA[29]=new Array("Chair","cards/item/chair.htm")
oA[30]=new Array("Dog","cards/item/dog.htm")
oA[31]=new Array("Dragon","cards/item/dragon.htm")

//f - J
oA[32]=new Array("Food","cards/item/food.htm")
oA[33]=new Array("Jewelry","cards/item/jewelry.htm")

//K - O
oA[34]=new Array("Kitty","cards/item/kitty.htm")
oA[35]=new Array("Minigame","cards/item/minigame.htm")

//P - T
oA[36]=new Array("Pet","cards/item/pet.htm")
oA[37]=new Array("Porcupine","cards/item/porcupine.htm")
oA[38]=new Array("Potion","cards/item/potion.htm")
oA[39]=new Array("Rabbit","cards/item/rabbit.htm")
oA[40]=new Array("Robot","cards/item/robot.htm")
oA[41]=new Array("Shield","cards/item/shield.htm")
oA[42]=new Array("Spook","cards/item/spook.htm")
oA[43]=new Array("Staff","cards/item/staff.htm")
oA[44]=new Array("Treasure","cards/item/treasure.htm")

//U - Z
oA[45]=new Array("Undead","cards/item/undead.htm")
oA[46]=new Array("Wand","cards/item/wand.htm")
oA[47]=new Array("Weapon","cards/item/weapon.htm")



//Monster Cards

//A - E
oA[48]=new Array("Alien","cards/monster/alien.htm")
oA[49]=new Array("Bat","cards/monster/bat.htm")
oA[50]=new Array("Bear","cards/monster/bear.htm")
oA[51]=new Array("Beast","cards/monster/beast.htm")
oA[52]=new Array("Bird","cards/monster/bird.htm")
oA[53]=new Array("Boar","cards/monster/boar.htm")
oA[54]=new Array("Bomb","cards/monster/bomb.htm")
oA[55]=new Array("Bull","cards/monster/bull.htm")
oA[56]=new Array("Clown","cards/monster/clown.htm")
oA[57]=new Array("Crab","cards/monster/crab.htm")
oA[58]=new Array("Dark","cards/monster/dark.htm")
oA[59]=new Array("Dog","cards/monster/dog.htm")
oA[60]=new Array("Dragon","cards/monster/dragon.htm")
oA[61]=new Array("Dummy","cards/monster/dummy.htm")
oA[62]=new Array("Dwarf","cards/monster/dwarf.htm")
oA[63]=new Array("Elephant","cards/monster/elephant.htm")

//F - J
oA[64]=new Array("Fairy","cards/monster/fairy.htm")
oA[65]=new Array("Fire","cards/monster/fire.htm")
oA[66]=new Array("Fish","cards/monster/fish.htm")
oA[67]=new Array("Flora","cards/monster/flora.htm")
oA[68]=new Array("Flying","cards/monster/flying.htm")
oA[69]=new Array("Goo","cards/monster/goo.htm")
oA[70]=new Array("Guardian","cards/monster/guardian.htm")
oA[71]=new Array("Human","cards/monster/human.htm")
oA[72]=new Array("Ice","cards/monster/ice.htm")
oA[73]=new Array("Jar","cards/monster/jar.htm")

//K - O
oA[74]=new Array("King","cards/monster/king.htm")
oA[75]=new Array("Kitty","cards/monster/kitty.htm")
oA[76]=new Array("Mechanical","cards/monster/mechanical.htm")
oA[77]=new Array("Monkey","cards/monster/monkey.htm")
oA[78]=new Array("Mushroom","cards/monster/mushroom.htm")
oA[79]=new Array("NPC","cards/monster/npc.htm")

//P - T
oA[80]=new Array("Pest","cards/monster/pest.htm")
oA[81]=new Array("Rabbit","cards/monster/rabbit.htm")
oA[82]=new Array("Reptile","cards/monster/reptile.htm")
oA[83]=new Array("Sand","cards/monster/sand.htm")
oA[84]=new Array("Scoundrel","cards/monster/scoundrel.htm")
oA[85]=new Array("Shrimp","cards/monster/shrimp.htm")
oA[86]=new Array("Soldier","cards/monster/soldier.htm")
oA[87]=new Array("Spook","cards/monster/spook.htm")
oA[88]=new Array("Summoned","cards/monster/summoned.htm")
oA[89]=new Array("Time","cards/monster/time.htm")
oA[90]=new Array("Toy","cards/monster/toy.htm")
oA[91]=new Array("Troll","cards/monster/troll.htm")
oA[92]=new Array("Turtle","cards/monster/turtle.htm")

//U - Z
oA[93]=new Array("Undead","cards/monster/undead.htm")
oA[94]=new Array("Water","cards/monster/water.htm")
oA[95]=new Array("Wolf","cards/monster/wolf.htm")
oA[96]=new Array("Worm","cards/monster/worm.htm")



//Tactic Cards

//Bowman
oA[97]=new Array("Skill","cards/tactic/boskill.htm")
oA[98]=new Array("Strategy","cards/tactic/bostrategy.htm")

//Magician
oA[99]=new Array("Skill","cards/tactic/maskill.htm")
oA[100]=new Array("Strategy","cards/tactic/mastrategy.htm")

//Thief
oA[101]=new Array("Skill","cards/tactic/thskill.htm")
oA[102]=new Array("Strategy","cards/tactic/thstrategy.htm")

//Warrior
oA[103]=new Array("Skill","cards/tactic/waskill.htm")
oA[104]=new Array("Strategy","cards/tactic/wastrategy.htm")



//Assigns Subtypes (third level) arrays to Second level link

//var c1, c2, c3, c4 are designated for boss cards
var c1=new AL("1,2")
var c2=new AL("3,4")
var c3=new AL("5,6")
var c4=new AL("7,8")

//var c5, c6, c7, c8 are designated for character cards
var c5=new AL("9,10,11,12")
var c6=new AL("13,14,15")
var c7=new AL("16,17,18")
var c8=new AL("19,20,21,22,23")

// var c9, c10, c11, c12, c13 are designated for item cards
var c9=new AL("24,25,26,27,28,29,30,31")
var c10=new AL("32,33")
var c11=new AL("34,35")
var c12=new AL("36,37,38,39,40,41,42,43,44")
var c13=new AL("45,46,47")

//var c14, c15, c16, c17, c18 are designated for monster cards
var c14=new AL("48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63")
var c15=new AL("64,65,66,67,68,69,70,71,72,73")
var c16=new AL("74,75,76,77,78,79")
var c17=new AL("80,81,82,83,84,85,86,87,88,89,90,91,92")
var c18=new AL("93,94,95,96")

//var c19, c20, c21, c22 are designated for tactic cards
var c19=new AL("97,98")
var c20=new AL("99,100")
var c21=new AL("101,102")
var c22=new AL("103,104")


masterList.AI("Boss","cards/boss/bossindex.htm",Boss)
masterList.AI("Character","cards/character/characterindex.htm",Character)
masterList.AI("Item","cards/item/itemindex.htm",Item)
masterList.AI("Monster","requirements/nature/natureallindex.htm",Nature)
masterList.AI("Tactic","requirements/outdoor/outdoorallindex.htm",Outdoor)

Boss.AI("Bowman","cards/boss/bowmanindex.htm",c1)
Boss.AI("Magician","cards/boss/magicianindex.htm",c2)
Boss.AI("Thief","cards/boss/thiefindex.htm",c3)
Boss.AI("Warrior","cards/boss/warriorindex.htm",c4)

Character.AI("Bowman","cards/character/bowmanindex.htm",c5)
Character.AI("Magician","cards/character/magicianindex.htm",c6)
Character.AI("Thief","cards/character/thiefindex.htm",c7)
Character.AI("Warrior","cards/character/warriorindex.htm",c8)

Item.AI("A - E","cards/item/aeindex.htm",c9)
Item.AI("F - J","cards/item/fjindex.htm",c10)
Item.AI("K - O","cards/item/koindex.htm",c11)
Item.AI("P - T","cards/item/ptindex.htm",c12)
Item.AI("U - Z","cards/item/uzindex.htm",c13)

Monster.AI("A - E","cards/monster/aeindex.htm",c14)
Monster.AI("F - J","cards/monster/fjindex.htm",c15)
Monster.AI("K - O","cards/monster/koindex.htm",c16)
Monster.AI("P - T","cards/monster/ptindex.htm",c17)
Monster.AI("U - Z","cards/monster/uzindex.htm",c18)

Tactic.AI("Bowman","cards/tactic/bowmanindex.htm",c19)
Tactic.AI("Magician","cards/tactic/magicianindex.htm",c20)
Tactic.AI("Thief","cards/tactic/thiefindex.htm",c21)
Tactic.AI("Warrior","cards/tactic/warriorindex.htm",c22)

masterList.Populate()

</script>

</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.