Wuu Posted February 3, 2010 Report Share Posted February 3, 2010 $("#comslide").mouseover(function() { $("#comuna").slideDown('normal'); }).mouseout(function() { $("#comuna").slideUp('normal'); }); Kāpēc man div #comuna raustās bez apstājas lejā, augša, lejā, augša ? Quote Link to comment Share on other sites More sharing options...
indoom Posted February 3, 2010 Report Share Posted February 3, 2010 parādi arī html gabalu Quote Link to comment Share on other sites More sharing options...
waplet Posted February 3, 2010 Report Share Posted February 3, 2010 varbūt mouseout attiecas uz visu nevis uz comslide vai arī pamģini onClick lai aizslaido ciet. Quote Link to comment Share on other sites More sharing options...
codez Posted February 3, 2010 Report Share Posted February 3, 2010 (edited) Visdrīzāk tāpēc, ka slideUp izsauc mouseover un slideDown izsauc mouseout. Kad jQuery izmanto animācijas efektus, ir labi kaut ko zināt par stop() funkciju. respetīvi, pamēģini šādi: $("#comuna").stop(true, true).slideDown('normal'); Edited February 3, 2010 by codez 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.