SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Jquery pop up

  1. #1
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    USA
    Posts
    633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jquery pop up

    Hi Guys

    I want to a floating or auto pop up a few seconds after my
    home page loads, can someone let me know what I should looking at please.

    Thank you so much
    DD

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    My first question would be is would the popup be generated with the page markup or dynamically in the JavaScript?

    My second question is would is act like a native browser popup where it floats in the center of the page?

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,145
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Look at the JQuery UI Dialog component, I think it does exactly what you need.
    The only code I hate more than my own is everyone else's.

  4. #4
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by oddz View Post
    Look at the JQuery UI Dialog component, I think it does exactly what you need.
    That would be my first thought as well but for one popup it seems pretty heavy to use even if you customize the download, it would be more efficient to just use jQuery by itself just for performance purposes.

  5. #5
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    USA
    Posts
    633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SgtLegend View Post
    My first question would be is would the popup be generated with the page markup or dynamically in the JavaScript?

    My second question is would is act like a native browser popup where it floats in the center of the page?
    I want it similiar to some sites, which pop up and ask you to register.
    In our case we just want to display a message when the home pages is loaded
    and then when he clicks OK the pop up should close.But we also donot want it to appear each time the same user goes to the home page.

    Thanks
    DD

  6. #6
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is something I use for myself a lot.
    Just a quick jQuery plugin i put together years ago.

    Maybe it will help you.

    jQuery Overlay Plugin

    If you don't want it to appear over and over again use cookies.

  7. #7
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    USA
    Posts
    633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JoshMesser View Post
    This is something I use for myself a lot.
    Just a quick jQuery plugin i put together years ago.

    Maybe it will help you.

    jQuery Overlay Plugin

    If you don't want it to appear over and over again use cookies.
    Thank you so much for this, exactly what I was looking for.

    DD

  8. #8
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's no problem I have been meaning to update that thing forever. But I just don't have the time. if you make any changes let me know.


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
  •