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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:03:54+00:00 2026-05-26T11:03:54+00:00

How do I sync two horizontal scrollbars if I am using two frames or

  • 0

How do I sync two horizontal scrollbars if I am using two frames or iframes? Thanks!

<SCRIPT language="javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></SCRIPT>

$(document).ready(function()
{
$("#div1").scroll(function () { 
    $("#div2").scrollTop($("#div1").scrollTop());
    $("#div2").scrollLeft($("#div1").scrollLeft());
});
$("#div2").scroll(function () { 
    $("#div1").scrollTop($("#div2").scrollTop());
    $("#div1").scrollLeft($("#div2").scrollLeft());
});

});

            <iframe id="div1" SRC="UserQueue_Header.asp?Occasion=<%=Occasion%>&GPL=<%=GPL%>" NAME="UserQueue_Header" width=100%>
                <p>Your browser does not support iframes.</p>
            </iframe>

            <iframe id="div2" SRC="UserQueue_Detail.asp?Occasion=<%=Occasion%>&GPL=<%=GPL%>" NAME="UserQueue_Detail" width=100%>
            </iframe>
  • 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-05-26T11:03:54+00:00Added an answer on May 26, 2026 at 11:03 am

    This worked for me in Firefox but not in IE.

    <SCRIPT language="javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></SCRIPT>
    <SCRIPT language="javascript" type="text/javascript" src="jquery.frameready.js"></SCRIPT>
    

    $(document).ready(function()
    
    {
    // Sync Header Frame with Detail Frame`
    $.frameReady( function() {
    
        var ifr2 = $(window.parent.document.getElementsByName('UserQueue_Detail')).contents();
    
       $(document).scroll( function(){
    
             ifr2.scrollLeft($(document).scrollLeft());
        });
      },
      "UserQueue_Header"
    );
    
    // Sync Detail Frame with Header Frame
    $.frameReady( function() {
    
        var ifr1 = $(window.parent.document.getElementsByName('UserQueue_Header')).contents();
    
       $(document).scroll( function(){
    
             ifr1.scrollLeft($(document).scrollLeft());
        });
      },
      "UserQueue_Detail"
    );
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using git to keep two copies of my project in sync,
I have one folder synced between two computers (using one of online sync tools).
I am using SyncBackSE to synchronize folders between two locations. Since the full sync
What is the most effective way to sync two identically structured DataSets using a
I usually sync two computers (mac and linux) using rsync so that I can
I´m using EGit with eclipse to sync my dev environment to two different computer.
I'm using Unison to sync files between two servers. I'm trying to get PHP
I have a need to sync auto_increment fields between two tables in different databases
I'm using Microsoft Sync framework 1.0 (without ADO.NET services) I have created 2 custom
I've got a problem when I try to sync files in two different repos.

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.