Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15007

Re: Grabbing words/text under mouse?

Path csiph.com!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <19461548.vUfxvZx9aS@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Tue, 10 Jul 2012 22:32:54 +0200
User-Agent KNode/4.4.11
Content-Transfer-Encoding 7Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
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
MIME-Version 1.0
Lines 35
NNTP-Posting-Date 10 Jul 2012 22:32:55 CEST
NNTP-Posting-Host e5d44bb6.newsspool3.arcor-online.net
X-Trace DXC=A?=aW`o5F:aJ00P1S40fZgMcF=Q^Z^V3h4Fo<]lROoRa8kF<OcfhCOkGGYUYI]Zj9nDZm8W4\YJNlR=i2=[N6Y6j<m\_aN72RWkeY`^c9OU[8i
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:15007

Followups directed to: comp.lang.javascript

Show key headers only | View raw


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


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