इस तरह की एक शैली वर्ग बनाएँ:
.unselectable {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
-ms-user-select : none
}
फिर जावास्क्रिप्ट थोड़ा बदल mousedown पर इस वर्ग आवंटित करने के लिए। तो उस अनियमित लिपि से यह ऐसा दिखाई देगा।
$(this).unbind('mouseenter mouseleave');
फिर जैसा कि ऊपर mouseup
पर फिर से उन्हें rebind:
jQuery(function($){
//Initialise
iPhoneAnimation.init();
//Mouse down bind move event
$(".content-box").bind("mousedown", function(e){
$(this).bind("mousemove", iPhoneAnimation.moveInfo);
$(this).addClass("unselectable"); // <-- ADD THIS
});
//Unbind mouse event
$(".content-box").bind("mouseup", function(e){
var $this = $(this);
$this.unbind("mousemove", iPhoneAnimation.moveInfo);
//Animate the panel
iPhoneAnimation.panelAnimate($this);
//Reset the private var
iPhoneAnimation.resetVars();
$(this).removeClass("unselectable"); // <-- AND ADD THIS
});
});
अक्षम करने के लिए आप mousedown
इस तरह की घटनाओं पर निकल करने की जरूरत रखता है।
कि यह किया, धन्यवाद! – Wesley