====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
script_delayedload [2015/05/17 19:58] 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 ====== | ====== Script code ====== | ||
| - | ======= Roll-Clock-create ======= | + | ======= Loader-1 ======= |
| <code> | <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 19: | Line 22: | ||
| // initial delay | // initial delay | ||
| var d = 800; | var d = 800; | ||
| - | |||
| delayedLoad("APIcomm"); | delayedLoad("APIcomm"); | ||