473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Advice needed on Select Box option display...

Hi,
I have a select box that has a fixed width. The fixed width is used to
ensure that the select box does not appear distorted on the form.

When the user selects an option, how do I show a tip for any titles
that are longer than the width of the select box, e.g. "Harry Potter
and the Prisoner of Azkaban"? If this is not possible, can anyone here
suggest ways that can make the longer titles visible to the user when
the select box is opened?

<select size="1" name="title_select" style="width=170px">
<option value="">Please select a film title</option>
<option value="A1">Ray</option>
<option value="A2">Harry Potter and the Prisoner of
Azkaban</option>
<option value="A3">The Aviator</option>
<option value="A4">Harry Potter and the Chamber of
Secrets</option>
<option value="A5">Eternal Sunshine of the Spotless Mind</option>
</select>

Thanks,
June.
Jul 23 '05 #1
2 1307
Can't be done. HTML 4.01 specifies that onmouseover can appear on an
OPTION tag (letting you work out which list item is highlighted), but
Internet Explorer 6.0 doesn't support it. Firefox and, I guess, a few
others do. In Firefox it looks OK anyway, because the dropdown portion
of the list is the appropriate width.

The Microsoft solution seems to be buy a bigger monitor or choose a
smaller font size. Unless you want to use some DIVs, some CSS and some
script to create something that looks and behaves like a list - but I
wouldn't necessarily recommend that!
Jul 23 '05 #2
You could do a fake wrap of your optioins.

First put a seperator option between every title:

<option value="">-----------------------</option>

then just split your long descriptions onto two or more lines.

<option value="A2">Harry Potter and the</option>

<option value="A2">Prisoner of Azkaban</option>

<option value="">-----------------------</option>

That's one way to try it.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob | last post by:
Hallo, I have to make a web application in Javascript/ASP for tenniscourt reservation (based on Access database). I would like to do everything with one page, because the user must be able to...
1
by: Amish | last post by:
Hi, I have CSS based popup menus which display over a select list. Everything works fine with Mozilla and Firefox but in IE the select list is always on top of the display block. The z-index as...
2
by: Joachim Bauer | last post by:
I'm using the code below to display a menu that opens when the mouse goes over the main menu item (try it in your browser to understand the behaviour). It uses "position:absolute" and a switch...
3
by: d.schulz81 | last post by:
Hi all how can i manipulate a multiple select into a single select dropdown field with JavaScript? thanks
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
7
keyvanrahmadi
by: keyvanrahmadi | last post by:
Hello everyone, i am a bit coonfused and possibly being completely dense about the solution for the following dilema: I have created 6 drop down menus which are being populated with data: ...
4
by: gregincolumbus | last post by:
I am trying to get the financial calculation on this to trigger whenever there is a change to select1. Right now, the user has to click on select2 to trigger the changes. Ideally, a change of...
2
by: FlashCreations | last post by:
Hello, I am trying to use javascript to validate a form that has three select inputs. Here is the form: <form name="select" action="main.php" method="post" onsubmit="return ValidateSelect(this)"> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.