| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Dec 2003 Location: Chicago
Posts: 1,578
![]() ![]() | Creating Interstital Ad Pages Since neither of my advertisers offer interstitial ad pages, I was considering having the page be server-side and just display some large box ads on the interstitial. How would I go about creating this? I need to be able to set the frequency (per hour/day) per visitor and there also needs to be a "Skip" feature just like other advertiser's IA pages. I looked on hotscripts.com and couldn't find anything like it.
__________________ |
| |
| | #2 (permalink) | ||||
| Senior Member Join Date: Jun 2003 Location: Naperville Illinois
Posts: 1,786
![]() ![]() ![]() ![]() | PHP Code: Editing the code: Change "var timer = 10;" to how many seconds you want to wait on the ad page. Change "setcookie("shownad", "1", time()+1800);" to the number of seconds until the loading page is shown again. Set to 0 for ads to show every time. Use: if you save the file as loading.php, use the following url for loading the page: http://www.yourdomain.com/loading.ph...afterthead.com If a visitor uses the back button after the destination page loads, it comes back to the ad page. I don't know how to make it go back to the main page when users hit back.
__________________
| ||||
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Dec 2003 Location: Chicago
Posts: 1,578
![]() ![]() | I was following until you got to the last paragraph about the loading.php and the URL on the end of it. I want it all to be dynamic, and if I'm linking to various news stories (which obviously are continually updated and the URLs change), wouldn't it not work?
__________________ |
| |