Saturday, December 13, 2014

Javascript Pop up with dim and darker background

11:57 AM Posted by Peter Nguyen No comments





So today I was running into a small talk that  I need to dim the background when the web page started. In a very simple and naive way you would think of javascript that appends an action to a <div> that contains your message.

However the box will lock bored and ugly. There is a fast and efficient way to do it without any extra work, that is to use jquery style and UI.

For example at the jfiddle right here: http://jsfiddle.net/pmw57/jmPaC/1/

That library from Jquery has saved me a lot of time in styling and coding :)

0 comments:

Post a Comment