View Full Version : Targeting frames?


Scaralyph
02-02-2003, 07:13 PM
Okay, I need to know how to make this drop-down code target frames. I've never used this kind before, sooo.....yeah.

<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO" size="1" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 7pt; BORDER-LEFT-COLOR: #FFFFFF; BORDER-BOTTOM-WIDTH: 0px; BORDER-BOTTOM-COLOR: #000000; COLOR: #ff0000; BORDER-TOP-COLOR: #000000; FONT-FAMILY: tahoma, Arial; BACKGROUND-COLOR: #000000; BORDER-RIGHT-WIDTH: 0px; BORDER-RIGHT-COLOR: #000000">
<option value="#">:: Menu</option>
<option value="about.html">About ::</option>
<option value="rules.html">Rules ::</option>
<option value="codes.html">Codes ::</option>
<option value="join.html">Join ::</option>
<option value="members.html">Members ::</option>

Alcy
02-02-2003, 09:20 PM
http://www.lissaexplains.com/forum/showthread.php?s=&threadid=29187

Scaralyph
02-03-2003, 11:47 PM
Umm... those codes are kinda... different than this one....

Dude128
02-04-2003, 02:18 AM
they are different because they are designed to target frames. try it- just substitute your frame name as indicated.

Scaralyph
02-05-2003, 02:16 AM
Where?

Scaralyph
02-05-2003, 02:29 AM
Okay, could you atleast tell me how to get rid of the border. Or something?

See, this is how it looks when I use the above code...

http://geocities.com/spookispooki/Picture4.txt

And this is what it looks like when I use the code made to target frames....

http://geocities.com/spookispooki/Picture5.txt

Am I even making any sence?

Dude128
02-05-2003, 02:29 AM
in bold it says yourframename.

put your frame name there.

Scaralyph
02-06-2003, 02:04 AM
I did that. I added the...

<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="yourframename");
}
}
//-->
</script>

... in front of my code, and it still didn't work....

And yes, with the frame name.....

Dude128
02-06-2003, 04:52 AM
I would recommend copying and pasting the code and starting over instead of trying to modify your existing code by adding different parts- do you have the appropriate button code?