Results 1 to 3 of 3

Thread: dd Drop Down Panel help

  1. #1
    Join Date
    Sep 2009
    Posts
    33
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default dd Drop Down Panel help

    1) Script Title: DD Dynamic Drop Down Panel
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    3) Describe problem:

    Hey guys, I am trying to configuire the DD Dynamic Drop Down Panel to the bottom of the page instead of the top

    Is there a way to do this so it always sets at the bottom and moves the page up when toggled? Thanks ahead of time

    -A
    Last edited by aaronrusso; 02-10-2011 at 07:25 PM.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Hello! I made a simple "drop-up panel" that you can use if you like:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Slide Up toggle box</title>
    <style type="text/css">
    body {
        margin:0;
        padding:0;
    }
    #slideupbox {
        position:fixed;
        width:100%;
        height:200px;
        bottom:-200px;
        background:#CCC;
    }
    #togglebutton {
        position:relative;
        background: #95ABB7;
        margin-top:-34px; 
        cursor: pointer;
        margin-left:auto;
        margin-right:auto;
        color:#FFF;
        font-size:20px;
        font-weight:bold;
        width:80px;
        height:30px;
        text-align:center;
        padding-top:4px;
    }
    h1, h2 {
    	text-align:center;
    }
    </style>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function($) {		
     $('#togglebutton').toggle(function() {
     $('#slideupbox').animate({bottom: "0px"});
          }, function() {
     $('#slideupbox').animate({bottom: "-200px"});
        });
    });
    </script>
    </head>  
    <body>
    <h1> Slide-up-toggle-box</h1>
    <div id="slideupbox">
    <div id="togglebutton">Toggle</div>
    <h2>Now You See me..... now you don't</h2>
    </div>
    </body>
    </html>
    Edit: Ok here is a DEMO
    Last edited by azoomer; 02-10-2011 at 11:39 PM.

  3. #3
    Join Date
    Sep 2009
    Posts
    33
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    AMAZING! Exactly what I was looking for. Thanks

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
  •