PDA

View Full Version : dd Drop Down Panel help



aaronrusso
02-10-2011, 07:15 PM
1) Script Title: DD Dynamic Drop Down Panel
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.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

azoomer
02-10-2011, 11:28 PM
Hello! I made a simple "drop-up panel" that you can use if you like:


<!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 (http://azoomer.com/SlideUpBox.html)

aaronrusso
02-11-2011, 03:32 PM
AMAZING! Exactly what I was looking for. Thanks :)