I have a script that will hide a div when the site fills the screen but there is no need to scroll the page down so the site fits the screen at this point the divs are hidden true the script.
I have some content that will extend when you click on a button and sometimes this content will not longer fit the screen and there is a scroll bar needed to scroll down, Now i would like to show the div's again is there a way to make this possible or will it be a very complex situation?
the script that hides the div tag:
<script type="text/javascript">
if($(document).height() > $(window).height()){
$("#scrollTop").show();
}
else {
$("#scrollTop").hide();
}
</script>