Hi Folks,

I was wondering if anyone knows how to create a pop up window like this page: http://www.allhealthcarejobs.com/aspx/JobPostingView.aspx?ja=indeed&code=K14&jobid=600694&=indeedOrg&utm_source=Indeed&utm_medium=organic&utm_campaign=Indeed

You will notice that after loading the page for 2 seconds, a pop up window appears that asks for the visitor's email id.

Does anyone know how to create this kind of pop up?

Thanks a bunch for any help ...

:)

I believe their pop up is done using Javascript. That's at least how I was taught. Been a while though.

it a mixture of javascript with css
hope this will help
****the javascript***

function setOn(cId){
	document.getElementById(cId).className = 'tafContOn';
}

function setOff(cId){
	document.getElementById(cId).className = 'tafContOff';
}

****the css*****

.tafContOn {
	background-repeat:repeat;
	width:100%;
	height:100%;
	position:fixed;top:0px;left:0px;
}
.tafContOff {
	display:none; float:left; 
}

on the body tag of your form you will add this to it onload="setOn(cId);"
"cId " must be the id of your the pop up you want to show
and the class of the pop up must be class="tafContOff" so it will always be invisible. In case you still don't get let me know

Thanks guys for your help ...

@kaion - I will try the method you suggested and will keep you posted abt it.

Thanks a bunch :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.