AzirQuantum (Talk | contribs) |
AzirQuantum (Talk | contribs) |
||
Line 12: | Line 12: | ||
var _x = 0; | var _x = 0; | ||
var _y = 0; | var _y = 0; | ||
− | while( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) { | + | while ( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) { |
_x += el.offsetLeft - el.scrollLeft; | _x += el.offsetLeft - el.scrollLeft; | ||
_y += el.offsetTop - el.scrollTop; | _y += el.offsetTop - el.scrollTop; | ||
Line 20: | Line 20: | ||
} | } | ||
var y_coordinate = getOffset(document.getElementById('menu_blank') ).top; | var y_coordinate = getOffset(document.getElementById('menu_blank') ).top; | ||
+ | |||
+ | |||
+ | function back_to_top() { | ||
+ | window.scrollTo(0,0); | ||
+ | } | ||
+ | |||
window.onload = function top_button() { | window.onload = function top_button() { | ||
if (y_coordinate>0){ | if (y_coordinate>0){ |
Revision as of 02:05, 17 October 2018
Sample
I. Sample
a. Sample
This is a Picture. This is a Picture. This is a Picture. This is a Picture.
This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture.
This is a Picture. This is a Picture. This is a Picture. This is a Picture.
This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture. This is a Picture.