SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast greg606's Avatar
    Join Date
    Jan 2006
    Location
    Poland, Wrocław
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Effect similar to lightbox

    Hi,

    I want to create a popup that is displayed automatically after the page loads.
    It should look like lightbox (shadowing background)

    Any ideas how to achieve that?

    Regards,

    Greg

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd use thickbox


  3. #3
    SitePoint Enthusiast greg606's Avatar
    Join Date
    Jan 2006
    Location
    Poland, Wrocław
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, popup problem solved.
    But how to make it pop up after loading the page?

  4. #4
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thickbox provide instructions on how to invoke the pop-up, all you need to do is attach this to the onload event.


  5. #5
    SitePoint Enthusiast greg606's Avatar
    Join Date
    Jan 2006
    Location
    Poland, Wrocław
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a greenhorn.
    Please explain, provide example etc.

  6. #6
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    window.onload = invokePopup;

    or whatever the name of the popup function is.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •