All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

how can i make pop up ad on homepage only

  • # December 28, 2012 at 9:33 am

    I wonder how to make popup ad. on opening site only , not all pages and appear one time on opening only

    # December 28, 2012 at 9:52 am

    You can have the ad pop up only if a specific cookie is not set, and once they go on the first page after the ad pops up create the cookie, so as long as the cookie is still there they won’t see the ad. Or you can log their IP address in a DataBase and only show it once per IP, but that isn’t as nice IMHO….

    # December 28, 2012 at 12:25 pm

    This reply has been reported for inappropriate content.

    Agreed. That is probably the most annoying thing ever. That and preventing the use of the back button.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed