JavaScript Code, Tutorials, Examples, Reference






Avoiding Problems With getElementById Method in IE7 This free JavaScript tutorial will help you understand more about ID attribute - one of the most used attributes in HTML, in order to use it better, to avoid the problems should be not.


Fading Objects onmouseover With this free JavaScript code, you will easily apply fading effect to any HTML element when the mouse move over it, by adding a special CSS class name to the element and done. The code is very easy to use and custom. Move mouse over now to feel it!


Category: Framework, jQuery

getElementsByClassName Deluxe Edition JavaScript language does not provide us a function for obtaining elements by class, only by id, name, and tag name. This JavaScript snippet will accomplish that, and includes optional arguments with defaults and support for multiple classnames in any order. It works in Internet Explorer, Firefox, Opera, Safari and Mac.


Category: Snippet

All Elements By Class Finder This function script will return an array of tags based on DOM element, tag, and class name. For example, getElementsByClassName(document, 'tr', 'info') will return to you an array of all "tr" tags under the document node having the "info" class.


Category: Snippet

in_array() This snippet searches an array for a pre-specified element and returns 'true' if it's found, 'false' if it's not found. It functions like the in_array() in PHP.


Category: Snippet

Rollover Text - Hide and Show Use this JavaScript to provide tooltips, F.A.Qs, and other information. The tip is shown when the mouse rolls over the title. You can use any valid HTML element, even links.


Category: Menu, Navigation

Removing Nodes Using the DOM You can remove existing nodes using the DOM. The removeChild method allows any node to remove one of its child nodes. Simply pass a reference to the node you wish to remove. Any text or innerHTML elements within the node being removed will be removed along with it.


Category: Snippet

dhtmlxTabBar - AJAX components for advanced Web UI dhtmlxTabBar is a JavaScript tabbar control for making dynamic tabbed-navigation interface. This UI component, AJAX supported, lets you add feature-rich and nice looking tabs to your site or web application.

The controls can be easily initialized on a web page that makes building of DHTML tabbed interface a breeze. Just assign any elements on your page (for example, DIVs) to the tabs of the Tabbar, and it will automatically do all the work for you - the component will switch these elements, displaying them by clicking on the corresponding tab.


Category: Menu, Navigation

getElementsByClass A quick and elegant way of grabbing elements by a class name. JavaScript provides functions for obtaining elements by id, name, and tag name, but not by class. This function will do the trick!


Category: Snippet

getElementsByAttribute Ever run into a situation where you want to get an array of all elements with a specific attribute? Or even want elements with a certain value for that chosen attribute as well? Just add this JavaScript code JavaScript snippet to your script and your problem will be solved.


Category: Snippet

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web
Have a break, have a manatee