Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_close($link);
- ?>
- <script language="javascript" type="text/javascript">
- function printDiv(divID) {
- //Get the HTML of div
- var divElements = document.getElementById(divID).innerHTML;
- //Get the HTML of whole page
- var oldPage = document.body.innerHTML;
- //Reset the page's HTML with div's HTML only
- document.body.innerHTML =
- "<html><head><center></center></head><body>" +
- divElements + "</body>";
- //Print Page
- window.print();
- //Restore orignal HTML
- document.body.innerHTML = oldPage;
- javascript:location.reload();
- }
- //auto scroll
- var $el = $(".table-responsive");
- function anim()
- {
- var st = $el.scrollTop();
- var sb = $el.prop("scrollHeight")-$el.innerHeight();
- $el.animate({scrollTop: st<sb/2 ? sb : 0}, 120000, anim);
- }
- function stop()
- {
- $el.stop();
- }
- anim();
- $el.hover(stop, anim);
- //fin auto scroll
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement