Now we will see some simple jQuery animations.

We can do some really amazing stuff with jQuery without even getting the
 first ideas about javascript.

At least that is what happened with me.

And even now I don't claim to understand javascript.

It ha many elements of C and syntax and has many ideas from several
different programming ideologies
 that I don't even know.

It is thoroughly object oriented, it works only inside a browser, it
is fully asynchronous which makes
 programming really hard and along with jQuery has a fabulously
economical syntax and power of
 expression like C.

Alright, I wish to make one more general observation.

Yesterday I showed you where the code should go.

Today I will tell you where the data should go.

The HTML DOM that we manipulate with code is the data for us.

</head>
<body>
                  <<<<<<<<<<<<<<<<<< Data goes here
</body>
</html>

Our data goes here.

In my samples I will show the code and data and occasionally give
complete samples but you
 should know what is what.

Alright. Let us see a very simple animation. Text vanishing after a
few seconds and text appearing after a few seconds.

Code:

  $('h1').fadeOut(6000);
        $('h2').fadeOut().text("Newly added text").fadeIn(6000);

Data:

  <h1> Hi there this will vanish </h1>

        <h2> </h2>

Example here:

http://awrdev.g3tech.in/

-Girish

-- 
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to