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 8865709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:35:00+00:00 2026-06-14T16:35:00+00:00

I have an unusual problem. The code below isn’t working properly. I have pasted

  • 0

I have an unusual problem.

The code below isn’t working properly. I have pasted it into jsFiddle and it works fine, however on my website it doesn’t work smoothly and it doesn’t look any good. What it should do: after clicking on ‘Start here’ button, it should smoothly slideUp the whole content then proceed to the next page. It actually starts sliding up, but it doesn’t go to the end and loads a new page. I assume it can be fixed by using any sort of delay, but I’m new in jQuery and I’m not sure how to do it properly. Or maybe there is another way to sort it out. (problem fixed, reason: min-height applied)

The next problem I faced is loading external .js file (commented fragment in the code). When I do it, the script doesn’t work. When I place the script BELOW the button, it works. how to overcome this problem that I can implement the code as an external .js in a head section instead of putting it in tags below the button?

Thank you very much in advance.

the code is here:

    <html>
    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=480" />
        <link rel="stylesheet" type="text/css" href="_css/index.css">
        <script type="text/javascript" src="_js/jquery.js"></script>
        <script type="text/javascript" src="_js/form.js"></script>
    <!--            <script type="text/javascript" src="_js/transitions.js"></script>
    -->
    </head>

    <body>

    <div id="wrapper">

      <div id="header">
            <img src="_images/header.png">
            <div id="spons"><img src="_images/main-sponsor.jpg"></div>
      </div>

      <div id="content">

        <div id="starthere">
                <strong>Thank you. <br/>You have gained access to free Wi-Fi Media Network. <br/>Please enjoy free content from GAME.</strong>
            <div id="finalbut">
                <a href="#" id="roll"><img src="_images/butt-start.png"></a>
            </div>

            <script>
            $("#roll").click(function() {
                 $("#content").slideUp(function() {
                     window.location.href = "menu.html";
                 });
            });
            </script>

        </div>

      </div>

    </div>

    </body>
    </html>
  • 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-14T16:35:01+00:00Added an answer on June 14, 2026 at 4:35 pm

    Your content div has a min-height, which is screwing up the animation.

    You can simply remove the min-height

    For part two of your problem, wrap the code in the jQuery on ready event.

    Always do this when using jQuery! It’ll make sure to run your code when everything is ready, so you can put your code anywhere.

    $(function() {
        $("#roll").click(function() {
            $("#content").slideUp(function() {
                window.location.href = "menu.html";
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have unusual problem with AJAX toolkit ColorPickerExtender. Javascript code works fine it changes
i got a very unusual problem as my application works fine on emulator in
I have encountered a slightly unusual problem. Consider the following code: class parser {
I have little unusual problem to solve. I need some hint or links to
I have an unusual problem with my views - after a while of using
I have an unusual problem in a large system where for various reasons I
i have an really unusual problem i've never had before. i've no .htaccess file
I have a rather unusual problem, and it is hurting my brain. Problem: Given
I have an unusual problem. Let's consider such models (taken from django docs): class
I have a somewhat unusual problem. In my app, I am shadowing a UIImageView

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.