View Full Version : frames/pull down menu help


auds
02-15-2003, 10:47 PM
I'm using frames and a pull down menu that targets frames. Is there anything I can do so that when you select something from the menu it doesn't open the link in a new window?

Andyman
02-16-2003, 01:06 AM
This basically covers your whole question:

http://www.lissaexplains.com/fun.shtml#dropframe

auds
02-16-2003, 01:14 AM
that is the exact code i'm using

Andyman
02-16-2003, 01:24 AM
Maybe you changed something in the code? You can check it over and make sure that is a target-framing code and not a window-opener. Can you show the code that you're using?

bejayel
02-16-2003, 01:30 AM
i will bet lots of things that you have your pull down menu targeting a non-existant frame. try changing the name in your pull down menu to match the frame you are trying to target. though it would be a great help if we could see the file you are trying to do this with...

auds
02-16-2003, 04:44 PM
<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="menu");
}
}
//-->
</script>

<form name="lissamenu2">
<select name="menu" style="background-color: #000000 ;
font size=10 ; font-family: verdana; color:#999999"
size="1" onchange="jump(this.form)">

<option value="0">go down on me</option>
<option value="http://www26.brinkster.com/audreyclaire/index.html">+ news</option>
<option value="http://www26.brinkster.com/audreyclaire/amuseme">+ amuse me</option>
<option value="http://www26.brinkster.com/audreyclaire/beautifulpeople">+ beautiful people</option>
<option value="http://www26.brinkster.com/audreyclaire/poems">+ poems</option>
<option value="http://www26.brinkster.com/audreyclaire/autobiographical">+ autobiographical</option>
<option value="http://www26.brinkster.com/audreyclaire/popculture">+ pop culture</option>
<option value="http://www26.brinkster.com/audreyclaire/guestbook">+ sign it</option>
<option value="http://www26.brinkster.com/audreyclaire/links">+ links</option>

</select>
</form>

Sheila
02-16-2003, 05:24 PM
Are you trying to target it to your iframe?

If so, you need to target the drop down menu to news and not main.

<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="news");
}
}
//-->
</script>

<form name="lissamenu2">
<select name="menu" style="background-color: #000000 ;
font size=10 ; font-family: verdana; color:#999999"
size="1" onchange="jump(this.form)">

<option value="0">go down on me</option>
<option value="http://www26.brinkster.com/audreyclaire/index.html">+ news</option>
<option value="http://www26.brinkster.com/audreyclaire/amuseme">+ amuse me</option>
<option value="http://www26.brinkster.com/audreyclaire/beautifulpeople">+ beautiful people</option>
<option value="http://www26.brinkster.com/audreyclaire/poems">+ poems</option>
<option value="http://www26.brinkster.com/audreyclaire/autobiographical">+ autobiographical</option>
<option value="http://www26.brinkster.com/audreyclaire/popculture">+ pop culture</option>
<option value="http://www26.brinkster.com/audreyclaire/guestbook">+ sign it</option>
<option value="http://www26.brinkster.com/audreyclaire/links">+ links</option>

</select>
</form>

auds
02-16-2003, 06:24 PM
No i'm not trying to get it to target to my inline frame.. I want it to target the whole right side

Sheila
02-16-2003, 06:25 PM
Where I have news in bold put rightside instead.

auds
02-17-2003, 04:06 PM
well thanks for suggesting to target it in "news".. I did that and it looks awesome! thanks again!