I have some problem.
I write html code where have about 100 div.
<?php
for ($i=0;$i<100;$i++)
{
$post_block = '
<div id="1_%s" class="simple_wall_post" data-foo="bar_%s">
</div>';
$s = sprintf($post_block,$i,$i);
}
?>
windowsHeight = 10000 px 1 div element height = 100 px
For example facebook autoplay video, if video visible then played, if no stopped. I can't get current div-foo when visible on window. how can I implement it? thank you.