HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
drop menu and frames questions
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
live_wire



Joined: 14 Dec 2004
Posts: 1

PostPosted: Tue Dec 14, 2004 10:30 pm     drop menu and frames questions Reply with quote

I have built a webpage with three horizontal frames, one is a navigation frame with a drop down menu.

I would like to have the links in the drop down menu load a seperate page without frames.

My questions are:
One, do I have to have the new page without frames load in a seperate window? (some of my site pages do not use frames)

Two, how do I incorporate the code: <a href="xxx.htm" target="_blank">link</a>

into my drop down code?

Head
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>

Body
<FORM ACTION="dummy" METHOD=POST>
<P><FONT COLOR="#000099"><SELECT NAME=choice onchange="jump(this.form)">
<OPTION>Portfolios
<OPTION VALUE="ah_advertising.htm">Advertising
<OPTION VALUE="ah_editorial.htm">Editorial
<OPTION VALUE="ah_portraits.htm">Portraits
<OPTION VALUE="ah_catalog.htm">Catalog
<OPTION VALUE="ah_fineart1.htm">Fine Art
</SELECT></FONT>
</FORM>[/list]
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial