inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Sept 22, 2009 17:56:02 GMT -8
<script type="text/javascript">
var Route=new Array()
Route[0] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon001.png' />"; Route[1] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon004.png' />"; Route[2] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon008.png' />"; Route[3] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon012.png' />"; Route[4] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon016.png' />"; Route[5] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon020.png' />"; Route[6] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon024.png' />"; Route[7] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon028.png' />"; Route[8] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon032.png' />"; Route[9] = "<img src='http://www.pokemonelite2000.com/sprites/dpicon/dpicon036.png' />";
var pokemon = Route.length; var whichRoute=Math.round(Math.random()*(pokemon-1)); function showRoute(){document.write(Route[whichRoute]);} showRoute(); </script>
I am trying to use this code that I found and edited. I am asking if I could put a <div id="route_pokemon"></div> in there, so that when I want it, I can call it when I need it. How could I do this?
|
|