To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Fri, 03-Sep-2010 14:38:31 GMT
         internet.com

Go Back   JustLinux Forums > Off Topic > /dev/random

/dev/random Got a question about Linux, the community, or technology that does not quite fit in the other channels? Here's the place to ask...

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-13-2003, 03:13 PM
JoeyJoeJo JoeyJoeJo is offline
Registered User
 
Join Date: Aug 2002
Location: Woodstock, VA
Posts: 416
Dropdown list in HTML

I can make the list okay, but I need to know how to make the items link to other sites when they are clicked. What I have now is something like

<select name="example">
<option>option1
<option>option2
<option>etc.
</select>

I want to make the options link to other pages on the site. How do I do that?

Thanks
Reply With Quote
  #2  
Old 02-13-2003, 03:23 PM
rid3r's Avatar
rid3r rid3r is offline
Grasshopper extraodinaire
 
Join Date: Dec 2002
Location: Ukraine
Posts: 847
<option><a href="http://..>option1</a> probably...
__________________
Slackware 8.1 9.1 FreeBSD 5.1
box 301327 Linux Counter
combining `date` with `cal`:
d=$(date | cut -d' ' -f3) ;\
echo -e "$(cal | sed -e "s/$d/\\\033[30;47;1m$d\\\033[0m/")"
Reply With Quote
  #3  
Old 02-13-2003, 03:33 PM
JoeyJoeJo JoeyJoeJo is offline
Registered User
 
Join Date: Aug 2002
Location: Woodstock, VA
Posts: 416
Quote:
<option><a href="http://..>option1</a>
Ive tried that, but with no results. I thought maybe there was some special way to do it.
Reply With Quote
  #4  
Old 02-13-2003, 03:48 PM
bjornredemption bjornredemption is offline
Grasshopper with Chainsaw
 
Join Date: Jul 2002
Location: Behind you
Posts: 99
Its actually
<option value=option1> option1 </option>
You have to specify a value.
Reply With Quote
  #5  
Old 02-13-2003, 04:26 PM
gig2k1s gig2k1s is offline
Fulltime Slacker
 
Join Date: Jul 2002
Location: NY
Posts: 117
how about putting it in a form, and having the submit button call a javascript that redirects to that link?
Reply With Quote
  #6  
Old 02-13-2003, 06:39 PM
sajchurchey's Avatar
sajchurchey sajchurchey is offline
Network Engineer
 
Join Date: Dec 2002
Location: GA--United States
Posts: 273
Try using some form of JavaScript and using the onclick event or something similar.
__________________
SAJChurchey
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:38 AM.

Help File Library
Filesystems
Troubleshooting
Networks
Shells
Tools
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
Free Newsletter
Server Daily


More Free Newsletters




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.