Twitist Forums
Where can I get the code, to make an ad appear in the middle of the page, and grey out everything behind it? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook Marketing (/forum-12.html)
+--- Thread: Where can I get the code, to make an ad appear in the middle of the page, and grey out everything behind it? (/thread-63633.html)



Where can I get the code, to make an ad appear in the middle of the page, and grey out everything behind it? - Marc W - 02-27-2013 07:13 AM

Such as the when you send a message or watch a video on the home page of facebook.


- alexandru.ionescu - 02-27-2013 07:20 AM

It's called a "modal popup".
If you are using ASP.NET & AJAX, you can watch this self-explanatory tutorial video
http://www.asp.net/learn/ajax-videos/video-85.aspx


- Pfo - 02-27-2013 07:22 AM

Yeah, it's a modal popup.

What is often done is, they place a div tag covering the whole page with an image that is gray but transparent. If you click on something in the page, you're just clicking on the div, which does nothing, preventing you from doing other things.