Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

drop down lists in frontpage 2002

Hi - I have a very simple 10 page website that was designed in frontpage 2002. My question is: how can i add some simple drop down lists on my homepage that link to the other pages in the site?

Can frontpage do it or do I need some third party add in?

thanks !!
0
DatMicro
Asked:
DatMicro
  • 2
1 Solution
 
rcmbCommented:
Here is some code that will create a drop down list to select some pages and when the user clicks on go they will be directed to the page selected.

<form name="MyForm">
<p>
<select name="Selection">
             <option>Select from the List Below</option>
             <option value="mypage1.htm">Page 1</option>
       <option value="mypage2.htm">Page 2</option>
            <option value="mypage3.htm">Page 3</option>
            <option value="mypage4.htm">Page 4</option>
            <option value="mypage5.htm">Page 5</option>
            <option value="mypage6.htm">Page 6</option>
      <option value="mypage7.htm">Page 7</option>
</select>
<input type="button" onClick="location=document.MyForm.Selection.options[document.MyForm.Selection.slectedIndex].value;" value="GO"></p>
</form>

RCMB
0
 
rcmbCommented:
Or if you desire to have the user just click the drop-down and have it navigate automatically for you:

<script>
// Pull-Down Menu Naviagtion Function
function PageChanger(page) {
      document.location=page;
      document.NavForm.PullDown.options[0].selected=true;
}
</script>
<p>
<select name="Pulldown" onChange="PageChanger(this.options[this.selectedIndex].value)">
             <option>Select from the List Below</option>
             <option value="mypage1.htm">Page 1</option>
      <option value="mypage2.htm">Page 2</option>
            <option value="mypage3.htm">Page 3</option>
            <option value="mypage4.htm">Page 4</option>
            <option value="mypage5.htm">Page 5</option>
            <option value="mypage6.htm">Page 6</option>
      <option value="mypage7.htm">Page 7</option>
</select>
</p>

Enjoy.

RCMB
0
 
DatMicroAuthor Commented:
thanks RCMB,

I'll give this a shot and post back in a day.

thanks again,

Dat Micro
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now