I wanted to show div after clicking a button in magento.
code is
<div id="clickme" style="background-color: #333333; color: #FFFFFF; padding: 10px; width: 200px; cursor:pointer;">Click here to toggle me in and out</div>
<div id="me" style="display: none !important;"> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('footerbanner')->toHTML();?></div>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($) { $('#clickme').click(function() { $('#me').animate({
height: 'toggle'
}, 1000
);
});
});
Its working. But by this code footer is shifted but I want that Body content is shifted to top not footer. Please help me…
Try this with your footer div,
So, the footer will be displaying in bottom of the page always…
Live Demo
EDIT :
As per your requirement, just try this,
HTML
CSS
JQuery
you should use the given below plug-ins
prototype.js
ja.script.js
Here is the Live Demo
Note : The script of
ja.script.jshave all our click event id’s & expand inner div id. So we can able to change id’s.,,