|
(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
|
26. 06. 2007. | #1 |
Banned
Knowledge base
Datum učlanjenja: 01.07.2005
Poruke: 1.598
Hvala: 206
140 "Hvala" u 89 poruka
|
onDomLoad ?
ima dosta varijacija ovo je neka moja modifikacija koju koristim Kôd:
document.onDomLoad = function (f, a) { var n = 0; var t = setInterval(function() { var c = true; n++; if(typeof document.getElementsByTagName != 'undefined' && (document.getElementsByTagName('body')[0] != null || document.body != null)) { c = false; if(typeof a == 'object') { for(var i in a) { if ( (a[i] == 'id' && document.getElementById(i) == null) || (a[i] == 'tag' && document.getElementsByTagName(i).length < 1) ) { c = true; break; } } } if(!c) { f(); clearInterval(t); } } if(n >= 60) { clearInterval(t); } }, 250); }; Poslednja izmena od cvele : 26. 06. 2007. u 15:49. |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
jquery autocomplete submit on click | teknoledge | Sva početnička pitanja | 8 | 29. 12. 2009. 16:30 |
Firefox extenzija i onUninstall | ivanhoe | (X)HTML, JavaScript, DHTML, XML, CSS | 2 | 27. 06. 2008. 22:10 |
thunderbird notes extenzija? | ivanhoe | Web aplikacije, web servisi i software | 0 | 21. 04. 2008. 18:28 |
Problem textarea, post method, php, mysql | Miroslav | Sva početnička pitanja | 17 | 24. 01. 2008. 00:06 |
Invalid method in request (napad?) | ivanhoe | Web Hosting, web serveri i operativni sistemi | 9 | 14. 01. 2007. 11:07 |