Learn notes about the jquery video in Drupalizeme

Source: Internet
Author: User

1. For Introduction to JQUERY series this site learning

1) The fifth episode of the content, said is how to choose where you want to

Select attribute this adds $ to the SRC, indicating what ends with

CSS3 Selectors
Api.jquery.com
PS: (in Drupal It is forbidden to allow $ to replace jquery, because there will be conflicts, so in Drupal, you can use this method to invoke)






2) The sixth episode of the content, said is to choose the place you want to modify, how to use Effert and so on the effect you want to modify


Duration indicates that the hidden speed can be controlled, either numerically or slow.

2000 means two seconds.
Indicates the opposite action, if it is hide, then using toggle is Show

Fade means that the gradient out is vanishing, in is appearing, to is becoming blurred


Slide means that the upward slide is gone, the downward is present, and the toggle is the opposite.

Animate can perform CSS operations in it, such as converting fontsize to 44px


You can confirm the style by computed this.

This is going to get bigger and smaller.

parentheses [] indicate an optional

3) The contents of the seventh episode, that is, the event, is the triggering events

This is an event that adds a click, the popup window after clicking


The role of Console.log is said above,
Then because the assignment is a tag, so the click event triggered, but the page will jump, so add return false, so you can tell the browser not to jump

Nineth Episode

In front of all H2 content, add

, add in the back
< = = <
> = = >

When the mouse hovers over the content, a highlighted function is added.

The 11th episode:


When you click the Node_read_more hyperlink, Console.log will print out the URL and return false to prevent the page from jumping.


Click on the Read More button and the rest of the page will be displayed via Ajax, then hide the Read More button.

Learn notes about the jquery video in Drupalizeme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.