anonīms Posted September 15, 2011 Report Share Posted September 15, 2011 Vai ir kas līdzīgs NotCLICK(function()? Normāli ir uz kāda elementa uzlikt clicku, lai kkas notiktu, bet nepieciešams, tad, ja netiek uzspiests uz tā objekta, tad notiek kkas. Quote Link to comment Share on other sites More sharing options...
0 briedis Posted September 15, 2011 Report Share Posted September 15, 2011 (edited) Tu troļļo mūs? :D Edited September 15, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted September 15, 2011 Author Report Share Posted September 15, 2011 Nē, nopietni ;D Vnk ir iespēja, ka lietotājs nospiež kur citur un vajag novākt klasi. Teiksim child linki neder, jo vnk varbūt kkur containerā nospiež un tad atkal vajag noņemt klasi :P Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted September 15, 2011 Author Report Share Posted September 15, 2011 a mok man .not() der? ;o nekad neesmu viņi izmantojis. Jums ir laiks apspriest, kamēr mans pīpēt :D Gaidu labāko variantu. Quote Link to comment Share on other sites More sharing options...
0 codez Posted September 15, 2011 Report Share Posted September 15, 2011 uzliec click eventu uz body un skaties event.target, ja nav tas, ko vajag, tad izpildi to, ko vajag. Bet vislabāk pasaki, ko vēlies panākt, iespējams tu to dari ne tā. Quote Link to comment Share on other sites More sharing options...
0 Zefirs Posted September 15, 2011 Report Share Posted September 15, 2011 Jautājums ir vai tu vēlies noķert uz to ka tiek uzspiests citur , vai arī to ka pele uzbrauc uz elementa nenospiež un izbrauc ārpus tā? Quote Link to comment Share on other sites More sharing options...
0 briedis Posted September 15, 2011 Report Share Posted September 15, 2011 http://jsfiddle.net/wc6xL/ Quote Link to comment Share on other sites More sharing options...
0 codez Posted September 15, 2011 Report Share Posted September 15, 2011 Briedi, nejau visiem elementiem uzlikt pa eventam. Labāk vienu eventu: http://jsfiddle.net/wc6xL/1/ Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted September 15, 2011 Report Share Posted September 15, 2011 Re ku' ko līdzīgu taisīju... http://pastie.org/2241466 Quote Link to comment Share on other sites More sharing options...
0 briedis Posted September 15, 2011 Report Share Posted September 15, 2011 Briedi, nejau visiem elementiem uzlikt pa eventam. Labāk vienu eventu: http://jsfiddle.net/wc6xL/1/ Labi, lieku aiz auss $.delegate :) Quote Link to comment Share on other sites More sharing options...
Question
anonīms
Vai ir kas līdzīgs NotCLICK(function()?
Normāli ir uz kāda elementa uzlikt clicku, lai kkas notiktu, bet nepieciešams, tad, ja netiek uzspiests uz tā objekta, tad notiek kkas.
Link to comment
Share on other sites
9 answers to this question
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.