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
Post a Comment