Welcome to the JavaScript section of Safalra’s Website.
This section contains the following pages and subsections:
-
Code to prioritise image preloading JavaScript
-
JavaScript code to allow tables to be sorted based on customisable criteria
-
How to implement a Mac-style ‘dock’ in JavaScript
-
A progressive raytracer implemented in JavaScript
-
How to implement smoothly scrolling drop-down menus in JavaScript
-
A demonstration of pure/true JavaScript windows
-
JavaScript can be used to make drop-down menus
-
JavaScript can be used to make calendars from which a date can be selected
-
Extensions for the JavaScript Number object in the form of 44 new functions
On my new code site:
-
JavaScript code allowing smooth movement transition effects to be created
-
JavaScript code to create tree views - dynamically expandable and collapsible nested lists
-
A JavaScript object allowing tasks to be prioritised and scheduled to run when the document has loaded
-
JavaScript code to parse query strings and decode their GET data
-
A simple and efficient queue implementation for JavaScript whose dequeue function runs in amortised constant time
-
JavaScript code for handling and processing colours in the RGB, HSV, and HSL colour spaces
-
How to use JavaScript to make navigation detach and scroll with the page
-
The nodeType property of a DOM node has the value of one of twelve constants defined in the Document Object Model specification
If you’re looking for a JavaScript book, one of the best is the 1000-page JavaScript: The Definitive Guide by David Flanagan, published by O’Reilly and now in its fifth edition.
It covers all aspects of JavaScript and details the most common browser compatibility issues that you may encounter: