/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] help with simple frames coding

What am I doing wrong, my drop down menu won’t work to take you to the other pages.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>

<html>
<head>
<title>Adopt-A-Pet “No-Kill” Animal Shelter</title>

<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;
}
//–>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<style rel=”stylesheet” type=”text/css”>
div#navigation {
float: left;
width: 200px;
height: 100&#37;;
color: #ffffff;
background-color: #666;
border: 1px solid #000;
padding: 5px;
}
a {
display: block;
text-decoration: none;
}
</style>

</SCRIPT>

</head>

<body>
<a name=”home”>
<body background=”peachdogbackground.jpg”>

<center>
<font size=44><b><u>Adopt-A-Pet</u></font><br/><br/>
<img src=”dogcatlove.jpg”><br/><br/>
101 Delmation Drive<br/>
Harrisburg, Pa 11111<br/>
1-800-ADOPT-1-2<br/>
<a href=”mailto:[email protected]“>Email for questions or to schedule a visit.</a><br/><br/><br/></center>

<font size=24>Mission:</font><br/><br/>

Our mission at Adopt-A-Pet, in Harrisburg, Pennsylvania, is to rescue abandoned, neglected, abused, or otherwise homeless

household animals, and place these animals into permanent, stable, and caring homes. We also strive to promote public

awareness of the need to spay and neuter pets, and hope to make pet owners more aware of the importance of proper medical and

nutritional care of their pets. The members of Adopt-A-Pet are dedicated to this effort because each of us know

that…ANIMALS DEPEND ON PEOPLE, TOO!<br/><br/>

<font size=24>History</font><br/><br/>

<p>Our beginning – On November 19, 2004 a group of dedicated animal lovers met and decided to start a rescue organization, at

which time, the name Adopt-A-Pet Inc. was chosen. The group was incorporated by the state of Pennsylvania as a non-profit

organization on December 13, 2004 and was approved for 501(c)(3) tax-exempt status on March 29, 2005.<br/></p>

<p>Long Term Goals – Our long term goals include having a BarkPark which would include an on-site animal sanctuary. This

would be a place where animals that are less adoptable than others may live out their remaining lives.<br/></p>

<p>More About Us – We are in the process of creating a central location, a new shelter, and a facility where we keep the

animals. Most, if not all, of our rescues live in foster homes where they are loved and cared for until adopted. In addition

to these goals, we are also excited to work with other rescue groups in order to promote the welfare of homeless animals

everywhere!<br/><br/></p>

<font size=24>Happenings</font><br/>
<p><i>Fall Euchre Tournament – Cards for a Cause</i><br/>
Date: September 25, 2010<br/>
Time: 6:30 p.m.<br/>
Cost: $20/person<br/>
Adopt-A-Pet invites you to participate in a Euchre Tournament Fundraiser!<br/>
(Proceeds to fund Adopt-A-Pet’s efforts to purchase land for an animal shelter.)<br/>
Cost includes free appetizers, desserts, water and tea.<br/> Also, a chance to win the pot, night on the town package, or one

of many great door prizes!!<br/>
First Place: Pot of $$$<br/>
Second Place: Night on the Town Package<br/>
Door Prizes: TBD</p><br/>

<p>Mingle With the Mutts<br/>
1st and 3rd Sunday each month<br/>
Franklin County Animal Shelter<br/>
1731 Alum Creek Drive, Harrisburg, Pennsylvania<br/>
See all the animals waiting for you to give them their forever home. We are there every 1st and 3rd Sunday of the

month.</p><br/>
</center>

<center><FORM
ACTION=”../cgi-bin/redirect.pl”
METHOD=POST onSubmit=”return dropdown(this.gourl)”>
<SELECT NAME=”gourl”>
<OPTION VALUE=””>Choose a Destination…

<OPTION VALUE=”home.html”>Home Page
<OPTION VALUE=”dogs.html”>Learn About Dogs
<OPTION VALUE=”cats.html”>Learn About Cats
<OPTION VALUE=”exotics.html” >Learn About Exotics
<OPTION VALUE=”other.html” >Other Ways To Help

</SELECT>

<INPUT TYPE=SUBMIT VALUE=”Go”>
</FORM></center>

</body>
</html>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@tirnaMay 09.2010 — it will now ?

you could also remove the Go button and add the Go button's onclick js as an onchange in the <select>

Then as soon as your visitor makes a selection, the new web page will open in a new window without having to click the Go button.

