CodeCanyon

Generic Popups (jQuery)

1 post
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
edba1970 says

is there anyway displaying multiple popups with a single jquery statement? For example, I don’t want to use a specific selector. Rather it should select it depending on where I click or where my mouse is over. Like the following:

jQuery(’#struct7’).popup({innerHTML: ‘div’}) .popup(‘assign’, jQuery(‘id=handler’), ‘mouseenter’, ‘show’, { position: { relativeTo: jQuery(this), // or id=handler x: ‘right’, y: ‘topEdge’, offsetY: -10, inBoundY: false } }) .popup(‘assign’, jQuery(‘id^=handler’), ‘mouseleave’, ‘hide’);

where handler is any control that has the id = handler0, handler1, handler3 …

by
by
by
by
by