Jump to content

Recommended Posts

Posted

hi i went on line and found a code for a java scrip pop up page gray out

how ever i want this scrip to automatic comes up after five seconds what code do i need to change below for this to happen currently it come up only is people click the shaw button

please advise

 

 

 

function showPopUp(el) {

var cvr = document.getElementById("cover")

var dlg = document.getElementById(el)

cvr.style.display = "block"

dlg.style.display = "block"

if (document.body.style.overflow = "hidden") {

cvr.style.width = "1024"

cvr.style.height = "100%"

}

}

function closePopUp(el) {

var cvr = document.getElementById("cover")

var dlg = document.getElementById(el)

cvr.style.display = "none"

dlg.style.display = "none"

document.body.style.overflowY = "scroll"

}

 

#cover {

display:none;

position:absolute;

left:0px;

top:0px;

width:100%;

height:100%;

background:gray;

filter:alpha(Opacity=50);

opacity:0.5;

-moz-opacity:0.5;

-khtml-opacity:0.5

}

#dialog {

display:none;

left:300px;

top:150px;

width:380px;

height:350px;

position:absolute;

z-index:100;

background:#00CCFF;

padding:2px;

font:10pt tahoma;

border:1px solid gray

}

.style2 {

color: #000066;

font-weight: bold;

}

Free Quick Moving Quote

 

[Close]

Show

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...