User Tools

Site Tools


script_delayedload

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script_delayedload [2015/05/17 19:54]
jappie
script_delayedload [2015/05/17 20:08] (current)
jappie
Line 4: Line 4:
   * Link    : https://​plus.google.com/​+JappieToutenhoofd/​posts/​   * Link    : https://​plus.google.com/​+JappieToutenhoofd/​posts/​
  
 +===== Use of the script ======
 +  * Set this script on the load-event of your Desktop.
 +  * Adjust the last lines to your needs.
  
 +====== Script code ======
 +======= Loader-1 =======
 +<​code>​
  
 function delayedLoad(scrpt) function delayedLoad(scrpt)
- {var exist = LL.getScriptByName("​APIcomm"​);+ {var exist = LL.getScriptByName(scrpt);
   if (exist == null)   if (exist == null)
   { alert( scrpt + " script does not exist."​);​ return; }   { alert( scrpt + " script does not exist."​);​ return; }
- ​ setTimeout(LL.runScript(scrpt,​ null), ​100);+ ​ setTimeout(LL.runScript(scrpt,​ null), ​d);
   d += 400;   d += 400;
  }   } 
Line 16: Line 22:
 // initial delay // initial delay
 var d = 800; var d = 800;
- 
  
 delayedLoad("​APIcomm"​);​ delayedLoad("​APIcomm"​);​
 delayedLoad("​OWM-load"​);​ delayedLoad("​OWM-load"​);​
 +</​code>​
  
script_delayedload.1431892471.txt.gz · Last modified: 2015/05/17 19:54 by jappie