javascript - hs.htmlExpand to the open popup on image click -


i like, when user click on image in open popup, content changed url in iframe (not close/open, crossfade)

i have gallery hs.transitions = ['expand', 'crossfade'].

next construction close old popup window , open new 1 (and break slideshow), want same effect (crossfade), user click next image.

hs.allowmultipleinstances = false; hs.expander.prototype.onimageclick = function() {     return hs.htmlexpand(null, { objecttype: 'iframe', src: 'url' }); }; 

how make it?

sample - http://jsfiddle.net/xcnfe/4/

you can’t crossfade image html popup if html popup isn’t part of gallery. instead can create regular iframe covers image jquery , show iframe when clicking image (onimageclick). please see http://jsfiddle.net/roadrash/b7sdg/

hs.expander.prototype.onimageclick = function (sender) {     $('<iframe src="'+this.custom.url+'" frameborder="0"></iframe>').css({         position: 'absolute',         top: '0',         height: '100%',         width: '100%',         background: '#fff',         zindex: 20     }).appendto(sender.wrapper);     return false; }; 


the url passed iframe src using hs.custom in onclick:

<a href="large-image.jpg" class="highslide" onclick="return hs.expand(this, galleryoptions, {url: 'http://highslide.com/'})">     <img src="thumbnail.jpg" alt="caption text" /> </a> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -