SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru tictike's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what concept am i missing with pop up boxes (not alerts)

    I'm trying to make a simple pop up box display onclick. i found two solutions online: download code (i don't want to do that) or alter a div's z-index and display via javascript. but that didn't work for me. what concept am i missing?

    http://www.chris-rawlins.com/spQuestion/index.html

  2. #2
    SitePoint Enthusiast PicklePete's Avatar
    Join Date
    Apr 2008
    Location
    England
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey.

    I made a box like that for the login form on my site.

    All you need to make sure is the div is absolutely positioned, and it has a z-index higher than the content around it. After that, you can just use javascript to show/hide.

    Edit: Here you go. Made a quick example.

  3. #3
    SitePoint Guru tictike's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot!

    On a different note.... what is 'Lorem ipsum dolor sit amet, consectetuer adipiscing.....'? I see this text everywhere with code examples.

  4. #4
    SitePoint Enthusiast PicklePete's Avatar
    Join Date
    Apr 2008
    Location
    England
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tictike View Post
    what is 'Lorem ipsum
    From their website:

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

    Basically it just comes in handy when you need some filler text.


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
  •