Below I have explained how to create simple html div popup div using css and jquery. Try running example and check simple css and jquery code.
Features :
1) Draggable HTML popup div.
2) Elements behind the popup div will be disabled until popup div is active.
3) Easy customizable css.
Click here to see DEMO In broad window
Cick here view source of example html page
Required Javascript URL's For Popup Div:
- <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
- <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
Screen Shot of pop up window in javascript:
pop up window in javascript |
Thanks
ReplyDeleteYour script does not work in Firefox. Do you have a work-around?
ReplyDeleteIt is working perfectly fine in firefox check below link :
ReplyDeletehttp://jsfiddle.net/ehQ6A/1/light/
This is wonderful, but how do I allow multiple popups. For example, I need to have a list with each list item opening its own popup with unique information. I've modified the HTML, but I'm not sure what part of the javascript I need to modify. Thanks in advance!
ReplyDeleteTo achieve this you need to create popup html inside jQuery code and then apply the events in code by looping your list.
Deletecomplete code someone post please
ReplyDelete