Latest in JavaScript

Dynamic Active State for Navigation Elements using jQuery

Not a fan of jQuery yet? This might change your mind. Whether you're a designer or a developer, we've all seen that one template from our creative department where they want an active state for navigational elements. Normally, this would require work from the application developer to write conditionals checking the URL against a defined unique id or naming convention.

Read more of Dynamic Active State for Navigation Elements using jQuery

Setting and Clearing Default Form Values Dynamically

The easiest way to set and clear default form values is to use the same function for the onblur and onfocus event.

Read more of Setting and Clearing Default Form Values Dynamically


Flash Objects and Lightbox JavaScript Fix

Lightbox has become a huge phenomenon lately, but with site utilizing both Lightbox and Flash it's actually become a headache for them. If you have implemented a flash object on your site, then open a lightbox page, the flash shines through. Frankly, Flash has always been good at overwhelming sites. But here's the W3prodigy fix. Using the onClick event, we'll disable the flash object using StopFlashMovie(); and when the lightbox goes away we'll just reload the page. Not the most conventional method, I know. But for a quick fix for small sites, it works.

Read more of Flash Objects and Lightbox JavaScript Fix


A Better IE PNG Fix

Simply add the following JavaScript code to your head tag and you're done! No extra images required, no major loss of attributes for background images, however it does have issues with buttons. Not really set up for buttons.

Read more of A Better IE PNG Fix


iPhone JavaScript Techniques - The Basics

Their are some cool things you can do with the iPhone, and over at MindComet we've started developing sites specifically for the iPhone. You're already seen my iPhone Slider, here's some of the basic stuff you can do simply to go along with the iPhone experience.

Read more of iPhone JavaScript Techniques - The Basics


JavaScript Slider for iPhone Content

Going through someone else’s code is an art, you have to get into the developers mind and discover what he or she was thinking when writing the piece. While scavenging the Internet for an AJAX scroll animation, similar to that of the iPhone, I was so disgusted by the code I saw that I just wrote my own.

Read more of JavaScript Slider for iPhone Content


1 | 2 Next Page

Search