Mutley Posted April 1, 2007 Share Posted April 1, 2007 How can I make say, 'test.php' pop-up in a small box on the center of the screen from a link? Is it an "onclick" command? I've seen ones that fade out the whole page around the box too, I guess this is a DIV? Quote Link to comment Share on other sites More sharing options...
redbullmarky Posted April 1, 2007 Share Posted April 1, 2007 for the former part, javascript can be used to open what is effectively a new browser window. you can also achieve it using a DIV and an iframe, which generally leads to much tidier results, albeit a little trickier. for the latter part of your question, the window in question is a 'modal' which is nothing more than a DIV (rather than an actual window) with a semi-transparent background to cover the main pagebody. as with the first, an onclick can trigger this. Here's an example using images: http://www.huddletogether.com/projects/lightbox/ hope that helps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.