Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15007
| Message-ID | <19461548.vUfxvZx9aS@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-07-10 22:32 +0200 |
| Subject | Re: Grabbing words/text under mouse? |
| Newsgroups | comp.lang.javascript |
| References | <Q5ydnay5Dr1l5mHSnZ2dnUVZ_j-dnZ2d@earthlink.com> <eli$1207101533@qz.little-neck.ny.us> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Eli the Bearded wrote: > In comp.lang.javascript, Michael Joel <null@void.void> wrote: >> I want to be able to get word definitions to display when a user double >> clicks a word being displayed. > > I've used sites that do this and I find it very annoying. I double > click to select words and I triple click to select a paragraphs. > Usually I do this as a visual bookmark when scrolling, but sometimes > to cut&paste. It would not interfere if there was a definition mode that you need to enable first. > If you want to include a glossary for difficult words, you can just use > <a> links with title text: > > <a title="section of a document that defines words">glossary</a> Not so. If it is a link, use an `href' attribute. If it is not a link, do not use an `a' element; use a `span' element or another inline-level element if it is better semantically. All those have a `title' attribute. However, be aware that the `title' attribute does not mean "tooltip"; it means "additional information" and does not prescribe a certain kind of display. If you want a tooltip, use CSS; for example, my Accessible Pure CSS Tooltips, which can be complemented with scripting, as used on <http://PointedEars.de/es-matrix>. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Grabbing words/text under mouse? Michael Joel <null@void.void> - 2012-07-10 15:01 -0400
Re: Grabbing words/text under mouse? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-10 19:39 +0000
Re: Grabbing words/text under mouse? Michael Joel <null@void.void> - 2012-07-10 19:46 -0400
Re: Grabbing words/text under mouse? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-11 08:39 +0000
Re: Grabbing words/text under mouse? Scott Sauyet <scott.sauyet@gmail.com> - 2012-07-12 19:40 -0700
Re: Grabbing words/text under mouse? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-13 07:06 +0000
Re: Grabbing words/text under mouse? Eli the Bearded <*@eli.users.panix.com> - 2012-07-10 19:42 +0000
Re: Grabbing words/text under mouse? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-10 22:32 +0200
Re: Grabbing words/text under mouse? Martin Honnen <mahotrash@yahoo.de> - 2012-07-11 13:08 +0200
Re: Grabbing words/text under mouse? Dr J R Stockton <reply1228@merlyn.demon.co.uk.not.invalid> - 2012-07-11 21:15 +0100
csiph-web