Highslide: Pause HTML Slideshow when Gallery Expands -


i created html gallery expands image every window.
http://mmvirtualtours.com/0002/photos.php

when run gallery slideshow pause when contained image expands. trying following code:

hs.expander.prototype.onafterexpand = function() {   if (this.contenttype == 'html') {       this.slideshow.pause();   

as pause after every transition in slideshow. need change contenttype , or there better way this?

thanks!

remove this:

hs.expander.prototype.onafterexpand = function() {     if (this.contenttype == 'gallery') {         this.slideshow.pause();     } }; 

add this:

// stop slideshow when viewing large image function stopslideshowandexpand(element, config) {     var exp = hs.getexpander(element);     if (exp.slideshow) {         exp.slideshow.pause();     }     return hs.expand(element, config); } 

change onclick large image in highslide-maincontent div:

<a class='highslide' href='media/01.jpg' onclick="return stopslideshowandexpand(this, largegalleryoptions1 )">     <img src='media/s01.jpg' alt='' / border="0"> </a> 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -