
October 10th, 2003
12:47 AM
i need some more help...
yah... so, im a dork... here's my dropdown menu script:
<select name="select2" onChange="apathy_jumpMenu('parent',this,0)" class="pulldown2">
<option value="#" selected>::MENU::</option>
<option value="#">--------------</option>
<option value="#">Home</option>
<option value="#">About Apathy</option>
<option value="#">News</option>
<option value="#">Reviews</option>
<option value="#">Articles</option>
<option value="#">Interviews</option>
<option value="#">Message Board</option>
<option value="#">Profiles</option>
<option value="#">Contact</option>
now i need this to be connected to my iframe, so, how do i change the value so that the link opens in the iframe? i understand that i really should know this if im even going to be on this board... but like i said before, im teaching myself basically and i need help...

October 10th, 2003
12:53 AM
EDIT: Well maybe just change this:
<select name="select2" onChange="apathy_jumpMenu('parent',this,0)" class="pulldown2">
to
<select name="select2" onChange="apathy_jumpMenu('iframe',this,0)" class="pulldown2">
and add this to the iframe:
name="iframe" id="iframe"
___________________

Last edited by Saul_Vasquez, October 10th, 2003 01:04 AM (Edited 1 times)

October 10th, 2003
01:00 AM
We'll need to see the code for the apathy_jumpMenu function. 
___________________


October 10th, 2003
01:01 AM
i tried that... it just changes the whole page

October 10th, 2003
01:03 AM
<script language="JavaScript">
<!--
function apathy_jumpMenu(targ,selObj,restore){ //v3.0
if(selObj.options[selObj.selectedIndex].value == 'chat') {
chat();
selObj.selectedIndex=0;
} else {
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); selObj.selectedIndex=0;
}
}
// -->
</script>

October 10th, 2003
01:12 AM
okay... im a dork... i lifted the code... so, im not cool like you...

October 10th, 2003
01:15 AM
Try using the second suggestion that Saul Vasquez gave you. I would suspect it to work.
___________________


October 10th, 2003
01:39 AM
you guys rock my socks! thanks you guys!

October 10th, 2003
01:56 AM
now, if i have a link that i want to go to an outside site, such as a message board, how can i change the target for that specific site without altering the rest of the link routing?

October 10th, 2003
02:01 AM
Do you mean like opening it in a new window?
<a href="something.html" onclick="this.target='_blank';return false;">Open this in a new window.</a>
I hope that helps you out.
___________________
