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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:45:47+00:00 2026-05-25T15:45:47+00:00

I am trying to perform some action on some point when user scrolls window.

  • 0

I am trying to perform some action on some point when user scrolls window. Basically i am using some social networking button on my website when user see article of my website i am showing some tweet and like button on left side of article and when user scroll window down then my tweet and like position is fixed so its stick on there position.

But the problem is when user scroll window down my tweet and like button collides with comment box.so how can i stop from colliding.

My code is :

$(document).ready(function(){
 alert($(".comment-content").offset().top);
  $(window).scroll(function () { 
     if($(window).scrollTop()=="1260"){
               // want to change position of tweet and like button to relative; ( position:relative)
     }
    });
});

Please help me. Thanks.

  • 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-25T15:45:48+00:00Added an answer on May 25, 2026 at 3:45 pm

    Use $(element).height() to determine the height of the elements (such as the “comment box”). Use this value to change to position of your tools, e.g:

    var offset = $("#comments-box").height();
    var mytoolbox = $("#myToolbox");
    
    offset = offset+20; // Function logic (example). Adjust this line to meet your wishes
    mytoolbox.css("bottom", offset+"px"); //In conjunction with `position:fixed`
    mytoolbox.css("top", offset+"px"); //When used in conjunction with `position:absolute`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using VS 2010 RTM and trying to perform some basic validation on
I am trying to write MSBuild script that will perform some action (eg. print
I am trying to create an automation to perform some action to a HTML
I have a Rails 3 app that is trying to perform some controller action
I am trying to perform some unit testing on the iphone but for some
I'm trying to perform some calculations on a non-directed, cyclic, weighted graph, and I'm
I am trying to perform some composition-based filtering on a large collection of strings
I am trying to perform some calculations with a form but every time i
I'm having some problems trying to perform a query. I have two tables, one
I'm trying perform a relatively basic TCP socket send/receive operation on Windows CE using

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.