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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:50:21+00:00 2026-06-15T23:50:21+00:00

Basically I have lots of content to be shown inside the colorbox plugin, and

  • 0

Basically I have lots of content to be shown inside the colorbox plugin, and I want to scroll into certain part by program.

The colorbox part works fine. The simplified code looks like this (nothing special here):

$.colorbox({href: '#my_content', inline:true, onComplete(){go_there()}});

The scroll part, if using without colorbox, also works fine. The code looks like this:

$('html,body').animate({scrollTop: 1234}, 100); // 1234 here is just example

When combining above two parts, scrolling does not happen. And then I think I need to change the ‘html, body’ string into something else, so I immediately tried $(“#my_content”).animate(…) but no luck, and then I tried “#cboxContent”, “#cboxWrapper”, “#colorbox”. None of them works.

(I gonna provide an answer soon.)

  • 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-15T23:50:22+00:00Added an answer on June 15, 2026 at 11:50 pm

    After searching around for similar code snippets, I realize a pattern, that the scrollTop must only be applied to one of your content wrappers which has an overflow:auto style!

    Correct direction found, I soon check up colorbox.css and identified the wanted container. It is ‘#cboxLoadedContent’. So this one works like a charm:

    $('#cboxLoadedContent').animate({scrollTop: 1234}, 100);
    

    The principle might be straightforward, but it really took me some time to figure out. So hopefully this post can help someone like me.

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

Sidebar

Related Questions

I have a page with lots of data, tables and content. I want to
I basically have a program that filters records from one excel file to another
I have identified a problem within my application; basically, one sub-routine prepares (lots) of
Basically I am using codeigniter and have LOTS of fields in each row for
I have some code that does custom drawing. Basically it is form fill program
I have had lots of help with creating a PHP script that basically grabs
Basically, I have lots of differently typed structs like this: typedef struct { char
Is it possible to deserialize part of a binary file? Basically I have an
I basically have three tables, posts, images and postimages (this simply contains the ids
I basically have a unix process running and it is doing some heavy processing

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.