Results 1 to 3 of 3

Thread: Exitable/Closable boxes with scrollers code?

  1. #1
    Join Date
    Jul 2011
    Posts
    40
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Exitable/Closable boxes with scrollers code?

    I've been checking up on dynamic ways of building a webpage.

    I noticed the boxes here on this webpage can appear and disappear with scroll bars.

    Is there a way to make a div box close with a button? Or appear after you click on a link or another div box?


    Example of Div Box that can appear and close

  2. #2
    Join Date
    Aug 2011
    Location
    both, Germany and Bulgaria
    Posts
    54
    Thanks
    14
    Thanked 10 Times in 10 Posts

    Default

    Of course there is a way. What about just use jQuery:

    Code:
    $("class or id of close button").click(function(){$("class or id of content to disappear").hide();});
    
    $("class or id of link or button").click(function(){$("class or id of content to appear").show();});
    Just check the jQuery documentation to see, how those functions are to be used!!

    Cheers

  3. #3
    Join Date
    Jul 2011
    Posts
    40
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Is there a way to make it like that example where it's fluid? As in you don't go to another page. (or so it seems to not load another link/page)

    When you press exit is the div being hidden or something?

    I'm wondering how to make it that way because it reminds me of a lot of the flash websites where you are always on the same page but the content can change.

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
  •