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