/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
media_lightbox_links.each(function(i) { jQuery(this).bind('click', doOverlayOpen); // This function only happens if user hover element while holding shift-button down jQuery(this).bind('mouseover', function(e) { if (e.shiftKey) { //console.log("dobbelclick: " + jQuery(this).attr('rel')); doOverlayOpenId(this.hash); jQuery(jQuery(this).attr('rel')).trigger("click"); } }); });