You are here: Re: how to get text below mouse pointer « HTML « IT news, forums, messages
Re: how to get text below mouse pointer

Posted by Jonathan N. Little on 12/21/65 11:45

frederick@southernskies.co.uk wrote:
> Jonathan N. Little wrote:
>> Google "CSS tooltips" and steer clear of JavaScript solutions.
>
> I don't believe that's what the OP was after; (s)he wanted to be able
> to "select" a word, say amidst some text, and then feed it to a script.
> I suppose a bit like how you can double-click on a word in a word
> processor and then access a context-sensitive menu for a spell-check or
> whatever.
>
> I have absolutely no idea how (or why) you'd go about doing it, though.
> One for comp.lang.javascript or similar, perhaps?


Ah, yes I see you are correct by studying OP's initial post. I am fairly
sure you cannot do what OP wishes with HTML even with JavaScript to
assist. In fact finding the exact mouse position with respect to the
document and viewport is a major challenge for cross-browser support

http://www.quirksmode.org/js/events_properties.html
Javascript - Event properties

let alone 'recognizing' what word is where within the flow of the
document! Where it was varies by browser, viewport size, font size and
font used by user's system! Maybe some java applet or within a flash
object but anywhere in a webpage? Don't think it is possible?



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация