ApartmentPostings
05-15-2012, 05:23 PM
1) Script Title: Animated Collapsible DIV
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem: First of all thank you to DD for having such an excellent website with such a source for information.
I use this script to run my entire website. However I would like to be able to have one DIV close whenever another DIV is opened. As of now I think my visitors are getting lost in having to close so many DIVs.
I am not sure of the name of the script and I might have titled this with the wrong one. Below is a sample of the code which hopefully someone has seen before.
<script type="text/javascript">
$(document).ready(function() {
$(".flip22").click(function() {
$(".panel22").slideToggle("slow");
});
});
</script>
<style type="text/css">
div.panel22, p.flip22
{
margin: 0px;
padding: 0px;
text-align: center;
background: #303030;
border: solid 0px #c3c3c3;
}
div.panel22
{
display: none;
}
</style>
<div class="panel"><div> Used to hide panel
<div class="flip"></div> Used to open panel
This is an excellent script but I do not have a clue how to modify it.
Thank you for you help.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem: First of all thank you to DD for having such an excellent website with such a source for information.
I use this script to run my entire website. However I would like to be able to have one DIV close whenever another DIV is opened. As of now I think my visitors are getting lost in having to close so many DIVs.
I am not sure of the name of the script and I might have titled this with the wrong one. Below is a sample of the code which hopefully someone has seen before.
<script type="text/javascript">
$(document).ready(function() {
$(".flip22").click(function() {
$(".panel22").slideToggle("slow");
});
});
</script>
<style type="text/css">
div.panel22, p.flip22
{
margin: 0px;
padding: 0px;
text-align: center;
background: #303030;
border: solid 0px #c3c3c3;
}
div.panel22
{
display: none;
}
</style>
<div class="panel"><div> Used to hide panel
<div class="flip"></div> Used to open panel
This is an excellent script but I do not have a clue how to modify it.
Thank you for you help.