/    Sign up×
Community /Pin to ProfileBookmark

Drop down menu problem

I created a code for a drop down menu using the generator on this site and it looks like this:

<form name=”jump”>
<select name=”menu”>
<option value=”file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/main.dwt”>News</option>
<option value=”file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/shows.dwt”>Shows</option>
<option value=”file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/reviews.dwt”>Reviews</option>
<option value=”file:///Macintosh/Users/nathan/Desktop/SockCymbal/Website/Bands.dwt”>Bands</option>
<option value=”file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/aboutus.dwt”>About Us</option>
<option value=”file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/contact.dwt”>Contact</option>
</select>
<input type=”button” onClick=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
</form>

Now where it said to enter the URL, I put the location of the page on my computer, because the site is not yet launched. This does not work, it said page cannot be found. Does anyone know how to make this work or a slight alteration of the code to make it work? I would really appreciate it. Thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@pyroDec 24.2002 — That code worked fine on my Windows machine. Maybe you have the path wrong? I don't know how it works on a Mac, so I can't help you there. Try a relative path. Place the HTML file on your desktop and put this code in.

<form name="jump">

<select name="menu">

<option value="sockcymbal/website/main.dwt">News</option>

<option value="sockcymbal/website/shows.dwt">Shows</option>

<option value="sockcymbal/website/reviews.dwt">Reviews</option>

<option value="SockCymbal/Website/Bands.dwt">Bands</option>

<option value="sockcymbal/website/aboutus.dwt">About Us</option>

<option value="sockcymbal/website/contact.dwt">Contact</option>

</select>

<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

</form>

If that works, you had something wrong with you absolute path.
Copy linkTweet thisAlerts:
@Zach_ElfersDec 24.2002 — [i]Originally posted by sockcymbal [/i]

[B]I created a code for a drop down menu using the generator on this site and it looks like this:



<form name="jump">

<select name="menu">

<option value="file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/main.dwt">News</option>

<option value="file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/shows.dwt">Shows</option>

<option value="file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/reviews.dwt">Reviews</option>

<option value="file:///Macintosh/Users/nathan/Desktop/SockCymbal/Website/Bands.dwt">Bands</option>

<option value="file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/aboutus.dwt">About Us</option>

<option value="file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/contact.dwt">Contact</option>

</select>

<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

</form>



Now where it said to enter the URL, I put the location of the page on my computer, because the site is not yet launched. This does not work, it said page cannot be found. Does anyone know how to make this work or a slight alteration of the code to make it work? I would really appreciate it. Thanks [/B]
[/QUOTE]


See how you have [B]file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/contact.dwt[/B]? That is wrong. You must have it this way:

[B]file:///C:MacintoshUsersnathanDesktopsockcymbalwebsitecontact.dwt[/B]. That will work.?
×

Success!

Help @sockcymbal 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.18,
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,
)...