It's the following .. I have a floating banner on my blog that uses the following JS
$(function(){
var jElement = $('.element');
$(window).scroll(function(){
if ( $(this).scrollTop() > 2000 ){
jElement.css({
'position':'fixed',
'top':'30px',
'width':'360px'
});
}else{
jElement.css({
'position':'relative',
'top':'30px'
});
}
});
.element {
width: 100%;
margin-top: 30px;
padding: 10px;
background: #f9f9f9;
text-align: center;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><divclass="element hidden-xs">
conteudo
</div>
Just that my floating scroll banner is passing from the rodape .. my rodape starts with tags
I would like some help to modify this JS so it does not get over the footer! My blog is: link