The JavaScript Source is an excellent JavaScript resource with tons of "cut and paste" JavaScript examples for your Web pages. All for free!
Latest Additions to The JavaScript Source
Ajax:Creating the XMLHTTPRequest Object
- Many browsers allow the XMLHTTPRequest object to be created directly. One method is to use this snippet. It tries all methods of creating the object until it discovers one that works.
Tutorials:The Perfect Pop-Up - If you believe the likes of Jakob Neilsen and his supporters, nothing is more evil than pop-up windows. And in many ways, this is correct. Why? Well, we'll list the reasons soon enough, but in a nutshell it's because they are nearly always poorly implemented or simply not needed. This tutorial will show that, with the right thought, pop-up windows can be used without upsetting anyone - particularly the person browsing your site.
Games:Maze - Navigate around a 3D JavaScript maze in search of the exit in the fewest moves possible. The maze is complex, but you can cheat by taking a peak at the map.
User Details:Resolution Image - Loads an image with different dimensions based on the users screen resolution setting. Higher resolution browsers see an image with increased dimensions and lower resolution browsers see an image with decreased dimensions. This separation ensures that each browser sees the image size that looks best in their browser.
Navigation:Paginator - This script makes pagination possible on your Web site. It uses an array to display the items you want to show, perhaps a small store or news items. You can choose how many you want to display on a page. Easy to implement.
Attention JavaScript Coders
Want some recognition for your scripts? Submit them to us and they can be featured on JavaScript Source!
DatabaseJournal offers SQL courses and other database related resources for beginner to expert developers.