JQuery is a new kind of JavaScript Library

by Semicton 18. February 2010 16:17

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.

Eample: The code listed below Modifies the HTML elements on this page.

 


 

    <script type="text/javascript" src="jquery-1.4.1.js"></script>
    <script type="text/javascript">
        $(document).ready
        (function() {
            $("div").click(function(event) {
                event.preventDefault();
                $(this).hide("slow");
            });

            $("a").click(function(event) { event.preventDefault(); $("div").show("slow"); $("div").addClass("testblue"); });
            $("a").hover(function(event) { $(this).toggleClass("test") });
            //$("div[name='testdiv']").hover(function(event) { $("div[name='testdiv']").hide("slow"); });
            $("div").hover(function(event) { $(this).toggleClass("testblue") });
            $("div[name='fadediv']").hover(function(event) { $("div[name='fadediv']").fadeOut("slow"); });
        }
        );
    </script>

Tags:

JQuery

Powered by Semicton 1.5.0.7

Interesting Questions

What is an algorithm?

Answer:

An algorithm is a set of clearly definded rules and instructions for the solution of a problem. It is not necessarily applied only in computers, but can be a step-by-step procedure for solving any particular kind of problem. A nearly 4,000-year-old Babylonian banking calculation inscribed on a tablet is and algorithm, as is a computer program that consists of step-by-step procedures for solving a problem.


 Refresh

Latest Downloads:

File Name Downloads
2009/12/scribd.zip 319
2009/12/BinaryClock.zip 267