Skip to content

Instantly share code, notes, and snippets.

@quanganhdo
Created September 1, 2009 06:57
Show Gist options
  • Select an option

  • Save quanganhdo/178950 to your computer and use it in GitHub Desktop.

Select an option

Save quanganhdo/178950 to your computer and use it in GitHub Desktop.
jQuery('textarea:visible').each(function(i, n) {
var current = this;
var pos = jQuery(this).offset();
var top = pos.top + jQuery(this).outerHeight();
var left = pos.left + jQuery(this).outerWidth() - 33;
jQuery('<img class="e3" id="e3_' + i+ '" src="' + e3_base_url + 'e3.png" />').appendTo('body');
jQuery('#e3_' + i).css({
position: 'absolute',
top: top,
left: left,
cursor: 'pointer',
border: 'solid 1px',
'z-index': '999'
}).click(function() {
e3_target = current;
showPack(packs[current_pack]);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment