craiglaw98 wrote:
> ok yes thats what i have before but if you click to
slect the value then move
> the mouse out, it emptys the content
>
> what i need is
>
> 1. if a mouse hovers over show a preview
> 2. if a mouse moves off the hover over clear the
content.
> 3. onclick needs to display the value but then the
problem comes when the
> mouse is moved off it clears the content
> if onclick i need the value to be held when the mouse is
noved off.
>
> hope you can understand this
>
yes, the onmouseout event will fire every time after you move
the mouse
away from the links, even after you have clicked on it. you
could write
a js function that will set some var to true if a link has
been clicked
on, then another function for the onmouseout event that will
execute
only if the var is still false (a link has not been clicked
on). the
other links you have should call same function, just provide
different
values to put into the textarea. the onmouseover event of
your links
should change the value of textarea to temp value and then
revert it
back to previous value, not an empty string (otherwise if you
have
clicked on one link, but then move your mouse over another
link, the
previously clicked on value willl be deleted.
--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com