In lab 13, we had to make a image or text clone if someone clicks on it. I did a image and choose Nemo from finding Nemo because I think it will be a cute idea idea to do that. I wrote on the top, "Click on Nemo so, he have more fishes to travel with while going home!." Attaching the jQuery file was important to make this lab work.
This lab would be useful to me in my future labs/projects because if I want something to clone like text again and again in my website, I can use this coding. This is another step for using jQuery and I have more knowledge of it.
The following code on the right is the javascript that I used to make Nemo clone. It basically says if someone clicks Nemo, clone it inside the <body> field.
My HTML coding
No comments:
Post a Comment