[code=php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Adopt-A-Pet "No-Kill" Animal Shelter</title>
<style type="text/css">
div#navigation {
float: left;
width: 200px;
height: 100&#37;;
color: #ffffff;
background-color: #666;
border: 1px solid #000;
padding: 5px;
}
a {
display: block;
text-decoration: none;
}
</style>
<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;
}

function openTarget(newUrl,selIndex) {
if(selIndex != 0) var newWin = window.open(newUrl);
}

//-->
</SCRIPT>

</head>

<body>
<a name="home">
<body background="peachdogbackground.jpg">

<center>
<font size=44><b><u>Adopt-A-Pet</u></font><br/><br/>
<img src="dogcatlove.jpg"><br/><br/>
101 Delmation Drive<br/>
Harrisburg, Pa 11111<br/>
1-800-ADOPT-1-2<br/>
<a href="mailto:[email protected]">Email for questions or to schedule a visit.</a><br/><br/><br/></center>
<font size=24>Mission:</font><br/><br/>
Our mission at Adopt-A-Pet, in Harrisburg, Pennsylvania, is to rescue abandoned, neglected, abused, or otherwise homeless
household animals, and place these animals into permanent, stable, and caring homes. We also strive to promote public
awareness of the need to spay and neuter pets, and hope to make pet owners more aware of the importance of proper medical and
nutritional care of their pets. The members of Adopt-A-Pet are dedicated to this effort because each of us know
that...ANIMALS DEPEND ON PEOPLE, TOO!<br/><br/>
<font size=24>History</font><br/><br/>
<p>Our beginning - On November 19, 2004 a group of dedicated animal lovers met and decided to start a rescue organization, at
which time, the name Adopt-A-Pet Inc. was chosen. The group was incorporated by the state of Pennsylvania as a non-profit
organization on December 13, 2004 and was approved for 501(c)(3) tax-exempt status on March 29, 2005.<br/></p>
<p>Long Term Goals - Our long term goals include having a BarkPark which would include an on-site animal sanctuary. This
would be a place where animals that are less adoptable than others may live out their remaining lives.<br/></p>
<p>More About Us - We are in the process of creating a central location, a new shelter, and a facility where we keep the
animals. Most, if not all, of our rescues live in foster homes where they are loved and cared for until adopted. In addition
to these goals, we are also excited to work with other rescue groups in order to promote the welfare of homeless animals
everywhere!<br/><br/></p>

<font size=24>Happenings</font><br/>
<p><i>Fall Euchre Tournament - Cards for a Cause</i><br/>
Date: September 25, 2010<br/>
Time: 6:30 p.m.<br/>
Cost: $20/person<br/>
Adopt-A-Pet invites you to participate in a Euchre Tournament Fundraiser!<br/>
(Proceeds to fund Adopt-A-Pet's efforts to purchase land for an animal shelter.)<br/>
Cost includes free appetizers, desserts, water and tea.<br/> Also, a chance to win the pot, night on the town package, or one
of many great door prizes!!<br/>
First Place: Pot of $$$<br/>
Second Place: Night on the Town Package<br/>
Door Prizes: TBD</p><br/>
<p>Mingle With the Mutts<br/>
1st and 3rd Sunday each month<br/>
Franklin County Animal Shelter<br/>
1731 Alum Creek Drive, Harrisburg, Pennsylvania<br/>
See all the animals waiting for you to give them their forever home. We are there every 1st and 3rd Sunday of the
month.</p><br/>
</center>
<center>

<SELECT NAME="gourl" id="sel1">
<OPTION VALUE="" selected="selected">Choose a Destination...
<OPTION VALUE="home.html">Home Page
<OPTION VALUE="dogs.html">Learn About Dogs
<OPTION VALUE="cats.html">Learn About Cats
<OPTION VALUE="exotics.html" >Learn About Exotics
<OPTION VALUE="other.html" >Other Ways To Help
</SELECT>

<INPUT TYPE="button" VALUE="Go" onclick='openTarget(document.getElementById("sel1").value,document.getElementById("sel1").selectedIndex);' />


</body>
</html>

[/code]
Copy linkTweet thisAlerts:
@helpagirloutauthorMay 09.2010 — Thank you so much for your help. I am trying to teach myself Javascript and it gets me a bit befuddled! ?
Copy linkTweet thisAlerts:
@tirnaMay 09.2010 — no problem - happy to help ?
×

Success!

Help @helpagirlout spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...