467,072 Members | 1,216 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,072 developers. It's quick & easy.

how to enable a HSCroll bar and displaya tool tip

hello Frendz,

1.I want to display a tool tip for each item in multi select
box(list box) in a web page.
2.i want to enable the horizondal scroll for the list box.
if any genius knows the solution .pls reply me.
regards,
Deeps
Jul 20 '05 #1
  • viewed: 4454
Share:
1 Reply
Deepak wrote:
hello Frendz,

1.I want to display a tool tip for each item in multi select
box(list box) in a web page.
This one's easy. I think you're talking about a structure like this.
<select multiple="multiple">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>

To get a tooltip, just add a title attribute to each <option>
element. IIRC, it doesn't work in IE, but who cares. It works in
standards compliant browsers (well, I know it works in, at least,
Mozilla). There is no way, unless someone has a javascript method, to
do it in IE.

eg.
<option value="1" title="Title Text...">Option 1</option>

If you also add a title attribute to the <select> element, it will be
shown for options that don't have a title attribute. It will not show
both the select title and the option title at the same time.

2.i want to enable the horizondal scroll for the list box.
if any genius knows the solution .pls reply me.
regards,
Deeps


You could try the CSS 'overflow: scroll;' property, but no
guarentees. I don't have time to test it, you can do that.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by news.microsoft.com | last post: by
1 post views Thread by Gates72 | last post: by
1 post views Thread by Jayender | last post: by
8 posts views Thread by rongchaua | last post: by
9 posts views Thread by 7stud | last post: by
1 post views Thread by =?Utf-8?B?RUVL?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.