Categories:

Main Content Areas:

Welcome to JavaScript Kit, a comprehensive resource for JavaScript tutorials, scripts, and more.

JavaScript Kit- What's New?

Creating a basic parallax scrolling effect using CSS and JavaScript

Parallax scrolling is a visual technique where elements on the page move or animate at different speeds as the user scrolls the page, creating depth and visual intrigue. This tutorial walks you through how to create a simple parallax scrolling effect using CSS and JavaScript.

Creating a live CSS clock using CSS3 and requestAnimationFrame()

Pure CSS only interfaces are all the rage these days, so lets explore that concept with our very own CSS3 clock, then see it come to life using some JavaScript.

Amazon Side Bar Menu

This menu models itself after the side bar menu found on Amazon.com to provide a flexible, content-rich fold out menu. It supports infinite number of sub menus. In addition, the menu is responsive in smaller screen and mobile devices, by stacking the sub levels when revealed on top of its parent to conserve space.

Manipulating CSS3 transitions using jQuery

In this tutorial we look at how to use jQuery to dynamically modify CSS3 properties and react to when a transition has completed. It's the key to injecting logic to your transitions!

Introduction to Touch events in JavaScript

In this tutorial lets get touchy feely with JavaScript, but examining its touch related events and how they are used to detect and respond to touch and swipe events.

Setting CSS3 properties using JavaScript Updated

With the numerous CSS vendor prefixes one has to contend with when it comes to defining CSS3 properties such as -moz-box-shadow or -webkit-border-radius, setting them in JavaScript can be even more confusing. This tutorial looks at how to how to streamline the setting of CSS3 property values in JavaScript, by checking for and targeting only the version of a CSS3 property the browser supports. Updated with new section "Creating a generic CSS3 property retriever function".

Introduction to CSS media queries

With today's challenge of building webpages that look right in the myriad of different devices comes CSS media queries, a nifty CSS feature that builds upon CSS Media types of CSS 2.1 to help you easily cater your page based on the aforementioned factor and more.

Preloading images and executing code only after all images have loaded

See how to refine the process of preloading images to detect when all images have actually been preloaded and react accordingly.

Going beyond cookies- Using DOM sessionStorage and localStorage to persist larger amounts of info

HTML5 introduces DOM Storage, a new way of storing data on the client side that overcomes the disk space limitations of JavaScript cookies. This tutorial looks at how to take advantage of DOM Storage in browsers today.

Using document.createElement() to test for browser support for an element

Most of us are familiar with using object detection or the Navigator object to check for backing for a given JavaScript object or method, but these techniques do not work well when the objective is to check whether the browser supports a particular HTML element, such as the <canvas> element. This is where document.createElement() can be very helpful.

Full Screen Image Slideshow (w/ auto read images from directory)

Full Screen Image Slideshow is a cool slideshow that uses jQuery and PHP to display large images from a directory automatically and using the entire browser window as its canvas! Thumbnails of every image is shown at the bottom of the slideshow for easy viewing on demand.

JSON object reference

With JSON being all the rage, JavaScript has implemented a native JSON object to stringify and parse JSON data. This new reference describes this object.

The onmousewheel event of JavaScript

The onmousewheel event fires whenever the user moves the mouse wheel either upwards or downwards, and can provide yet another way for users to interact with your JavaScript. In this tutorial, lets see how to take advantage of onmousewheel across browsers.

Custom Attributes in HTML 5

HTML 5 supports a new "data" attribute you can add inside elements to store arbitrary bits of information, to be later parsed using JavaScript for example. This tutorial shows you how to utilize this new attribute.

Getting global and external style sheet values in DHTML

This useful tutorial looks at how to use DHTML to retrieve inherited CSS property values from global and external Style Sheets.

Handling runtime errors in JavaScript using try/catch/finally

The try/catch/finally statement of JavaScript lets you dip your toes into error prune territory and "reroute" when a runtime error has occurred. Learn all about this often misunderstood statement in this tutorial.

Overview of CSS3 Structural pseudo-classes

There are some new classes this Fall, CSS3 Structural pseudo-classes that is. Learn about how they let you select and style child elements of a container based on a variety of generic criteria such as the odd and even rows of a table.
More Additions

W3C CSS Selectors API- The querySelector() and querySelectorAll() methods

The querySelector() and querySelectorAll() methods let you enter a CSS selector as a parameter and return the selected elements as DOM elements. Think of them as document.getElementById() on steriods.

Performing GET and POST requests using Ajax

Ajax, once stripped of all its fanciness, basically describes just two things- performing "GET" and "POST" requests asynchronously. This tutorial explains Ajax frankly and gently, while also covering the important topics of fetching XML and JSON files using Ajax.

Dynamically loading an external JavaScript or CSS file

External JavaScript or CSS files do not always have to be synchronously loaded as part of the page, but dynamically as well. In this tutorial, we'll see how to load, remove, and replace external JavaScript and CSS files on demand and asynchronously. It the era of Ajax, it's a handy thing to know.

Sorting an JavaScript array using array.sort()

See how to harness the sort() method of JavaScript to sort an array alphabetically, numerically, or even shuffle the array elements.

Displaying RSS feeds easily using Google Ajax Feed API

Displaying RSS feeds from other sites on your own is a nice way to show constantly updated content automatically. In this tutorial, we show you how to use Google Ajax Feed API to display RSS feeds from other sites on your own easily and without hosting the files on your own server.

Using object detection to sniff out different browsers

With the introduction of so many new browsers recently, from IE7, Firefox2, to Opera9, it's time to update our tutorial on using object detection to sniff out these new browsers as well!

JavaScript and memory leaks

If you're not careful, your JavaScript code may leak memory and sometimes even bring the visitor's browser to its knees. This tutorial looks at different leak patterns in JavaScript and how to fix them.

RSS Ajax JavaScript ticker

In this tutorial, I'll show you how to combine RSS, Ajax, and JavaScript to create a live RSS ticker.
Features
"Learning jQuery (Packt Publishing)" book review We review "Learning jQuery", a book aimed at introducing new comers to the jQuery framework.
Features
Plus Size image viewer
This script automatically adds a caption beneath the images of your choice that when clicked on launches a "plus size" version of the image.
Web Hosting Search
Check out HostSearch for web hosting resources, reviews and more!
Scripts/ Tutorials
References
JavaScript Tools:
Site Info

Additional partners:
- Software Geek
- Website Design

Our Supporters

Partners

CopyRight 1998-2014 JavaScript Kit. NO PART may be reproduced without author's permission.