Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 13th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. } );