I figured out the solution of Alias $ in plugin code (I mean that if the user would like to use prototype and JQuery, they use noConflict and how does my plugin work?), I try to build my own JQuery plugin, hope it will come true soon
Custom Alias in plugin code
The trick is to define all plugin code inside a function and execute this function immediately. The construct looks like this:
(function() {
// put plugin code here
var xyz; // xyz is NOT a global variable, it is only visible inside this function
})(); // execute the function immediately!
The additional parentheses are necessary! You can't execute an anonymous function without them.
Ok, now to the fun part:
(function($) {
// plugin code here, use $ as much as you like
// This is my anwser
})(jQuery);