Possible Duplicate:
How to tell if a DOM element is visible in the current viewport?
There is a HTML page that only has a one div with an image in it.
How do you detect if that element is being viewed / it is in the browser window?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If I am understanding correctly you want to know if the image is in the viewport and not being scrolled already. In that case you need to get viewport and image height, get position of the image and current position of the document. If you are using jquery (I assume that from the tag) you can do this: