|
Posted by Jonathan N. Little on 11/04/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
[Back to original message]
|