<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>rodsdot.com :: overlay ad divide with close</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="'JavaScript','DHTML','zoom','popup'">
<meta name="author" content="Roderick Divilbiss">
<meta name="copyright" content="© 2005-2010 Roderick Divilbiss">
<script type="text/javascript">
function loadOverlay() {
document.getElementById('ad').style.top='250px';
document.getElementById('ad').style.left='300px';
document.getElementById('ad').style.display='block';
}
function clickad() {
document.getElementById('ad').style.display='none';
}
//-->
</script>
<style>
<!--
#ad {
background-position: left top;
color: #FFFF00;
position: absolute;
width: 300;
height: 200;
text-align: center;
border: solid 2px #000000;
z-index:9;
background-image:url('images/overlayAd.jpg');
background-repeat:no-repeat;
}
# ad a {
color: #FFFFFF;
font-weight: bold;
background-color: #000000
}
-->
</style>
</head>
<body onload="loadOverlay();">
<div id="ad"><p>Act now before its too late.<br><br>Don't miss this golden opportunity<br>
<br><a href="javascript:clickad();">Close</a></p><p> </div>
</body>
</html>
Date Validation Using JavaScript .
Cross-Browser Clipboard Copy .
Loading Images With Remote Scripting .
Why JavaScript In Hyperlinks Is Bad .
Change The Submit Button To Show Waiting For AJAX Response .
European Date Validation Using JavaScript .
Database Results To Client Side Array .
Reading Files With JavaScript .
AJAX For Plain Text And HTML .
Act now before its too late.
Don't miss this golden opportunity