It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
In this second lesson, you are taught some more commands like .slideUp .slideDown .show and .hide. I can definitely see some great ways to put this to use already. It's so simple! You will also learn how to use jQuery to change CSS attributes.
For this example, I used the .slideDown command at 3000 ms and also changed the link color from red to blue on click
$(function() {
$('a').click(function() {
$('#box').slideDown(3000);
$('p a').css('color', 'blue');
});
});
Refresh the page to do it again.
You can see all the code by viewing the source of this page (Ctrl-U in most browsers).