Jump to content

Popup with background greyed out


iceman023

Recommended Posts

I found this online.. What you think?? Is all that suppost to be in one file.. if so is it .php file or .js

 

<script language="javascript" type="text/javascript">

function showPopUp()

{

document.getElementById("dialogue").style.display = "";

document.getElementById("overlay").style.display = "";

}

function hidePopUp()

{

document.getElementById("dialogue").style.display = "none";

document.getElementById("overlay").style.display = "none";

}

</script>

 

 

<style type="text/css">

*html #overlay

{

/*\*/

position:absolute;

top: expression(((ignoreMe = document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop)) + 'px');

left: expression(((ignoreMe2 = document.documentElement.scrollLeft? document.documentElement.scrollLeft : document.body.scrollLeft)) + 'px');

/**/

}

</style>

 

<div id="dialogue" style="position:absolute;z-index:2000;top:280px;left:240px;width:340px;height:130px;border:1px solid black;background-color:#0055E7;font-size:12px;font-weight:bold;color:white;display:none">

  Pop Up Window

<table style="margin:13px 5px 5px 5px;background-color:lightyellow;color:black">

<tr><td align="center" colspan="2">What would you like to do now?<br /><br /></td>

</tr>

<tr>

<td><input type="button" name="btn_Close" id="btn_Close" onClick="hidePopUp()" value="Hide PopUp" /></td>

<td><input type="button" name="btn_Nothing" id="btn_Nothing" onClick="return false" value="Nothing" /></td>

</tr>

</table>

</div>

<div id="overlay" style="position:fixed;z-index:1000;top:0px;left:0px;width:100%;height:100%;background-color:#666666;opacity:.7;filter:alpha(opacity=70);display:none"> </div>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.