Must not be a very active forum. But for anyone who wants it. Here is the code for the functionality simular to pgatour.com (to make it slide out of sight instead of just abruptly dissapear).
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SL Ad Frame</title>
<style type="text/css">
body, html {
margin: 0;
background: #fef;
}
table {
margin: 0 auto;
background: #bca8bc;
border: 1px #000 solid;
}
td {
text-align: center;
padding: 0;
}
#splashLayer {
/*position: absolute; I would have this if we choose to make it float on top of the content.*/
top: 5px;
background: #bca8bc;
}
.content {
font: normal 12px verdana;
padding: 0 6px;
text-align: justify;
}
</style>
<script type="text/javascript">
var c;
var t;
var original_size;
function init(){
setTimeout("adStart()",5000);
c = document.getElementById('splashFrame').height;
original_size = document.getElementById('splashFrame').height;
/*alert(c);*/
}
var collTimer = null;
var expIMG = new Image();
expIMG.src = 'http://i.i.com.com/cnwk.1d/Ads/common/ilu/esc_cl_cnet.gif';
var colIMG = new Image();
colIMG.src = 'http://adimg.com.com/Ads/common/ilu/esc_op_cnet.gif';
function toggleAd(ad_id)
{
clearTimeout(collTimer);
var el;
if (el = document.getElementById(ad_id))
el.style.display = (el.style.display == 'none') ? 'block' : 'none';
if (el = document.getElementById('label'))
el.src = (el.src == expIMG.src) ? colIMG.src : expIMG.src;
}
function adStart(){
if(c<=0){
toggleAd('splashFrame');
document.getElementById('splashFrame').height = original_size;
stopCount();
} else {
c=c-1;
document.getElementById('splashFrame').height = c;
t=setTimeout("adStart()",1);
}
}
function stopCount(){
clearTimeout(t);
/*alert('done at ' + c);*/
}
</script>
</head>
<body onload="init()">
<table width="740" cellpadding="0" cellspacing="4" border="0">
<tr>
<td width="33%" align="center"><img src="http://www.zdnet.com/b.gif" width="60" height="1"></td>
<td width="33%" align="center"><img src="http://i.i.com.com/cnwk.1d/Ads/common/advertisement.gif" border="0" width="120" height="10"></td><td width="33%" align="right"><A HREF="javascript:toggleAd('splashFrame')" onclick="blur()" target="_self"><img id="label" src="http://adimg.com.com/Ads/common/ilu/esc_op_cnet.gif" width="60" height="15" border="0" alt="expand/collapse"></a></td>
</tr><tr>
<td colspan="3" align="center">
<iframe id="lb" src="http://adimg.cnet.com/mac-ad?adfile=3316/14/ilu/20040524/1/leader_0615.html&SEGMENTID=561480&HOST=http://adimg.cnet.com&AKAMAIHOST=http://i.i.com.com/cnwk.1d&CHECKPOINTHOST=http://chkpt.zdnet.com&TRACK:CLICKURL=http%3A%2F%2Fadlog.com.com%2Fadlog%2Fc%2Fr%3D6489%26s%3D561480% 26t%3D2004.07.09.17.19.53%26o%3D1:%26h%3Dcn%26p%3D2%26b%3D1%26l%3Den_US%26%26s ite%3D1%2F" width="100%" height="90" noresize scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td>
</tr><tr>
<td colspan="3" style="position:relative;text-align:left;">
<div id="splashLayer">
<iframe id="splashFrame" src="http://adimg.cnet.com/mac-ad?adfile=3316/14/ilu/20040524/1/splash.html&HOST=http://adimg.cnet.com&AKAMAIHOST=http://i.i.com.com/cnwk.1d" width="100%" height="210" noresize scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
for (x = 5; x != 0; --x)
document.write(
'<p class="content">' ,
'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' ,
'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' ,
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris ' ,
'nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in ' ,
'reprehenderit in voluptate velit esse cillum dolore eu fugiat ' ,
'nulla pariatur. Excepteur sint occaecat cupidatat non proident, ' ,
'sunt in culpa qui officia deserunt mollit anim id est laborum.' ,
'</p>'
);
</script>
</body>
</html>
Bookmarks