0

hi!here my problem again!
Can you tell me how to display image map when choose image map name from drop down menu?
help me again!
thanks for your time! good luck!

2
Contributors
2
Replies
12
Views
4 Years
Discussion Span
Last Post by Wailintun
0

HI,
Where are you stroing image map name and image map?
While posting thread please take care of giving your requirement in brief.

0

sorry!
Images are stored in the same directory.

here my code, but I want to display image map and image is middle of page.(forget table)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">

function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}

</script>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="10">
<tr>
<td width="100%" height="350%"><form name="mygallery"><p>
<select name="picture" size="1" onChange="showimage()">
<option>choose the picture</option>
<option value="colormap.gif">Picture of color</option>
<option value="leftbar-blackfriday.jpg">Picture of sale</option>
<option value="planets.gif">Picture of planets</option>
</select>
</p>
</form>
</td>
</tr>
<tr>
<td width="200%"><p align="center"><img src="smiley.gif" name="pictures" width="199" height="100"></td>
</tr>
</table>


</body>
</html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.