Lab #4 - Ninja


In lab #4, I used HTML, CSS, javascript, and jQuery to create a ninja that could do 3 different actions. This ninja could also be renamed, and have other details described about him. When you click one of the action buttons, it would produce a sound related to that action. It would also display how many times the character did that action.

To do all of this, I first found an image of a ninja from the internet. I then put it in my document using an <img> tag. From there I proceeded to make 3 buttons for the actions in my HTML document. I then created an on click function in jQuery to make the buttons work. I created audio tags in my HTML document to hold the sounds that I wanted to use for the buttons. I then linked the audio with the buttons so that when you click them it would play. I also created another button for you to give details about the ninja which would then be displayed after inputting the information. Lastly, I added another <p> tag with empty text so that when you click an action, it will say how many times you did an action with a random number generator.

These skills are important for a web designer so that they can ask for user input using JavaScript or jQuery, to fill information in for data or etc. Getting user input and making your website interactive is a big part of being a web designer because it allows for that designer to interact with users. In addition, adding audio to your webpages could make it more attractive to users and can increase your creativity when making webpages.

Comments

Popular posts from this blog

WBL Workshop #6 Interview Skills

CTE Expo Reflection Journal

Lab #12 Reflection