• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

javascript popup

Junior Spellweaver
Joined
Aug 15, 2011
Messages
167
Reaction score
15
Hello,

I want something on my site:

When you click a button, a popup will apear. But I don't want a normal windows screen, but my own div's. Is that possible? And with a close button.
If nobody knows what I mean, tell me and I'll post a screenie.

Thanks in advance,

Galago
 
Newbie Spellweaver
Joined
May 20, 2010
Messages
81
Reaction score
20
You mean like creating your own kind of window for a popup? maybe hiding an html element and when the button is clicked just set it's status to visible and make the rest of the screen dark, I guess it is possible that way but I'm not sure how to do it.
 
Praise the Sun!
Loyal Member
Joined
Dec 4, 2007
Messages
2,502
Reaction score
986
Set display: none; on pageload, then toggle using jQuery or JavaScript.

 
Pee Aitch Pee
Joined
Mar 30, 2011
Messages
630
Reaction score
422
What about this:
Shouldn't be a problem to modify the jQuery UI CSS.
 
Last edited:
Joined
Aug 4, 2010
Messages
572
Reaction score
177
What about this:
Shouldn't be a problem to modify the jQuery UI CSS.

I think it's easier and better practice if they do it their self.

Create your div's, assign the ids.
Design it using CSS.
use .toggle or .hide/show and your fine.

Someone actually asked me this question the other day.
 
Junior Spellweaver
Joined
Aug 15, 2011
Messages
167
Reaction score
15
Thank you all so much. Going to check all the links to see witch one is the best for me to use.
 
Back
Top