Yes, that's it! I would just like to be able to track the final answer. Thanks very much.
Yes, that's it! I would just like to be able to track the final answer. Thanks very much.
OK, that's where my knowledge ends. You need to ask someone who knows something about javascript. The gist is that you want to include the java variable in your form post. I think the variable you want to post here is called "which" in the code you sent. Do you have someone who could help you with that? If not, let me know and I'll try googling around for the answer.
I think this works:
<table border="0" cellpadding="0">
<tr>
<td width="100%"><img src="mullerlyer1.gif" name="photoslider"></td>
</tr>
<tr>
<td width="100%"><form method="POST" name="rotater" onsubmit=updatewhichpic()>
<div align="center"><center><p><script language="JavaScript1.1">
var photos=new Array()
var which=0
/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="mullerlyer1.gif"
photos[1]="mullerlyer2.gif"
photos[2]="mullerlyer3.gif"
photos[3]="mullerlyer4.gif"
photos[4]="mullerlyer5.gif"
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
//submitform.whichpic.value = which
}
}
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
//submitform.whichpic.value = which
}
else window.status='End of gallery'
}
function updatewhichpic(){
rotater.whichpic.value=which
}
</script>
<input type="button" value="<<Back" name="B2"
onClick="backward()"> <input type="button" value="Next>>" name="B1"
onClick="forward()"> <br>
<!--form name="submitform" method="post" -->
<input name="whichpic" type="hidden">
<input type="submit" value="OK">
<!--/form-->
<!--<a href="#" onClick="which=1;backward();return false"><small>Start Over</small></a></p>-->
</center></div>
</form>
</td>
</tr>
</table>