Thread: Drop down menu with changing pic
Results 1 to 5 of 5
Related
-
Changing radio buttons to drop-down menu and maintain cookies Forum: Javascript Forum
Replies: 1 -
vertical drop down menu with 'sub drop downs' problem Forum: Javascript Forum
Replies: 2 -
Jump Menu covers drop down menu Forum: HTML Forum
Replies: 1 -
Drop Down music menu, Need help Forum: Website Scripts Forum
Replies: 4 -
Drop down menu Forum: HTML Forum
Replies: 6
-
12-10-2003, 04:46 AM #1
Drop down menu with changing pic
hello all, i have a drop down menu all working nicely, however i need a picture next to te menu that changes with each selection made in the menu (e.g if a car is i selected from the drop down a car pic is displayed in a window) any help appreciated.
-
12-10-2003, 08:01 AM #2
Originally Posted by Dr_fish
-
12-10-2003, 10:42 AM #3
Showing us what you have now might help in coming up with a solution.
-
12-12-2003, 06:31 AM #4
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<p><!--webbot bot="HTMLMarkup" startspan --><form name="jumpy">
<select name="example" size="1" onChange="gone()">i
<option value="http://www.vnunet.de/images/upload/AMD%20Athlon%20XP%201900%20Plus%20GST215.JPG">athlon</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.lycos.com">Lycos</option>
<option value="http://www.AltaVista.com">AltaVista</option>
</select>
<input type="button" name="test" value="Go!" onClick="gone()">
</form>
<script language="javascript">
var displaymode=0
var iframecode='<iframe id="external" style="width:25%;height20000px" src="http://www.eng.nene.ac.uk/~bf02jafo/noughts.html"></iframe>'
if (displaymode==0)
document.write(iframecode)
function gone(){
var selectedurl=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
if (document.getElementById&&displaymode==0)
document.getElementById("external").src=selectedurl
else if (document.all&&displaymode==0)
document.all.external.src=selectedurl
else{
if (!window.win2||win2.closed)
win2=window.open(selectedurl)
//else if win2 already exists
else{
win2.location=selectedurl
win2.focus()
}
}
}
</script>
<br>
<br>
<br>
<!--webbot bot="HTMLMarkup" endspan -->
</p>
</body>
</html>
This code i have allows me to display pics in a frame, however i now want to copy this and have four drop downs with four frames not just one of both how do i do this?
-
12-12-2003, 08:39 AM #5
Without knowing what the problem is, this should be fixed:
var displaymode=0
var iframecode='<iframe id="external" style="width:25%;height20000px" src="http://www.eng.nene.ac.uk/~bf02jafo/noughts.html"></iframe>'
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum