Guest User

Untitled

a guest
Dec 11th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <script language="javascript" type="text/javascript">
  2. function popup(mylink, windowname)
  3. {
  4. if (! window.focus)return true;
  5. var href;
  6. if (typeof(mylink) == 'string')
  7. href=mylink;
  8. else
  9. href=mylink.href;
  10. window.open(href, windowname, 'width=500,height=400,scrollbars=yes,resizeable=yes');
  11. return false;
  12. }
  13.  
  14. function popup_filename() {
  15. var filenames = [
  16. "autopopup-sunday.html",
  17. "autopopup-monday.html",
  18. "autopopup-tuesday.html",
  19. "autopopup-wednesday.html",
  20. "autopopup-thursday.html",
  21. "autopopup-friday.html",
  22. "autopopup-saturday.html"
  23. ];
  24. var d = new Date();
  25. var n = d.getDay();
  26. return filenames[n];
  27. }
  28. </script>
  29. </head>
  30. <BODY onLoad="popup(popup_filename(), 'ad')">
Add Comment
Please, Sign In to add comment