Hy i need a script to show ads on page like this http://www.avnads.com/ (when enter on the page showing the ads, whith the transparent background) Ad i want to be displayed one per 24 hours ... (i mean if i see the ad today at 4:02 PM, next time when i will see will be tomorow at 4:02 PM) For this script i will pay 15$ via paypal ... (i don`t have any more ) Thank you .. laffin
Maybe this will be of use to you? You'll need to modify to suit your needs, but i think it does what you have described. Save this to some file and try it in your browser. The normal web page content is displayed, but if this is your first visit the site is darkened and a box is shown in the center of the page. To determine if this is your first visit or not the script checks for the "lastSawPopup" cookie, if it exists the site is displayed as normal, if not it sets the cookie (which will expire in 24 hours) and shows the popup. While you are testing, be sure to clear your browser's cookies before reloading the page to see the popup ad.. unless you want to wait 24 hours. <html> <body bgcolor=blue text=white onload="openPopup();"> <!-- WEB SITE CONTENT START --> <h3>This is a test web page</h3> Bla bla bla<br> bla bla<br> bla bla bla bla<br> <!-- WEB SITE CONTENT END --> <script language=JavaScript> function openPopup() { var lastSawPopup = readCookie('lastSawPopup'); if (lastSawPopup == null) { createCookie('lastSawPopup',1); document.getElementById('blackBackground').style.display=''; document.getElementById('popup').style.display=''; } } function closePopup() { document.getElementById('blackBackground').style.display='none'; document.getElementById('popup').style.display='none'; } function createCookie(name,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; var value = date.toGMTString(); 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; } </script> <div id=blackBackground style='position:absolute;top:0px;left:0px;height:100%;display:none;'> <table width=100% border=0 style="height:100%;" cellpadding=0 cellspacing=0> <tr><td width=100% bgcolor=black style="height:100%;filter:alpha(opacity=50);opacity: 0.50;" align=center valign=middle></td></tr> </table> </div> <div id=popup style='position:absolute;top:0px;left:0px;height:100%;display:none;'> <table width=100% border=0 style="height:100%;" cellpadding=0 cellspacing=0> <tr> <td width=100% style="height:100%" align=center valign=middle> <table border=0 width=400 height=200 bgcolor=black cellpadding=1 cellspacing=1> <tr> <td bgcolor=red align=center valign=middle> <!-- POPUP BOX CONTENT START --> <font color=black> Some Ad<p> <a href=# onClick='closePopup();return false;'>Close</a> </font> <!-- POPUP BOX CONTENT END --> </td> </tr> </table> </td> </tr> </table> </div> </body> </html> HTML: I hope this helps!