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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:55:49+00:00 2026-06-14T23:55:49+00:00

Hi have navigation menu with two navigation arrows Prev and Next. This works fine

  • 0

Hi have navigation menu with two navigation arrows Prev and Next. This works fine in every browser (Firefox, IE, Opera, Safari) except in Chrome. It doesn’t even get a error message when the button is pressed.

Could someone please take a look on the code for the buttons. Am i missing something?

Thank you!

function scroll(direction) {        
    var scroll, i, positions = [], here = $(window).scrollTop(), collection = $('.box'), duration = 750, easing = "easeOutExpo";

    collection.each(function() {
        positions.push(parseInt($(this).offset()['top'], 10));
    });

    for( i = 0; i < positions.length; i++ ) {
        if( direction == 'next' && positions[i] > here ) { 
            scroll = collection.get(i);
            break;
        }
        if( direction == 'prev' && i > 0 && positions[i] >= here ) { 
            scroll = collection.get(i-1); 
            break;
        }
    }

    if(scroll) {
        $.scrollTo( scroll, { duration: duration, easing: easing });
    }

    return false;
}

$("a#prev, a#next").click(function() {
    return scroll($(this).prop( 'id' ));
});
  • 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-14T23:55:51+00:00Added an answer on June 14, 2026 at 11:55 pm

    The issue was resolved when i downgraded the jQuery version from 1.8.2 to 1.6.2

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

Sidebar

Related Questions

I have a menu set up this way: <div id='top-navigation'> <ul> <li><a class='top-nav-button-unclicked' href='#'>SUBJECT</a></li>
On my page I have one navigation menu and two content containers. The content
I have two activities with navigation menu which has items for launching Activity1 and
i have two array /** * Menu Navigation * @var array */ public $nav_top
I'm building a navigation system using jquery scrollto. I have my navigation menu in
I am writing a css code for a webpage, i have a navigation menu
I have a custom navigation menu for my SharePoint intranet web application which is
I have a simple UL navigation menu with width of 1000px: <ul class=menu> <li
I am using WordPress I have put an extra container in the navigation menu.
I have a horizontal menu navigation. The code is: <div class=menu-holder> <ul class=menu> <li>

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.