Page tree

CEF DIGITAL home page

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 144
Content Layer
id1364221840
Content Column
width70.0%
id1364221843
Content Block
margin20px 30px 0px 0px
id1364221847

Services & Information

HTML
<button onclick="topFunction()" id="scrollToTopBtn" title="Go to top"></button>
<script>
// show or hide ScrollToTop button
function ToggleScrollToTop() {
  if (document.body.scrollTop > 1000 || document.documentElement.scrollTop > 1000) {
    document.getElementById("scrollToTopBtn").style.display = "block";
  } else {
    document.getElementById("scrollToTopBtn").style.display = "none";
  }
}


// Check every defined value millisecond
setInterval( ToggleScrollToTop, 250 );
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
  document.body.scrollTop = 0; // For Safari
  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
</script>

Content Column
width30.0%
id1146798680
Content Block
margin20px 0px 0px 30px
id1146798681

Follow us


...