// 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";