Guest User

Untitled

a guest
May 13th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. jQuery document.ready strange behaviour
  2. Page.ClientScript.RegisterStartupScript(GetType(), "Script", "ShowPopup('popup');", true);
  3.  
  4. function showPopup(p) {
  5. ShowFancyBoxDiv("#divMessage", 50, 300);
  6. }
  7.  
  8. $(document).ready(function () {
  9. setTimeout(function () {
  10. ShowFancyBoxDiv("#divMessage", 50, 300);
  11. $("#fancybox-close").css("display", "none");
  12. }, 1000);
  13. });
  14.  
  15. $(window).load( function() {
  16. //code
  17. } );
Advertisement
Add Comment
Please, Sign In to add comment