<html>
<head>
<script>
var _tmpTop;
function fnTop() {
var _top = document.getElementById("popup").firstChild.nextElementSibling.offsetTop;//.inner position top
_tmpTop = window.scrollY;//current scroll top
window.scrollTo(0, _top);
}
function fnBack() {
window.scrollTo(0, _tmpTop);
}
</script>
</head>
<body>
<div id="popup">
<div class="inner"></div>
</div>
</body>
</html>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.