FreeHostia Forums
http://forum.freehostia.com/

Option Script?
http://forum.freehostia.com/viewtopic.php?f=10&t=8960
Page 1 of 1

Author:  marcus_at_trillium [ Mon Mar 31, 2008 10:50 pm ]
Post subject:  Option Script?

I was able to find a script a long time ago, to put together this nifty thing
http://www.snowneo.com/lists/codestone.php

But I cant remember the name of it. What I want to do now is make one with two select dropdowns, so that one dropdown will define the item, and the other dropdown will define the color, I am trying to make something like this:
http://www.neoitems.net/petcolours.php



My Current Code For the Codestone Viewer
Code:
<img name="pet_image" src="http://images.NeoPets.com/items/codestone4.gif" height="80" width="80"><br>
<script><!--
function update_pet_caption() { 
  pet_caption300 = document.option_form.caption300.value; 
  document.pet_image.src = "http://images.NeoPets.com/items/codestone" + pet_caption300 + ".gif";
  return true;
}
//-->
</script>
<form name="option_form" method="post" onchange="update_pet_caption()">

<span class="style1">
<select name="caption300" onchange="update_pet_caption()">
<option value="1">Mau</option>
<option value="2">Tai-Kai</option>
<option value="3">Lu</option>

<option value="4">Vo</option>

<option value="5">Eo</option>
<option value="6">Main</option>
<option value="7">Zei</option>
<option value="8">Orn</option>
<option value="9">Har</option>
<option value="10">Bri</option>
<option value="11">Mag</option>

<option value="12">Vux</option>
<option value="13">Cui</option>

<option value="14">Kew</option>
<option value="15">Sho</option>
<option value="16">Zed</option>
</select>
</span>

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/