Click here to Skip to main content
16,016,736 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
http://www.clubmahindra.com/

in the above line when i am opening this website ...dialog box open ...in the backside page look like transparents how to create this type dialobox....

and other when i was clicked on feedback button other dialog open how to di this please help me
Posted
Updated 15-Oct-12 3:16am
v2

try "div class="overlay" to do this as :

JavaScript
var gab = document.createElement('div');
  gab.setAttribute('id', 'OVER');
  gab.innerHTML='<div class="overlay"><h1>hello</h1></div>';
  document.body.appendChild(gab);


use a CSS class like
CSS
#OVER{width:100%; height:100%; left:0;/*IE*/ top:0; text-align:center; z-index:5; position:fixed; background-color:#fff;}
.overlay {width:100%; z-index:6; left:0;/*IE*/ top:30%; font-color:#cdcdcd; font-size:0.8em; text-align:center; position:fixed; background-color:#000;}
 
Share this answer
 
v2
Comments
Devendra 1988 6-Sep-12 3:37am    
its good sir but my question is diffeent
Hi,


You can create this effect using simple divs as well.
1.Create a div1 with width and height same as your page.
2.Put your popup in a div2.
3.Set your z-index of div such that the popup div2 is above the div1.
4.Set the opacity,filter to 50% for the div1.
5.Make all this divs visible in your page load.


Code samples:
div1 code:
XML
<div id="screenhide" visible="false" runat="server" style="background-color:#fff;width:100%; height:100%; position: absolute; top:0; left:0; z-index: 5;opacity:0.8;filter:alpha(opacity=80)">
    </div>



Hope this helps.
 
Share this answer
 
see below Link
It will help you
Link 1[^]
Link 2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900