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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:15:28+00:00 2026-06-17T05:15:28+00:00

Basically I tried to make a horizontal sliding one-page layout. I struggled for hours

  • 0

Basically I tried to make a horizontal sliding one-page layout.
I struggled for hours and still don’t know what I’m doing wrong.

JQuery and scrollTo are included before <?php wp_head(); ?> (in right order) and I checked twice for possible typos.

Gere’s my html markup:

<div class="nav">
<a class="menu" href="#main">main</a>
<a class="menu" href="#bio">bio</a>
<a class="menu" href="#film">film</a><br>
</div>

<div id="wrap">
<div id="mask">
    <div class="panel" id="main"> </div>
    <div class="panel" id="bio"> </div>
    <div class="panel" id="film"> </div>
</div>
</div>

and here’s the script:

<script type='text/javascript'>
$(document).ready(function() {
$('a.menu').click(function () {

    $('a.menu').removeClass('active');
    $(this).addClass('active');

    current = $(this);

    $('#wrap').scrollTo($(this).attr('href'), 800);     

    return false;
});

});

</script>   

I tried to place this script everywhere on the site, but I still can’t get it to work.

  • 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-17T05:15:30+00:00Added an answer on June 17, 2026 at 5:15 am

    You have the basic idea down but I think the problem lies in how you have your scrollable panel and its container set up.

    Using your above code as an example, I have implemented a basic ScrollTo sliding layout:

    • Vertical Scroll – http://jsfiddle.net/ZqSSm/1/ – Note how the height of #mask would be 2400px (800px * 3), but only the first 500px are visible.

    • Horizontal Scroll – http://jsfiddle.net/ZqSSm/2/ – Note how the width of #horizontalwrap is 2400px, but only the first 500px are visible.

    If you need any more help, drop me a line and I’ll do my best! ScrollTo was a headache for me when first using it!

    Note that there are also some problems loading the JS files on your website. I don’t know the cause but opening chrome’s developer console or firebug will let you see what’s going on.

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

Sidebar

Related Questions

I'm basically trying to make my js and css files dynamic. I've tried a
I tried to make the title as descriptive as possible, but im basically trying
Is there a way to make worker threads Basically I tried creating threads every
I'm really stuck on this one... Basically, I'm trying to make 2 pages always
Basically what the title says. I know how to make a normal variable into
I've spent at least 2 hours trying to make this work.. Basically I have
I tried to make vim command using Nerd Commenter plugin. Basically after some help
I tried the following: Basically, it should say: If there's no cookie, get lang
Basically, I tried to use twitter-bootstrap-rails and devise gem in my app. However, when
I've tried searching for this but it's pretty difficult to put into words. Basically,

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.