- Code: Select all
=========================
<script language='javascript'>
function ImgClicked(FormName,MouseFunction,Org_Image,Alt_Image,Max_x,Max_y) {
i_MouseClicked = new Image(Max_x,Max_y);
i_MouseClicked.src = Alt_Image;
document.images[FormName].src = eval(MouseFunction + '.src'); }
</script>
=========================
<INPUT type='hidden' name='i_PoWForm' value=''>
<img src='pow.jpg' alt='PoW picture' align='right' border='1' name='i_PoWForm'>
<input type='image' src='$i_ThumbNail' alt='$i_ImageFile' border='1' onClick="ImgClicked('i_PoWForm','onClick','pow.jpg','$i_ImageFile','485','420'); this.form.submit();">
=========================
Some times I get "error on page" when the thumbnail is clicked, some times I get nothing. I am sort of lost and I have exhausted all possible sources of help on the web. Can you help or maybe you can direct me where to look to find info for my onClick problem? Thanks



