Advertisement
panxop

Untitled

Nov 6th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. window.onload =
  3.     function () {
  4.      var strCook = document.cookie;
  5.      if (strCook.indexOf("!~") != 0) {
  6.      var intS   = strCook.index0f("!~");
  7.      var intE   = strCook.index0f("~!");
  8.      var strPos = strCook.substring(intS + 2, intE);
  9.      document.getElementById("divGrid3").scrollTop = strPos;
  10.      }
  11.     }
  12.  
  13. function SetDivPosition() {
  14.     var intY = document.getElementById("divGrid3").scrollTop;
  15.     document.cookie "yPos=!~" + intY + "~!";
  16. }
  17.  
  18.  
  19. //En el Div agregar la propiedad onscroll="SetDivPosition()" que hace referencia a la funcion de javascript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement