Difference between revisions of "Team:SHSBNU China/Sample"

Line 9: Line 9:
 
     <script>
 
     <script>
  
         function getOffset(el) {
+
         function getTop(el){  
            var _x = 0;
+
        var e = document.getElementById(el)
            var _y = 0;
+
             var offset=e.offsetTop;  
            _x += el.offsetLeft - el.scrollLeft;
+
             if(e.offsetParent!=null) offset+=getTop(e.offsetParent);  
             _y += el.offsetTop - el.scrollTop;
+
             return offset;  
             el = el.offsetParent;
+
         }  
             return { top: _y, left: _x };
+
         }
+
    var y_coordinate = getOffset(document.getElementById('menu_blank') ).top;
+
  
 +
        var y_coordinate = getTop("menu_blank")
  
 
     window.onload = function top_button() {
 
     window.onload = function top_button() {

Revision as of 02:21, 17 October 2018

Section Sample

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.