How do I link items in drop box to other pages in my website?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a drop box in my website. I want to be able to link
specific items in the drop box to specific pages in my website. I am able to
create the drop box but I don't know how to link the items. Does anybody
have any suggestions.
 
You could use this code
<form action="">
<select onChange="if(options[selectedIndex].value)
top.location.href=(options[selectedIndex].value)" >
<option>---Select one---</option>
<option value="http://members.ozemail.com.au/~martin.lawrence/">
Martin's</option>
<option value="http://www.users.bigpond.com/gdown/">
Graham's</option>
</select>
</form>

This links to two external sites. Put more options in for more than two.

I now note you wrote "on *my* website", so they will have to be of the
format
<option value="http://www.mywebsite.com/index.html#place1">
<option value="http://www.mywebsite.com/index.html#place2">

where #place1, #place2 are "bookmarks" on the page on your website
http://www.mywebsite.com/ with name 'index.html'
e.g.
<a name="place1"></a>
and in another place on the page
<a name="place2"></a>

or the reference could be to a bookmark on a different page,
e.g.
<option value=http://www.mywebsite.com/another.html#place3>

where #place3 is a "bookmark" on the page on your website
http://www.mywebsite.com/ with name 'another.html'

SIAS (suck it and see)
 
Back
Top