1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<div id="blanket" style="display:none"></div> <div id="popUpDiv" style="display:none"> <a href="#" onclick="popup('popUpDiv')" >Click to Close CSS Pop Up</a> </div> <a href="#" onclick="popup('popUpDiv')">Click to Open CSS Pop Up</a> #################################################### <body onload="popup('popUpDiv')"> #################################################### #blanket { background-color:#111; opacity: 0.65; *background:none; position:absolute; z-index: 9001; top:0px; left:0px; width:100%; } #popUpDiv { position:absolute; background:url(pop-back.jpg) no-repeat; width:400px; height:400px; border:5px solid #000; z-index: 9002; } |