• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

HTML Issues

tpsscforums

New member
I need help, I'm trying to add the dragonflycave's Pokemon Sprite Generator to my forums, It has everything, except it doesn't generate the splices...


Thisi the code

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<title>Pokémon Sprite Generator</title>

<style type="text/css">
body {
font-size:8pt;
font-family:verdana, sans-serif;
}

h1 {
font-size:3em;
}

h2 {
font-size:1.5em;
margin-left:2em;
}

#advsprites img {
height:64px;
width:64px;
padding:9px 0;
}

#advsprites th {
font-weight:bold;
text-align:center;
width:64px;
}

#advsprites td {
width:64px;
height:256px;
padding:0;
vertical-align:top;
}

#dssprites img {
height:80px;
width:80px;
}

#dssprites th {
font-weight:bold;
text-align:center;
width:80px;
}

#dssprites td {
width:80px;
height:256px;
padding:0;
vertical-align:top;
}

#rsforms, #rsformsshiny, #dpforms, #dpformsshiny {
display:none;
}

.noaltforms {
color:#AAAAAA;
padding-left:20px;
}

.showable {
cursor:pointer;
cursor:hand;
background:url('collapse-down.gif') left center no-repeat;
padding-left:20px;
}

.shown {
cursor:pointer;
cursor:hand;
background:url('collapse-up.gif') left center no-repeat;
padding-left:20px;
}

#sprites table {
border:3px solid #000000;
}

a:link, a:visited {
color:#000088;
text-decoration:none;
}

a:active, a:hover {
color:#AACCFF;
text-decoration:underline;
}
</style>

</head>

<body>
<script type="text/javascript" src="generatorvars-both.js"></script>
<script type="text/javascript" src="generator.js"></script>

<h1>Pokémon Sprite Generator</h1>

<p>You may direct link sprites from this page if you have to, but if you're planning to use them on your site or something you should really just upload them yourself instead of risking them randomly going down or something.</p>

<p>Because it would've been annoying to code otherwise, the FireRed Deoxys is displayed as the FR/LG sprite for Deoxys while the LeafGreen one is displayed as the FR/LG shiny (I figured not a lot of people would miss the shiny, really).</p>

<table id="sprites">
<tr>
<td>
<table id="advsprites">
<tr><th>R/S sprites</th><th>R/S shinies</th><th>Emerald sprites</th><th>FR/LG sprites</th><th>FR/LG shinies</th></tr>

<tr><td id="rssprites"></td><td id="rsspritesshiny"></td><td id="emsprites"></td><td id="flsprites"></td><td id="flspritesshiny"></td></tr>
</table>
</td>
<td>
<table id="dssprites">
<tr><th>Normal</th><th>Shiny</th><th>Normal female</th><th>Shiny female</th></tr>
<tr><td id="dpsprites"></td><td id="dpspritesshiny"></td><td id="dpspritesf"></td><td id="dpspritesshinyf"></td></tr>
</table>
</td>
</tr>
</table>

<h4 id="hrsforms" class="noaltforms">R/S alternate forms (normal)</h4>

<div id="rsforms"></div>

<h4 id="hrsformsshiny" class="noaltforms">R/S alternate forms (shiny)</h4>
<div id="rsformsshiny"></div>

<h4 id="hdpforms" class="noaltforms">D/P alternate forms (normal)</h4>
<div id="dpforms"></div>

<h4 id="hdpformsshiny" class="noaltforms">D/P alternate forms (shiny)</h4>
<div id="dpformsshiny"></div>

<h2>Generate random Pokémon</h2>
<p><input type="button" id="generate1" value="Generate one" />

<input type="button" id="generate2" value="Generate two" />
<input type="button" id="generate3" value="Generate three" /></p>

<h2>Find sprites of specific Pokémon</h2>
<p>For Nidoran, enter "Nidoranm" or "Nidoranf". "Unown" will return Unown A; if you want the others, type them as "UnownB", "UnownC", etc. (same for the exclamation mark and punctuation mark Unown; use "Unown!" and "Unown?"). If you misspell the Pokémon, nothing will show up. Sorry.</p>
<p><input type="text" id="find1" /> <input type="text" id="find2" /> <input type="text" id="find3" /><br />
<input type="button" id="find" value="Find sprites" /></p>


</body>
</html>
 
As I told you in a PM, I must ask why in the world you aren't just linking to it instead of "adding it to your forums". It would save you a hell of a lot of trouble, and I can't see any disadvantage to it.

Of course, the reason is probably that you failed to download the Javascript files that contain the actual script.
 
Back
Top Bottom