Web Sites With Publisher

A.Webster Feb 2005

Websters on the Web

Introduction     Setting_Up     Creating Content     Site structure     Adding buttons     

Javascript Buttons     More javascript     Publish your site

More JavaScript

Other Javascript on this site

You have probably already guessed that the dropdown navigation menu is more JavaScript.

It goes like this:

<SCRIPT language='javascript'>

</SCRIPT>

<FORM name="guideform">

<SELECT name="guidelinks">

<OPTION SELECTED value="index.html">Home Page

<OPTION value="setting_up.html">Setting up the site

</SELECT>

<INPUT type="button" name="go" value="Go!" onClick="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">

</FORM>

with an OPTION value line for each page included.

I have included this on the background to save repeating it on each page (likewise the back button below the navigation bar).

Javascript Sources

Of course, I didn't originate any of this code.  My examples are taken from PageResource.com, even if that link no longer works a quick google for JavaScript tutorials will find lots for you to play with.

The danger here is that too much time will be wasted on frivolities and not enough devoted to content, so be selective.