AzirQuantum (Talk | contribs) |
AzirQuantum (Talk | contribs) |
||
Line 12: | Line 12: | ||
var _x = 0; | var _x = 0; | ||
var _y = 0; | var _y = 0; | ||
− | + | _x += el.offsetLeft - el.scrollLeft; | |
− | + | _y += el.offsetTop - el.scrollTop; | |
− | + | el = el.offsetParent; | |
− | + | ||
− | + | ||
return { top: _y, left: _x }; | return { top: _y, left: _x }; | ||
} | } | ||
var y_coordinate = getOffset(document.getElementById('menu_blank') ).top; | var y_coordinate = getOffset(document.getElementById('menu_blank') ).top; | ||
− | |||
− | |||
− | |||
− | |||
window.onload = function top_button() { | window.onload = function top_button() { |
Revision as of 02:12, 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.