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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -