|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Other - Drop Down Menu links-- Iframe ??
hi all
ive been struggling with some html, and im guessing i need some javascript but im not so competent in that. i need a drop down list menu on my page (page is called home.html). This page is a iframe called inner_frame. i need it so when you click on an option in the list e.g. range.html it comes up in the inner_frame! probably not explained very well but any help is much appreciated. thanks in advance Paul |
|
#2
|
||||
|
||||
|
to have a link change something in the inner_frame, add `target="inner_frame" to the <a> tag.
As for the dropdown, there are many ways to do it, some with CSS, some with javascript. What exactly do you want (maybe point to a site where you've seen it)?
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 280
![]() |
|
#3
|
|||
|
|||
|
just something like this a basic drop down list
seems like i cant post links sooo have to post code Code:
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>
<FORM
ACTION="../cgi-bin/redirect.pl"
METHOD=POST onSubmit="return dropdown(this.gourl)">
<SELECT NAME="gourl">
<OPTION VALUE="">Choose a Destination...
<OPTION VALUE="/tags/" >Guide to HTML
<OPTION VALUE="/" >Idocs Home Page
<OPTION VALUE="(URL address blocked: See forum rules)" >Ninth Wonder
</SELECT>
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>
thanks paul |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Other - Drop Down Menu links-- Iframe ?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|