Contents Home Page Previous Page Next Page

A Pop-up Banner

Now you can annoy people with pop-up banners even if you haven't got a site on Geocities, Tripod, et al! If you click on the banner, the popup closes automatically, and the main browser window goes to the linked site. To create your own, get the source of this page, and also create a new file called "popup.htm" and copy/paste the code that follows, substituting the code for your banner in place of mine. Remember to include onClick="loadurl(this.href);return false" in the link code.

Code for popup.htm

<html>
<head>
<title>Please support our sponsor!</title>
</head>
<body bgcolor="#FFFFFF">
<script language="JavaScript">
function loadurl(url){
window.creator.location=url
window.close()
}
</script>
<center><a href="http://www.printing.com/promo.asp?site=apalme78" target="_top" onClick="loadurl(this.href);return false">
<img src="wbanner.gif" width=460 height=60 border=0 alt="Web Cards - Click here for free samples!"></a></center>
</body>
</html>