Click to See Complete Forum and Search --> : Drop down menu problem


sockcymbal
12-24-2002, 10:27 AM
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

pyro
12-24-2002, 12:00 PM
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.

Zach Elfers
12-24-2002, 03:09 PM
Originally posted by sockcymbal
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

See how you have file:///Macintosh/Users/nathan/Desktop/sockcymbal/website/contact.dwt? That is wrong. You must have it this way:
file:///C:\Macintosh\Users\nathan\Desktop\sockcymbal\website\contact.dwt. That will work.:)