// The client side event ImageMouseOut takes two parameters, sender and e. // Sender is the object which is raising the event // e is the EventArgs function WebImageViewer_ImageMouseOut(sender, e) { var imageviewer = $find("WebImageViewer1"); // Gets reference to the browser event var browserRef = e.get_browserEvent(); // Stops the continuous animation from scrolling imageviewer.endNavigation(); // Get the scroll animation object var scrollAnimation = imageviewer.get_scrollAnimations(); // Get the NextItemAnimation object var nextItemAnimation = scrollAnimation.get_nextItemAnimation(); // Sets the NextItemAnimation object to move the first item into focus nextItemAnimation.moveItemIntoFocus(imageviewer.get_items().getItem(0)); }
Me.WebImageViewer1.ClientEvents.ImageMouseOut = "WebImageViewer_ImageMouseOut"
this.WebImageViewer1.ClientEvents.ImageMouseOut = "WebImageViewer_ImageMouseOut";
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2