javascript

TwitterFacebook
Get flash to fully experience Pearltrees
jquery

highlighter

patterns

gallery

IE’s clientX and clientY measurements start from (2,2) in standards mode, and (0,0) in quirks mode. IE stores this offset in its document.documentElement.clientLeft and document.documentElement.clientTop properties. This code should calculate the correct cursor position in all browsers: I published this in 2006 as I was building Snipshot . This snippet found its way into many popular JavaScript frameworks, and I suggest you use one of them to handle mouse events since they are constantly updated to reflect best practices and new browser implementations.

JavaScript Cursor Position

http://hartshorne.ca/2006/01/23/javascript_cursor_position/
http://www.frequency-decoder.com/demo/slider-revisited/ Accessible Unobtrusive Slider Demo Accessibility Enhancements ( ARIA ) Whenever a slider has focus, the arrow keys ← , → , ↑ and ↓ can be used to control the slider handle, the Home key to set the slider at it’s minimum value and the End key to set the slider at it’s maximum value. The script automatically assigns each slider the required ARIA role of “slider” and states “valuemax”, “valuemin” and “valuenow”. Should an element with an id of fd_slider_describedby exist, this is used to set the ARIA “describedby“ relationship. Additionally, should the sliders associated form element itself have an associated label , this label is used to set the ARIA “labelledby” relationship.

frequency decoder - accessible, unobtrusive slider demo

Base64 and URL Encoding and Decoding

Base64 encode/decode was ported from a Java Base64 encoder/decoder . Base64 encode/decode was ported to Macromedia Actionscript . License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. http://ostermiller.org/calc/encode.html