Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. <div id="signin" onclick="pgeReload()"></div>
  2.  
  3. ....
  4.  
  5. <script type="text/javascript">
  6. var count=0;
  7. function pgeReload(){
  8.  
  9. if(count <= 4){
  10. count++;
  11. }
  12. var times = count*10000;
  13. var pospond = 50000-count;
  14. setTimeout(function(){window.location.reload()}, pospond);
  15. }
  16.  
  17. </script>
  18.  
  19. <script type="text/javascript">
  20. var count=0;
  21.  
  22. function pagereload(){
  23.  
  24. if(typeof(Storage)!=="undefined")
  25. {
  26. count++;
  27. window.content.localStorage[key]=count;
  28. var tempTime = parseInt(window.content.localStorage[key])*1000;
  29. var pospond = 50000-tempTime;
  30. setTimeout(function(){window.location.reload()}, pospond);
  31.  
  32. }
  33. else{
  34. setTimeout(function(){window.location.reload()}, 30000);
  35. }
  36. </script>
  37.  
  38. window.content.localStorage[key]=value; //Saving
  39.  
  40. window.content.localStorage[key]; //Accessing
  41.  
  42. delete window.content.localStorage[key]; //Delete
  43.  
  44. <script type="text/javascript">
  45.  
  46. function pagereload(){
  47.  
  48. if(typeof(Storage)!=="undefined")
  49. {
  50. var count=(window.content.localStorage[key])? parseInt(window.content.localStorage[key]): 0;
  51. count++;
  52. window.content.localStorage[key] = count;
  53.  
  54. var tempTime = count*1000;
  55. var pospond = 50000-tempTime;
  56. setTimeout(function(){window.location.reload()}, pospond);
  57.  
  58. }
  59. else{
  60. setTimeout(function(){window.location.reload()}, 30000);
  61. }
  62. </script>
  63.  
  64. window.location.href = url + '?count=' + count
  65.  
  66. window.location.search
  67.  
  68. window.location.href = url + '?' + count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement