/    Sign up×
Community /Pin to ProfileBookmark

I need to fire an event on a div when div come to a screen window

hi

I need to fire an event from a div
when div come to a screen window of user mean as when he scroll down the page then which ever the div comes it should fire an event

for example

say i have a page in that page i ahve 50 div and each div have 50 images

so now say on page load 1st image is load, now when i scroll down and as soon as second dive come to screen second image get loaded

so i need to know how i came to know that particular dive come in screen

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@cbVisionMar 31.2010 — Here's a jQuery plugin for images....I'm guessing it can be tweaked to work with certain DIV's:

http://www.appelsiini.net/projects/lazyload
Copy linkTweet thisAlerts:
@phpgurullcauthorApr 05.2010 — ok thanks a lot buddy
×

Success!

Help @phpgurullc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...