This is what i have but it doesnt want to work.
- Code: Select all
<form action="addcategorynow.php" method="POST" name="theform">
<select name="catpic" onChange="javascript:displaypicture(this)">
<option>animal.jpg</option>
<option>buildings</option>
</select>
</form>
In the header section of my page. i have this...
- Code: Select all
<Script language="javascript">
function displaypicture(myForm){
document.picviewer.src = "http://www.falcon-eye.co.uk/galleryimages/categorypics/" + document.theform.catpic.value
}
</script>
Now it doesn't want to work, does anybody know why? The address of the image vhanges from http://www.falcon-eye.co.uk/galleryimag ... spacer.jpg
to
http://www.falcon-eye.co.uk/galleryimages/categorypics/
I cant see whats going wrong.


