Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

special event


Enhanced user click simulation

jQuery .click() method simulates a user click event on HTML elements (with full support to propagation).
On the other hand, when used with anchors this method does not support the native (default) behaviour of anchor link. I mean that it doesn't open the href url in the specified target.
In the special case of anchors .click() doesn't fully simulate a user click.

This very simple plugin improves .click() method so that it can be used to simulate a user click on anchor too.

JQUERY.EVENT.HOVER

Hover provides delegate-able and customizable hover events for jQuery.

A hover event happens when a user moves their mouse within a customizable pixel radius within a customizable time.

Example

// listen for hover on 'option's in a menu
$('#menu').delegate(".option","hoverenter",function(){
  $(this).addClass("hovering");
})
// when the mouse leaves restore
.delegate(".option","hoverleave",function(){
  $(this).removeClass("hovering");
})

This plugin creates:

  • $.Hover
  • $.event.special.hoverenter
  • $.event.special.hoverleave
  • $.event.special.hoverinit
  • $.event.special.hovermove

This plugin is extracted from JavaScriptMVC and maintained by Jupiter JavaScript Consulting.

jQuery hash change event

Генерирует событие 'hashChange' (в контексте document) и обеспечивает историю посещений для всех браузеров на любое изменение location.hash.
Пример использования: $(document).bind('hashChange', function(e, newHash){ ... });
Изменять location.hash можно любым способом, включая обычные ссылки (bla).

Caps

Simple plugin that will register a keypress callback on textual form input fields that is able to determine if the user's caps lock key is activated or not. Can be useful for alerting the user when entering a password, for example. The registered callback will be called in the scope of the current element with one parameter that indicates if caps lock is on or not.

Sample

jQuery('#password').caps(function(caps){
    if(jQuery.browser.safari) return; // Safari already indicates caps lock
    // "this" is current element
    if(caps){
        alert('Your caps lock is on!');
    }else{
        // no caps lock on
    }
});

$.event.special.drop

This plugin leverages the special event api, to add bind-able drop behavior events. This plugin is designed to work exclusively with $.event.special.drag, actually, it doesn't work without it.

$.event.special.drag

This is a jquery special event implementation of a drag event model. It is intended for use by developers who don't need one bloated script full of idiot-proof logic and a million different options. For people who plan a drag interaction model and decide how to set up pages and position elements, and don't need a script to figure that out...

$.event.special.hover

A new and improved special event implementation Brian Cherne's "hoverIntent" plugin (http://plugins.jquery.com/project/hoverIntent).

$.event.special.wheel

A smaller, simplified interpretation of Brandon Aaron's special event "Mouse Wheel Extension" (http://plugins.jquery.com/project/mousewheel).