How do you add an inline popup menu like Facebook's "hide story" menu?
How can I create a simple popup menu开发者_JS百科 like Facebook's "hide story" popup using jquery? Is there a plugin that handles this functionality?
Here's an example:
UPDATE
I ended up adapting the following blog post to work: Facebook Style CSS JQuery drop down menus
All CSS with relative and absolute positioning.
Example: http://jsfiddle.net/maniator/c36Gq/
Here is one with a little javascript added on: http://jsfiddle.net/maniator/fRvs9/
How about http://jqueryui.com/demos/dialog/?
$("#click_button").click(function(){
$("<div/>", {style:'position:relative;background-color:navy;border:1px solid blue;width:150px;top:150px;'}).html('hello').appendTo('body')
});
精彩评论