Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2.  
  3. mysql_close($link);
  4. ?>
  5. <script language="javascript" type="text/javascript">
  6. function printDiv(divID) {
  7. //Get the HTML of div
  8. var divElements = document.getElementById(divID).innerHTML;
  9. //Get the HTML of whole page
  10. var oldPage = document.body.innerHTML;
  11.  
  12. //Reset the page's HTML with div's HTML only
  13. document.body.innerHTML =
  14. "<html><head><center></center></head><body>" +
  15. divElements + "</body>";
  16.  
  17. //Print Page
  18. window.print();
  19.  
  20. //Restore orignal HTML
  21. document.body.innerHTML = oldPage;
  22.  
  23. javascript:location.reload();
  24. }
  25. //auto scroll
  26.  
  27. var $el = $(".table-responsive");
  28. function anim()
  29. {
  30. var st = $el.scrollTop();
  31. var sb = $el.prop("scrollHeight")-$el.innerHeight();
  32. $el.animate({scrollTop: st<sb/2 ? sb : 0}, 120000, anim);
  33. }
  34. function stop()
  35. {
  36. $el.stop();
  37.  
  38. }
  39.  
  40. anim();
  41.  
  42. $el.hover(stop, anim);
  43.  
  44. //fin auto scroll
  45.  
  46. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement