Posts Tagged: javascript
Code snippet: Iterate slideshow counter without if/else statements
Posted in jQuery | Tags: code, javascript, snippet
While scripting a jQuery slideshow gallery, I thought of a way of iterating the counter without needing to use an if/else statement to hard reset it to 0 when it reaches the end of the array. Then do something similar to step from the last slide back to 0. Nothing fancy with this snippet at [...]
jQuery mouse tracker snippet
Posted in jQuery | Tags: code, demo, javascript, jQuery, learning, mouse, mousemove, snippet, webdev
While I was doing some script work for a client, I came across the nifty jQuery mousemove property. As this tutorial explains, you can bind the “on mouse move” event and track the pointer position as it moves across the screen. Note: This requires jQuery 1.3. The latest version of jQuery apparently doesn’t work! This [...]
