JavaScript (Pulldown to load img)

PhoenixOfWater

Golden Member
Jul 8, 2002
1,583
0
0
I'm trying to make a small page that will let you pic a from a pulldown...
I'm really not good with JavaScript but i did do this before...but i can't remender

<Html>
<body>

<script LANGUAGE=Javascript>
var stripnum = 1;


function StripJump(strip, stripnum)
{
if (strip != '')
{
stripnum = strip
Name = strip + ".jpg";
document.Pic.src = Name;
}
}

function StripMove(Move, stripnum)
{
if (Move = "1")
{
stripnum = stripnum - 1;
Name = stripnum + ".jpg";
document.Pic.src = Name;
}



if (Move = "2")
{
stripnum = stripnum + 1;
Name = stripnum + ".jpg";
document.Pic.src = Name;
}
}
//-->
</script>

<IMG NAME="Pic" SRC="1.jpg">

<a href="#" onClick="StripMove(1)">Back</a>


<select name=strip_id onChange='StripJump(this.options.value);'>
<option value=''>-- Pick a Strip --</option>

<option value='1'>Pic 1</option>

<option value='2'>Pic 2</option>

<option value='3'>Pic 3</option>

<option value='4'>Pic 4</option>


</select>
</form>
<a href="#" onClick="StripMove(2)">Next</a>

</body>
</Html>


Thanks for the help