Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8784357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:03:59+00:00 2026-06-13T21:03:59+00:00

I wanted to show div after clicking a button in magento. code is <div

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:04:00+00:00Added an answer on June 13, 2026 at 9:04 pm

    Try this with your footer div,

    <div id="footer" style='position:fixed;bottom: 0px;height: 40px;float: left;'>footer footer footer 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

    <div id="Content_div" style="height: 400px;">  
    </div>
    
    <div id="ja-botsl">
       <div class="main col4-set clearfix">
          <div style="height: 200px;" class="main-inner clearfix">
          </div>
          <span class='imgExpandSpan' id="ja-expand-trig">&nbsp;</span>
       </div>
    </div>
    
    <div id="footer_div" style="height: 100px;">
    </div>​
    

    CSS

    <style type="text/css">
        .imgExpandSpan
        {
            background: url("https://bangalore/Ogo/Content/Images/arrow-green.png") no-repeat scroll center center #111111;
            cursor: pointer;
            height: 30px;
            left: 50%;
            position: absolute;
            top: -29px;
            width: 60px;
        }
        .imgExpandSpan.expand
        {
            background-image: url("https://bangalore/Ogo/Content/Images/arrow-red.png");
        }
    
        #ja-botsl
        {
            background: none repeat scroll 0 0 #111111;
            border-top: 1px solid #CCCCCC;
            color: #666666;
            position: relative;
            z-index: 2;
        }
    </style>
    

    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.js have all our click event id’s & expand inner div id. So we can able to change id’s.,,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<div style=padding-top:5px; overflow:hidden; font-size:13px;> <div style=float:left;> <div style=background-color:blue; width:20px;> <input type=checkbox id=rememberme style=z-index:-1; />
I wanted to show a vertical drop-down menu on click on a div. Suppose
Firstly apologises for the length of code but I wanted to show it all.
My situation is after login my website I wanted to show how many employees
I wanted to show a div located on each table row when the mouse
I have a DIV on a page that I wanted to show only on
I wanted to show problem with this video. Please watch... I've 2 pages. Second
I have a table view and i wanted to show the phone contacts of
I am validating value entered in textbox against database and wanted to show right
I wanted to create a link that would show content before showing a direct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.