Return to Snippet

Revision: 17026
at August 21, 2009 04:53 by gerhardsletten


Initial Code
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");
		}
	});
});

Initial URL

                                

Initial Description

                                

Initial Title
Jquery shift+click event

Initial Tags
event, debug, jquery

Initial Language
jQuery