wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Tooltip stay longer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tooltip stay longer?" Watch "Tooltip stay longer?" New topic
Author

Tooltip stay longer?

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
I have a select input...with tooltips mentioned in the title attribute.

The tip stays only 5 secs or so...
is there a way to make them stay longer as the mouse is over that option?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

'fraid not.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
That is what the bartender said when a string walked into the bar and tried to order a drink!



Yeah, as Bear said you can not. It is a browser feature and one that we have no control over as developers.

Eric
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Lexi,

yes you can, see http://boxover.swazz.org/

I've used it last year to show very large data in tables.

Herman
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Originally posted by Herman Scheltinga:
hi Laxi,

yes you can, see http://boxover.swazz.org/

I've used it last year to show very large data in tables.

Herman


The problem is Laxi is using a select element with a title attribute and you can not use javascript tooltip on each individual option and be cross browser friendly.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Originally posted by Herman Scheltinga:

yes you can, see ...


Translation: "No, you can't. But here's an alternative that might be helpful..."
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
can I simulate mouseover event on each of the select's options?
is that possible?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

I'm not sure what you mean by that.
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Originally posted by Bear Bibeault:
I'm not sure what you mean by that.


Sorry about that.

I know there is no mouseover event for <option> tag.
(

Reference:
http://www.w3schools.com/jsref/jsref_onmouseover.asp

<a>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>, <body>, <button>, <caption>, <cite>, <code>, <dd>, <dfn>, <div>, <dl>, <dt>, <em>, <fieldset>, <form>, <h1> to <h6>, <hr>, <i>, <img>, <input>, <kbd>, <label>, <legend>, <li>, <map>, <ol>, <p>, <pre>, <samp>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>, <th>, <thead>, <tr>, <tt>, <ul>, <var>

)

I was just wondering is it possible to implement onmouseover event ( kind of simulate it...) on those option values
inorder to trigger some kind of custom tooltip....to show/to hide..

hope this is clear!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The only way would be to write your own dropdown list control out of a scrollable div and list items, add custom code to be able to select items, and more.

Eric
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Are there any reference/example web site which does my requirement?
( tooltip on select option stays as long as the mouse hovers it)
I just want to see that in action...

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Google for "DHTML tooltip"
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Originally posted by Bear Bibeault:
Google for "DHTML tooltip"


thanks..
but is there a specific link, can someone point me to?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tooltip stay longer?
 
Similar Threads
And the winners are....
fun game?
Future of mainframes
Timing on ToolTips
Javaranch