1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Ad Script

Discussion in 'HTML & Website Design' started by laffin, Nov 27, 2007.

  1. #1
    Hy mates ....

    I found yesterday this ad script, very nice, http://dynamicdrive.com/dynamicindex17/stickynote.htm

    But there ads appear after any refresh ...
    I want, if i see the ad one time, next time when appear, after 24 hours ...
    I think is possible whit cookies, but i don`t know how :)

    Anyone can help me please ?

    Thank you guys!
    laffin
     
    laffin, Nov 27, 2007 IP
  2. funnyspo

    funnyspo Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    have you try openads.org

    they rock!
     
    funnyspo, Nov 27, 2007 IP
  3. laffin

    laffin Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey man .. i ask other think :)
     
    laffin, Nov 27, 2007 IP
  4. laffin

    laffin Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no one ? :(( I really need this ..

    please help me!
     
    laffin, Nov 28, 2007 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not Page.IsPostBack Then
                If Request.Cookies("Visited").HasKeys Then
    
                    AdRotator1.Visible = False
    
                Else
    
                    AdRotator1.Visible = True
    
                    Response.Cookies("Visited")("HasVisited") = True
                    Response.Cookies("Visited").Expires = Now.AddHours(24)
    
                End If
            End If
        End Sub
    
    Code (.Net):
    The above is a .Net script to do what you want assuming the advertisement is in a control called adrotator1
     
    AstarothSolutions, Nov 28, 2007 IP