// The client side event ImageMouseOver takes two parameters, sender and e. // Sender is the object which is raising the event // e is the EventArgs function WebImageViewer_ImageMouseOver(sender, e) { var imageViewer = $find("WebImageViewer1"); // Gets reference to the browser event var browserRef = e.get_browserEvent(); // Get the scroll animation object var scrollAnimations = imageViewer.get_scrollAnimations(); // Set the Animation type to continuous scrollAnimations.set_type($IG.ScrollAnimation.Continuous); // Specify the direction imageViewer.navigateNext(); }
Me.WebImageViewer1.ClientEvents.ImageMouseOver = "WebImageViewer_ImageMouseOver"
this.WebImageViewer1.ClientEvents.ImageMouseOver = "WebImageViewer_ImageMouseOver";