Click to See Complete Forum and Search --> : onmouseout function


insight
04-15-2003, 02:57 PM
Hi everyone--
Could you please direct your attention to http://insightfulart.com/DanaSmith/

The page (beyond the splash screen) has frames. The buttons on the left load a page in the central frame when they have onmouseover. Now, here's what I want to to do:

when the button has onmouseout, should turn back to the white page. Easy enough to do, right?

However, here's the catch. When the image is CLICKED, the onmouseout function should NOT happen. It should only happen if the image is not clicked.

Obviously this requires a function of sorts, of which I have no clue to do. Can somebody please help me code this?

Thanks,
-Sriram

havik
04-15-2003, 03:04 PM
Insert this into the link tags:

onMouseOut="window.open('original/preview.html', 'CONTENT')">

Where "original/preview.html" will be your white page

Try that.

Havik

insight
04-15-2003, 04:36 PM
Hi Havik-
That only solves half the problem... If I do that, then when the person moves their mouse away from the image, it reverts back to white. However, if the user clicks on the graphic, then the onmouseover event should not happen.

Thanks,
-Sriram

DrDaMour
04-15-2003, 04:44 PM
you'll have to set some type of sentinel eg:

onmouseclick="clicked=1" and onmouseout="if (clicked != 1) { do mouse out event;clicked=0}"

insight
04-15-2003, 04:51 PM
Hey--
Where do I add those snippets to the page?

Thanks,
-Sriram

DrDaMour
04-15-2003, 04:54 PM
in the image tag, anything beyond that is really out of the scope of a help forum, and you probably need to learn some programming basics.

DrDaMour
04-15-2003, 05:03 PM
yeah, it's onclick="click events" not onmouseclick, i always funk that one up