Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.Expander.prototype.onMouseOutFires when the mouse cursor leaves the image or HMTL popup.
void hs.Expander.prototype.onMouseOut ( hs.Expander sender, object e )
Details
Parameters
ExampleClosing the image on mouse outThis example shows how to close the image when the mouse cursor leaves it. Put this in the head section of your page: <script type="text/javascript"> // close on mouse out hs.Expander.prototype.onMouseOut = function (sender) { sender.close(); }; // close if mouse is not over on expand (using the internal mouseIsOver property) hs.Expander.prototype.onAfterExpand = function (sender) { if (!sender.mouseIsOver) sender.close(); }; </script> The second example below also opens on mouse over. This is how you mark up the thumbnail. Note how we pass onmouseover over to the onclick event handler to make Highslide work well with preloading, previous/next and image clicks. <a class="highslide" href="../samples/full3.jpg" onmouseover="return this.onclick()" onclick="return hs.expand(this)"> <img src="../samples/thumb3.jpg" alt=""/> </a> Try the effect:
See also |