PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage How do I link items in drop box to other pages in my website?

Reply

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

 
Thread Tools Rate Thread
Old 18-08-2005, 02:01 AM   #1
=?Utf-8?B?amF3MTYwMA==?=
Guest
 
Posts: n/a
Default How do I link items in drop box to other pages in my website?


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.

  Reply With Quote
Old 18-08-2005, 05:54 AM   #2
Trevor L.
Guest
 
Posts: n/a
Default Re: How do I link items in drop box to other pages in my website?

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)
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au

jaw1600 wrote:
> 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.



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off