Peter Reid wrote:
>
> > > The problem I'm having is that I can't easily work out which half of
> > > a hot word the user has clicked into. I can get the ClickText() for
> > > the whole word and the ClickChunk() tells me the chars of the whole
> > > word. The ClickLoc() gives me a coordinate pair, but I can't see how
> > > to relate this to the characters in the hot word. What makes life
> > > difficult is the fact that the HTML has variable size text as well as
> > > some mixed plain and bold text.
> >
> >Check out the clickCharChunk function.
>
> Thanks Kevin, this works as well as mouseCharChunk() suggested by Phil Davis.
>
Kevin's solution is better than mine, because the clickCharChunk gives
you a chunk expression that reflects the location of the event you're
basing the navigation on, and is not affected by subsequent mouse
wanderings. The mouseCharChunk, on the other hand, simply reports the
current mouse location in terms of the underlying text. It doesn't
actually tell you where the click happened, but only where the mouse is
when the function executes (hopefully very soon after the click
happened).
Phil
--- snip ---
>
> --------------------------------------------------------
> Peter Reid
> Reid-IT Limited, Loughborough, Leics., UK
> Tel: +44 (0)1509 268843 Fax: +44 (0)1509 264986
> E-mail: [EMAIL PROTECTED]
> Web: http://www.reidit.co.uk
--
Phil Davis
------------------
[EMAIL PROTECTED]