feel free to use our's. it was modified by our coder, because initial wasn't smooth. guess that's what you are looking for.
it's customizable by the first 4 lines
Code:
var goUrl = "http://www.LINKHERE.com";
var bUrl = "http://www.BANNERSOURCEHERE.com/";
var bWidth = 628;
var bHeight = 90;
var mmver = navigator.appVersion;
allowc=1;
if (readCookie("MPD_PU") == null) {
if (mmver.indexOf('MSIE') != -1) {
document.write("<div id='PopWin' style='cursor: hand; z-index:1000; position:absolute; top:250px; width: " + (bWidth+2) + "px; height: " + (bHeight+22) + "px; left: 20%; border: 2px solid #000000;'>"
+" <table width='" + bWidth + "' height='" + (bHeight+20) + "' cellspacing='0' cellpadding='0' border='0' style='background-color: #666666;'>"
+" <tr height='20'>"
+" <td bgcolor='#666666' style='padding-right: 3px; background-color: #666666;' align='right'>"
+" <b><a style='font-size: 13px; color: #FFFFFF; font-family: Arial; text-decoration:none; background-color: #666666;' onmouseover='allowc=0'"
+" onclick='DivOffpuru()' title='Close' href='javascript: PopShow()' onmouseout='allowc=1'>Close[X]</a></b></td></tr>"
+" <tr><td>"
+" <center><a href='" + goUrl + "' target='_blank'><img src='" + bUrl + "' alt='MyPornDiary' border='0' height='" + bHeight + "' width='" + bWidth + "'></a></center></td>"
+" </tr></table></div>");
if (document.all['PopWin'].style) {
window.setInterval("MovePop()", 5);
}
window.onerror=null;
document.body.scrollTop=10;
} else {
document.write("<div id='PopWin' style='position:fixed; top:44%; width: " + (bWidth) + "px; height: " + (bHeight+20) + "px; left: 20%; z-index: 1000; border: 2px solid #000000;'>");
document.write(" <table border='0' width='" + bWidth + "' height='" + (bHeight+20) + "' cellspacing='0' cellpadding='0' style='background-color: #666666;'>"
+" <tr height='20'><td bgcolor='#666666' style='padding-right: 3px; background-color: #666666;' align='right'>"
+" <b><a style='font-size: 13px; color: #FFFFFF; font-family: Arial; text-decoration:none; background-color: #666666;'"
+" onclick='DivOffpuru()' title='Close' href='javascript: PopShow()' onmouseover='allowc=0' onmouseout='allowc=1'>Close[X]</a></b></td></tr>"
+" <tr><td>"
+" <center><a href='" + goUrl + "' target='_blank'><img src='" + bUrl + "' alt='MyPornDiary' border='0' height='" + bHeight + "' width='" + bWidth + "'></a></center></td>"
+" </tr></table></div>");
}
createCookie("MPD_PU", 1, 1);
}
function DivOffpuru() {
document.getElementById('PopWin').style.display='none';
}
function PopShow() {
DivOffpuru();
if (mmver.indexOf('Chrome') == -1 && mmver.indexOf('Safari') == -1) {
window.open("javascript:location.href='" + goUrl + "';", "PopWin", "width=950,height=650,resizable=1,toolbar=1,location=1,menubar=1,status=1,scrollbars=1");
} else {
window.open(goUrl, "PopWin", "width=950,height=650,resizable=1,toolbar=1,location=1,menubar=1,status=1,scrollbars=1");
}
window.focus();
setTimeout("allowc=1",1000);
}
function MovePop() {
if (document.body.scrollTop==0) {
document.all['PopWin'].style.top=document.documentElement.scrollTop+250;
} else {
document.all['PopWin'].style.top=document.body.scrollTop+250;
}
}
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
} else {
var expires = "";
}
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;