Pulldown Link List

1 Conversation

Here is a working example of a pulldown list for linking to pages from h2g2. The code is shown below.

  • To link to pages inside h2g2 you need to use the "A99999" form for the URL.
  • To link to users inside h2g2 you need to use the "U99999" form for the URL.
  • To link to things outside h2g2 you need to use the full URL as in the douglasadams.com example

Thanks to Skeleton (ACE) for some suggestions that helped improve this code.

Pick a LinkThe GuideML ClinicThe ACEs HomepagePeta(Community Editor)Bruce(GuideML Guru)Skeleton (ACE)The Code for this listDouglasAdams.com

Here is the code for the pulldown links list shown above.
Just cut&paste it into your homepage. Your homepage needs to be set to GuideML or HTML content - Plain Text just won't cut it.


Put the code wherever you want the list to appear on your page.


<P ALIGN="center">
<SCRIPT LANGUAGE="javaScript">
<!--
function goLink(link) {
window.location.href = link;
}
// -->
</SCRIPT>

<FORM NAME="listLinks">
<SELECT NAME="linkPicked" SIZE="1" ONCHANGE="goLink(this.options[selectedIndex].value)">
<OPTION SELECTED="1">Pick a Link</OPTION>
<OPTION VALUE="A187229">The GuideML Clinic</OPTION>
<OPTION VALUE="A214796">The ACEs Homepage</OPTION>
<OPTION VALUE="U24">Peta (Community Editor)</OPTION>
<OPTION VALUE="U25551">Bruce (GuideML Guru)</OPTION>
<OPTION VALUE="U97840">Skeleton (ACE)</OPTION>
<OPTION VALUE="A214066">The Code for this list</OPTION>
<OPTION VALUE="http://www.douglasadams.com">DouglasAdams.com</OPTION>

<!-- Add as many or as few to the list as you like. Just add an OPTION line for each link. The format looks like this - -->
<!-- OPTION value="the link URL goes here">The text for the list goes here</OPTION -->
</SELECT>
</FORM>
</P>


Share & Enjoy!
A155701A187292A187229A187355

Bookmark on your Personal Space


Conversations About This Entry

Entry

A214066

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


References

h2g2 Entries

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more