By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

how to enable a HSCroll bar and displaya tool tip

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.