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

Line 12: Line 12:
 
             var _x = 0;
 
             var _x = 0;
 
             var _y = 0;
 
             var _y = 0;
             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;
+
            el = el.offsetParent;
                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;
  
 
        function back_to_top() {
 
        window.scrollTo(0,0);
 
        }
 
  
 
     window.onload = function top_button() {
 
     window.onload = function top_button() {

Revision as of 02:12, 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.