|
|
 |
| HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 12th, 2006, 06:51 AM
|
|
Friend of Wrox
|
|
Join Date: Sep 2004
Location: Tehran, Tehran, Iran.
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
tooltip interval???
Hi all,
How shall I change the hovering interval of the tooltip (or prevent it to hide) which appears when you hold the mouse pointer over an object to which a title attribute is assigned?
|

July 12th, 2006, 07:07 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
As far as I know, tooltip display is completely browser / operating system controlled. What most sites do instead is to use DHTML to mimic the behavior of a tooltip, allowing them to provide very rich tooltips containing structured data and images. Doing this will also allow you to modify the hovering interval.
This site has a simple example: http://www.walterzorn.com/tooltip/tooltip_e.htm ... but I've never used their code personally so take the link for what it's worth :).
Jon Emerson
http://www.jonemerson.net/
|

July 12th, 2006, 01:57 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Also, they don't go away if you keep your mouse pointer still. :)
--
http://yupapa.com
|

July 13th, 2006, 10:44 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Location: , , .
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Would this work? (A bit primitive) - Use an onmouseover event that triggers possibly a blur() or focus() after an interval (obviously allow the user enough time to read the tooltip). Like this:
<a href = "http://www.somewhere.com" title = "This goes somewhere" onmouseover = "removeTitle(10000)">Somewhere</a>
<input type = "hidden" id = "hField">
<script language = "javascript">
function removeTitle(readTitle)
{
window.setTimeout(document.getElementById('hField' ).focus(), readTitle)
}
</script>
Don't know if it will work, just a thought. You could also trigger a tab with sendKeys in VBScript but I think the tooltip would reappear unless the tab took them out of the viewing area they are in. may be the same with focus(), but worth a shot.
HTH!
Joe
'sync' <cr>
The name specified is not recognized as an internal or external command, operable program or batch file.
|

July 22nd, 2006, 04:29 AM
|
|
Friend of Wrox
|
|
Join Date: Sep 2004
Location: Tehran, Tehran, Iran.
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Meow, be sure it WILL dispear with the mouse pointer still (at least in windows).
and Interupt, I guess the input field is irrelevant.
Just suppose you have tones of pages (and UI components used in those pages) in hand (and of course having this defect) and suddenly your employer comes and tells you the interval is too little to read the whole stuff and asks to do something about it...
I don't want to replace the simple 'title' attribute with any new DHTML technique in all this pages nor do I want to extened those encapsulated UI components.
what would u do?!
Does anyone know anything about manipulating this interval in windows at least(since it seems it's more related to the OS than the browser).
|

August 4th, 2006, 01:05 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No, they won't. Not in IE, not in Opera and not in FF. Put your pointer on something with a tooltip, remove your hand and let the mouse lie there and you'll see. :)
I think you have to create your own tooltips if you want them to be more easy to read. It's easy enough with CSS, but since IE only accepts :hover on links you may want to look for a JavaScript solution instead.
--
http://yupapa.com
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |