ziedinjsh Posted July 4, 2011 Author Report Share Posted July 4, 2011 iisti nestaados priekshaa.. pirmaa rinda $ = function(ID) { return document.getElementById(ID); } function showContent() { $('loading').style.display = 'none'; $('frame').style.display = 'block'; } window.onload = showContent; straadaa Quote Link to comment Share on other sites More sharing options...
briedis Posted July 4, 2011 Report Share Posted July 4, 2011 (edited) Eh, kā tu nesaproti, ka tu pārdefinē jquery funkciju un pēc tam ceri, ka jquery strādās! Jā, $ ir vienkāršs funkcijas nosaukums. Tas ir tas pats kas... var a = 5; ... a = 10; ... alert(a); //Nez kāpēc ceri, ka te būs 5 Edited July 4, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted July 4, 2011 Author Report Share Posted July 4, 2011 :@ besī.. es nesaprotu Quote Link to comment Share on other sites More sharing options...
briedis Posted July 4, 2011 Report Share Posted July 4, 2011 Ja tu izmanti jQuery, kāda, atvainojos, hrena pēc ir vajadzīgs šis joks? $ = function(ID) { return document.getElementById(ID); } Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted July 4, 2011 Author Report Share Posted July 4, 2011 noņemot viņu nost un atstājot tikai function showContent() { $('loading').style.display = 'none'; $('frame').style.display = 'block'; } viņš rāda visulauku loadingu un neko neielādē! Quote Link to comment Share on other sites More sharing options...
briedis Posted July 4, 2011 Report Share Posted July 4, 2011 $('loading') A kas tas ir? loading ir klase, id vai birka? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted July 4, 2011 Author Report Share Posted July 4, 2011 tas ir id, es jau pieliku # bet vienalga neiet! function showContent() { $('#loading').style.display = 'none'; $('#frame').style.display = 'block'; } window.onload = showContent; Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 4, 2011 Report Share Posted July 4, 2011 Nu "vā-tā-fāk"! Ja izmanto jQuery, tad izmanto jQuery... Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted July 4, 2011 Author Report Share Posted July 4, 2011 (edited) mjā.. :D aizgāja viņam jāizskatās šādi function showContent() { $('#loading').hide().fadeOut(500); $('#frame').show().fadeIn(500); } un pat strādā! :D P.S. Paldies Jums! ;) Edited July 4, 2011 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 4, 2011 Report Share Posted July 4, 2011 Prieks, ka vismaz pats atrisināji! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.