views:

67

answers:

5

Hello. I'm looking for some solution for creating modal dialog box, like when you are not logged in or donot have enought reputation, and try to vote on some question or answer at stack overflow... That orange box that is show...

Can someone help me?

+2  A: 

You could try jQuery dialog boxes.

Robert Kluin
+2  A: 

jQueryUI dialogs are a good choice. I have also used SimpleModal and been very happy with it: http://www.ericmmartin.com/projects/simplemodal/

Zach Girod
+2  A: 

Those are simple DIV's. No need to load up JQuery just for that.

<div class="error_hidden" id="error_dialog">Oops, there was an error!</div>

Write the CSS for the "error" and "error_hidden" then use a javascript event to change the class and position of the div, or better yet create a new div dynamically when the event fires.

FannyPack
A: 

Thanks guys. You showed me the solution

valter
You should choose one of their solutions as the answer so they get reputation
Chris T
select the correct answer. Also this should be a comment.
Woot4Moo