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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:43:57+00:00 2026-06-03T03:43:57+00:00

I have a <div> with some content. I gave this div an id attribute,

  • 0

I have a <div> with some content. I gave this div an id attribute, oDIV, and bound a function to the onscroll event via this small script:

window.onload = {
    document.getElementById("oDiv").onscroll = function() {
        document.getElementById("tooltip").className = "sTooltip";
        this.onscroll = null;
    };  
}

I added some simple CSS to the div, so that a vertical scroll bar would appear. Content stretches down quite a bit and there’s a lot to scroll.

#oDiv {
     border: 1px solid black;
     float: left;
     height: 300px;
     overflow: auto;
     overflow-x: hidden;
     padding: 0;
     padding-right: 40px;
     clear: left;
}

Anyways, if the user tries to scroll I want a tooltip to appear to remind the user that there’s a filter option to hide some of the stuff they have to scroll, through.

In Firefox and more current browsers it worked just fine.

The problem I have, is I have to support IE6, and this approach does work in IE6 but there’s a slight issue. If you “grab” the scroll bar by left clicking and holding and continue to drag when the event is fired the scroll bar is prematurely released. Forcing the user to again click on the drag bar. It’s a minor issue, but I want to know why?

I only intend to fire this event once ever, only when scrolling has initiated.

If a library or framework has solved this odd behavior, could you please show their source to which they address this?

Also, I think timing libraries etc. al for determining the “point at which they stopped scrolling” is way overkill for this.

  • 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-03T03:44:00+00:00Added an answer on June 3, 2026 at 3:44 am

    It could be because IE is pausing to render the “tooltip”. Instead of using display:none on your tooltip try to use visibility:hidden and then toggle to visibility:visible.

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

Sidebar

Related Questions

I have this JQuery function: function addSomeHTML() { $(#mysection).html(<div id='myid'>some content here</div>); } I
I have some HTML that looks like this: <div class=product> Content In Here <div
Hi I have a div with content like this <div><strong>some content ....</strong></div> How can
Suppose I have html like this: <div id=wrap> <div id=content> <span>some content</span> <div id=s1>
I have a div with some inner content that I need to have an
I have a layout as follows: <div style=width: 300> <div style=width: 300>Some Content</div> </div
I have a div with float:right (no position property declared). This div has some
I have a div which has some text, but according to different situations this
sliding div using javascript i have three div with some content. i need the
I have a div in the center of a page that displays some content.

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.