Solved

scrollTop property

Posted on 2007-03-26
3
1,045 Views
Last Modified: 2007-11-27
I've heard of a scrollTop property in javascript or css that allows you to, in an element wth a set height, set the number of pixels that are scrolled off the top of the element.  How exactly is this property used?  and from where is it accessed?
0
Comment
Question by:josephdaviskcrm
  • 3
3 Comments
 
LVL 18

Accepted Solution

by:
Eternal_Student earned 125 total points
ID: 18795621
This is part of the DOM (document object model) for IE ONLY:

http://developer.mozilla.org/en/docs/DOM:element.scrollTop

That should explain everything you need to know about it but I do warn that it is not standards compliant.

0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 18795623
This is part of the DOM (document object model) for IE ONLY:

http://developer.mozilla.org/en/docs/DOM:element.scrollTop

That should explain everything you need to know about it but I do warn that it is not standards compliant.

0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 18795624
Sorry for posting twice ;-(
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now