jquery - Function fires automatically on page Load -


i've ran problem google chrome when site loads. (safari & ff works fine)

when page loads, in chrome, function fires automatically , scrolls maincontent top.

my whish display fullscreen slide on pageload. when scroll page, slide hide , main content of page scroll top.

.frame slide
.maincontent main content

any ideas how fix problem?
thanks!!

<script> window.addeventlistener("scroll", function(scroll) {     $('.frame').hide(1000);     $(".maincontent").animate({         margintop: 0,         }, 700 );     }) </script> 


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -