John Cox

Blogs · @wyome

Tagged jquery · everything

jeresig/jquery.hotkeys · GitHub

jQuery Hotkeys is a plugin that simplifies binding keyboard event handlers to specific key combinations using a streamlined syntax like `$(document).bind('keydown', 'ctrl+a', fn)`. The plugin intelligently avoids conflicts by not tracking hotkeys when users are typing in input fields unless explicitly bound to those elements, and it supports modifier keys, namespacing, and works across jQuery 1.4.2+ and all major browsers with some caveats around meta/hyper keys and browser-specific behavior with built-in shortcuts.

Permalink

QueryLoader2 – Preload your images with ease - Gaya Design

QueryLoader2 is an updated jQuery plugin that preloads all images (including background images) from specified page elements before the website becomes visible to users. The tool has been simplified for easier implementation and works across modern browsers and IE7+ by automatically scanning for images and displaying a customizable loading bar with options for percentage display, animation type, and callback functions. The code is maintained on GitHub, allowing users to report issues and contribute fixes.

Permalink

Table rows as clickable anchors – James Padolsey

The author explains why naive solutions for making table rows clickable (using JavaScript to redirect on click) are problematic—they lack browser features like middle-click-to-open-in-new-tab and right-click context menus that users expect from real links. Rather than attempting to simulate all this missing functionality, the author created a jQuery plugin that overlays an actual anchor element across clickable rows, preserving all native link behaviors while maintaining the appearance and user experience of a large clickable area.

Permalink

Item Blur Effect with CSS3 and jQuery | Codrops

This tutorial demonstrates how to create an interactive focus effect on text cards using CSS3 transitions and jQuery, where hovering over one card scales it up and blurs its neighboring cards. The effect uses CSS transforms, box-shadows, and text-shadow properties to create the blur illusion, with JavaScript simply toggling "active" and "blur" classes on hover to trigger the smooth transitions. The technique relies on modern browser support for CSS3 transitions and works best in Chrome and Safari.

Permalink