I need some help to create a function for my website.
at the moment i have a dropdown form which changes the web page within an IFRAME however i want to change the dropdown menu so i can use images as buttons that will function exactly the same as the drop down options!
Question
karma
Hey all!
I need some help to create a function for my website.
at the moment i have a dropdown form which changes the web page within an IFRAME however i want to change the dropdown menu so i can use images as buttons that will function exactly the same as the drop down options!
Could anybody help with this maybe!
so far i have this
<script language='JavaScript'> function goto() { var index = document.place.site.selectedIndex parent.site.location.href = (document.place.site.options[index].value); } </script> <form name='place'> <select name='site' onchange='goto()'> <option value=''>Select One</option> <option value='http://www.site.com'>Site.com</option> <option value='http://www.site.com'>Site.com</option> <option value='http://www.site.com'>Site.com</option> </select></form> <iframe width='100%' height='300' name='site'></iframe>Link to comment
Share on other sites
0 answers to this question
Recommended Posts