SunQuest
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 4th, 2004, 12:08 AM
caroundw5h caroundw5h is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 181 caroundw5h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 55 m 34 sec
Reputation Power: 0
drop down menu

is there a way to have the first option of a drop down menu be blank. so the user cannot see any writing without picking one:
ex menu:
option1:
option2:kdfdkf
option3:farerjr
option4:gar
__________________
"In theory, there is no difference between theory and practice.
But, in practice, there is."


Reply With Quote
  #2  
Old April 4th, 2004, 08:49 PM
Zao's Avatar
Zao Zao is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Kansas
Posts: 60 Zao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 30 sec
Reputation Power: 5
Send a message via MSN to Zao Send a message via Yahoo to Zao
Yes there is a way.
Code:
<select>
  <option>&nbsp;</option>
  <option>option1</option>
  <option>option2</option>
</select>

Now I always liked to something like this. So there is just no blank spot in the drop menu. But it is whatever you like.
Code:
<select>
  <option>--</option>
  <option>option1</option>
  <option>option2</option>
</select>

have fun. see ya

Reply With Quote
  #3  
Old April 6th, 2004, 04:16 PM
caroundw5h caroundw5h is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 181 caroundw5h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 55 m 34 sec
Reputation Power: 0
Thank you for your reply.

I have the following code
Code:
Highest Level:<br/>
<select name = "Level">
<option>&nbsp</option>
<option value ="rep"> Representative
<option value ="Manager">Manager
<option value ="Owner">Owner
<option value ="Investor">Investor
<option value ="Other">Other
</select>
<p/>

it works well in netscape however in IE, the latest. The first value is always present. I even tried
Code:
<option></option>
Can you tell me what is wrong. Thank you.

I really don't like IE.

Reply With Quote
  #4  
Old April 6th, 2004, 05:58 PM
Chris Boulton's Avatar
Chris Boulton Chris Boulton is offline
Insignificant User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 17 Chris Boulton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try adding a value="" to it like this:
Code:
 <option value=""> </option>
 

Reply With Quote
  #5  
Old April 9th, 2004, 01:04 AM
Zao's Avatar
Zao Zao is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Kansas
Posts: 60 Zao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 30 sec
Reputation Power: 5
Send a message via MSN to Zao Send a message via Yahoo to Zao
Well I copyed your code, and what you have works just fine in ie 6.0, so I don't know really. But I did notice that on your code.

Code:
Highest Level:<br/>
<select name = "Level">
<option>&nbsp</option>
<option value ="rep"> Representative
<option value ="Manager">Manager
<option value ="Owner">Owner
<option value ="Investor">Investor
<option value ="Other">Other
</select>
<p/>

on the first option the &nbsp, you forgot the ;. But I am sure that is just a type o. But anyways

Reply With Quote
  #6  
Old April 9th, 2004, 02:29 PM
caroundw5h caroundw5h is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 181 caroundw5h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 55 m 34 sec
Reputation Power: 0
That is weird. I changed the code again and it seems to work i don't know what i could have done wrong. but i thank you for your help anyway.

can you tell now why the following code won't allow me to link to the contact.htm page. are buttons not used like that in IE
Code:
<a href = "contact.htm"> 
<input type ="button" value ="GET STARTED NOW">
</a>

Reply With Quote
  #7  
Old April 9th, 2004, 03:06 PM
Ran321 Ran321 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 30 Ran321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 27 sec
Reputation Power: 6
I'm not totally sure but i think maybe

Code:
<a href = "contact.htm"
          input type ="button" 
          value ="GET STARTED NOW">  </a>

Reply With Quote
  #8  
Old April 10th, 2004, 05:15 AM
Zao's Avatar
Zao Zao is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Kansas
Posts: 60 Zao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 30 sec
Reputation Power: 5
Send a message via MSN to Zao Send a message via Yahoo to Zao
Well when you have that, you got to tell the input button what to do when the user click's on the button. So to fix that is what is below.


Code:
<input type="button" value="GET STARTED NOW" onClick="window.location='contact.htm'">


Anyways, I am going to go to bed now. I hope that works for ya, tell me if that works for ya. If not, I am sure we can think of another way to get around that. See ya

Last edited by Zao : April 10th, 2004 at 05:17 AM.

Reply With Quote
  #9  
Old April 10th, 2004, 09:01 AM
caroundw5h caroundw5h is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 181 caroundw5h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 55 m 34 sec
Reputation Power: 0
Thanks guys. zao that code fixed it up in IE for me. so whenever I use a button to relocate i should use the on.click attribute instead of a nested script huh? Thanks I never found that in my tutorial.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > drop down menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway