Displaying ads in a box

Discussion in 'HTML & Website Design' started by zdestiny, Jul 31, 2006.

  1. #1
    How can you display that "box" on the page which pops up and displays an ad or an image? The box is shown over the content of the page. It also has a "close" button on the corner too, just like a real popup window. I'm sure you must have seen an example of this on many sites. I think it uses a div tag along with CSS.

    Can anyone help me?
     
    zdestiny, Jul 31, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    It is a real pop-up. Since popup blockers deny automatic popups, the jerkwater developer who wants to add them must figure a way to get the user to invite the popup. One way I've noticed it done was very simple; an onmouseover event handler was put on the body element. As soon as the user put his mouse cursor anywhere on the page, the javascript built the new window. There are probably any number of variations sorry-assed developers can use.

    cheers,

    gary
     
    kk5st, Jul 31, 2006 IP
  3. picklemy

    picklemy Peon

    Messages:
    227
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    zdestiny, i think your probably on about the Flash pop-ups that display on the page that usually contain a greeting or a special offer on the site?

    If so, look up Flash 8 tutorials as im pretty sure its a feature
     
    picklemy, Aug 2, 2006 IP
  4. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could be referring to a lightbox. Google it and you'll find all kinds of free scripts and tutorials.
     
    Gordaen, Aug 2, 2006 IP
    zdestiny likes this.
  5. zdestiny

    zdestiny Peon

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Gordaen, just what I was looking for!
     
    zdestiny, Aug 3, 2006 IP