• warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /var/www/vhosts/dunkelfuerst.com/httpdocs/sites/all/themes/dunkla/page.tpl.php on line 12.
  • warning: getimagesize(http://www.hazzardofdarkness.net/images/banners/hodbanner2008-2.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/dunkelfuerst.com/httpdocs/sites/all/themes/dunkla/page.tpl.php on line 12.

JavaScript sleep() without freeze in Firefox

  1. //found@http://www.daniweb.com/forums/post742619.html#post742619
  2.  
  3. /**
  4.  * Netscape compatible WaitForDelay function.
  5.  * You can use it as an alternative to Thread.Sleep() in any major programming language
  6.  * that support it while <strong class="highlight">JavaScript</strong> it self doesn't have any built-in function to do such a thing.
  7.  * parameters:
  8.  * (Number) delay in millisecond
  9.  */
  10. function nsWaitForDelay(delay) {
  11. /**
  12. * Just uncomment this code if you're building an extention for Firefox.
  13. * Since FF3, we'll have to ask for user permission to execute XPCOM objects.
  14. */