I think you'd have to do something like this.
$('div.selectableText').mouseUp(function(e){
if (window.getSelection()){
var xCoord = e.pageX;
var yCoord = e.pageY;
//Use the coordinates (or maybe offset)
to position your little modal popup
}
)};
idrumgood
2009-08-27 20:40:04