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

  • SEARCH
  • Home
  • 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 8606817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:11:21+00:00 2026-06-12T03:11:21+00:00

I have the following code so far: $(‘div.welcome-handle’).click(function() { top.$(‘#welcome-message’).toggle(function() { $(this).animate({left: -=749px}, 500);

  • 0

I have the following code so far:

$('div.welcome-handle').click(function() {
        top.$('#welcome-message').toggle(function() {
            $(this).animate({"left": "-=749px"}, 500);
        },
        function() {
            $(this).animate({"left": "+=749px"}, 500);
        });
    });

I need to be able to click on .welcome-handle to hide #welcome-message off screen, then be able to click .welcome-handle again to bring it back to original position.

The code above does the first part bu then on second click it shows #welcome-message and slide it back to hide it. How can i get it to do this: (#welcome handle is absolute positioned on screen)

Click event – slide div -749px
Click event – slide div +749px
and so on…

  • 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-12T03:11:22+00:00Added an answer on June 12, 2026 at 3:11 am

    You can implement your own toggle. you can read docs of jQuery toggle.

       var isShow = true;
        $('div.welcome-handle').click(function() {
              if(!isShow){
                isShow= true;
                top.$('#welcome-message').animate({"left": "-=749px"}, 500);
               }else{
                 isShow= false;
                 top.$('#welcome-message').animate({"left": "+=749px"}, 500);
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code so far: /* * This method adds only the
Question relating to optim function in R I have the following code so far
I have the following code, I have implemented something like this so far, but
I have the following code: JButton button = new JButton("Clear"); button.addActionListener(this); As far as
I have to following code and as far as I know it is correct,
I have following code <div id=main> <div id=one> </div> <div id=two> </div> <div id=three>
So far i have the following code, but it doesn't seem to be working,
I have the following code, so far, I want to check if a file
I have the following code that works: <script type=text/javascript> $(document).ready(function() { // Initialise the
So far I have the following code: colors = ('k','r','b') ax = [] for

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.