views:

60

answers:

3

My Problem in a subject. For Example: how can i dev my own Alert Pop-ups I think, its possible with overlays, but i dont know how.

A: 

My suggestion would be to use a combination of javascript and CSS. The key to the pop-up will be using a z-index in the CSS that puts it in front of the rest of the page content.

The javascript would just be used to activate and deactivate this section. You could also set up some other CSS classes to darken the rest of the page content, and apply those classes in the same javascript function.

JGB146
A: 

My suggestion would be to use BlockUI , its light-weight and very easy to use.

c0mrade
Decisions based on DOM model does not fit. The question is how or what can I use the overlay to achieve this effect.
Neurostep
Overlay based on XUL.
Neurostep
A: 

What about ol'good?

<script type="text/javascript">
   alert("Hello, I'm a pop-up!");
</script>

Eventually, you could use jQuery UI Dialog module: http://jqueryui.com/demos/dialog/

Edit: I think you should also say if you are interested in JavaSctipt OR XUL based solution.

Edit 2:

If you want to use XUL, check out this links:

I found them very useful when I was working on my own extensions.

Truly, all you need is a:

<box id="myBox"> content here </box>

plus some logic to open it.

rochal
The decision should be based on overlays with Javascript.
Neurostep
Overlay === XUL =)
Neurostep
hey, check my edit
rochal
Oh, Thanx, mate! But how can I place the box in the browser content?
Neurostep
how to set the absolute position of the box on the browser window?
Neurostep
Thanx to all for replys ) im check that staff!=)
Neurostep