JavaScript simulation to achieve keyboard typing effect

Source: Internet
Author: User
Tags anonymous closure

This article mainly introduces the JavaScript simulation to realize the keyboard typing effect, this article directly gives the instance code, needs the friend to be possible to refer to under

?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 The

Summary: In order to achieve each cycle interval time, with window.settimeout recursive writing. Because you want to encapsulate with the prototype chain, this conflict, so recursively calls the anonymous closure function. Use Arguments.callee to represent anonymous functions.

HTML code:

?

1 2 3 4 5 6 7 8 9 of <button id= "pri" >pri</button> <div class= "content" style= "Display:none;" > My father and I have not met for more than two years, I can not forget is his figure. That winter, the grandmother died, the father's errand also discharge, it is a double whammy of the day, I from Beijing to Xuzhou, intend to follow my father Funeral Home. To Xuzhou to see his father, see the mess in the courtyard of things, and think of grandmother, can not help but shed tears. Father said, "Things have been so, do not have to be sad, fortunately despair!" "When I went home to sell the quality, my father had a deficit, and I borrowed money to do the funeral. These days, the family scene is very bleak, half for the funeral, half for the father unemployed.   After the funeral, father to Nanjing, I also want to go back to Beijing to study, we will peer. When I arrived in Nanjing, I had a friend about to wander around, linger a day, and the next morning I had to go to Pukou and go to the north in the afternoon. My father, who was busy, had agreed not to send me, and asked a familiar porter in the hotel to accompany me. He told the Porter repeatedly that he was very careful. But at last he was not at ease, fearing that the porter would be inappropriate; In fact, when I was 20 years old, and Beijing had already visited two or three times, nothing mattered. He hesitated for a while and finally decided to send me by himself. I two or three advised him not to go; he only said, "It doesn't matter, they go bad!" We passed the river and entered the station. I bought the ticket and he was busy looking after the baggage. There is so much baggage that you have to go to the porter for some small fee. He was busy bargain with them. I was so clever at the time that I thought he was not very good at talking. But at last he set the price and sent me to the car. He picked me up a chair by the door, and I laid the seat in his purple fur coat. He ordered me to be careful on the road, watch the night and not catch cold. And entrust the Porter to take good care of me. My heart laughed at his buttermilk, and they only knew the money, and they were straight. And I'm a man of my age, can't I be a cook?   Well, I think now, it was so clever! I said, "Dad, you go." He looked out of the car and said, "I'll buy some oranges." You're right here, don't walk around. "I see a few sellers waiting outside the fence over there," said the visitor. Walk to the platform over there, must cross the railway, must jump down and climb up. Father is a fat man, it is natural to take some trouble to walk past. I was going, he refused, so he had to go. I saw him wearing a black cloth hat and a black cloth.Big jacket, dark cyan cloth padded, hobbled to the railway side, slowly leaned down, not great. But he crosses the railroad and climbs over the platform, it's not easy. He climbed the top with his hands, and his feet shrank upward, his fat body leaning to the left, showing an effort. When I saw his back, my tears quickly flowed. I quickly wiped away tears, afraid he saw, also afraid of others see. When I looked out again, he held the Scarlet Orange and looked back. When crossing the railway, he first scattered the oranges on the ground, he slowly climbed down, and then picked up the oranges to go. When I get here, I'm going to get him. He and I went to the car and put the orange peremptorily on my fur coat. So he threw himself on the soil, and felt very relaxed, and said, "I'm gone; I watched him go out. He walked a few paces and looked back at me and said, "Go inside, there's no one inside."   "Wait for his back to mingle with the people, and then find out, I will come in and sit down, my tears again." In recent years, my father and I have been in the middle of the day. His youth went out for a living, supported himself and did a lot of great things. That knows Lao Jing is so dejection! He was so sad that he couldn't stand it. Love in the middle, natural to hair in the outside, family trivial will often touch his anger. He treated me with a different past. But the last two years of missing, he finally forget my bad, just thinking of me, thinking of my son. After I came to the north, he wrote a letter to me, the letter said, "My body is safe, but the pain of the arm, to raise the pen, a lot of inconvenience, about the period not far from the big." "I read here, in the crystal tears, and see the fat, green cloth padded, black cloth jacket of the back." Alas! I don't know when I can meet him again! </div> <div class= "Div1" >   </div>
Related Article

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.