Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am trying to create in Frontpage a multi column table that in one colum I will have a drop down list that the item selected will place a image file in the adjoining column. Is there a way to do this and how? Thanks for helping.

I'm using javascript and an "image place holder" for that, for
a gallery I'm currently building:http://robinred.odiousj.com/gallery3/gallery3.html
There are quite a few tutorials for the method on the
internet, though shoot me an email if you'd like the code. My
code is a tad rough around the edges, though works fine.

by the way, you probably can't tell because all of the text is
the same right now, but there is also a text "place holder" at
the bottom of the frame that changes with every thumbnail/
image selected.

DOH! Sorry - missed the part about the drop-down menu. I
don't have any code for that though I'm sure the image
placeholder could still be applied here.

Here's a simple script for accomplishing what you want. Copy and past the following into an htm page. You can then modify the code as you need. The path variable is to set the path to the image directory (note: had to change some <> to [] for posting reasons):
<html>
<head>
<script language="javascript">path = ""; //path to the image files
function changeImage(fieldID,imageFile) {
if (document.images) {
document[fieldID].src = path + imageFile;
}
}
</script>
</head>
<body>[select onchange="changeImage('testImage',this.value)"]
<option value="image1.jpg">Image 1</option>
<option value="image2.jpg">Image 2</option>
[/select][img name="testImage" src="image1.jpg"]
</body>
</html>Michael J

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |