javascript - know the image user is viewing in slimbox2.js -
i have image gallery uses slimbox2.js
i want know image user viewing @ given time. how viewing image? (note user need not click on every single image view, once clicks single image , slideshow loads can use mouse clicks or arrow keys browse through images in gallery)
example: the user clicks on first image in gallery. can add click event listener , event, record user viewed first image. happens if user selects click next button in slimbox2 , view next image.
the user viewed second image don't know, user viewed it. how can capture event?
another approach thought of image slimbox2 loads it's view, there event triggered @ moment?
you can url of image using jquery..
jquery("#lbimage").css("background-image").tostring().replace('url(','').replace(")","")
Comments
Post a Comment