Saturday, September 20, 2014
Lab 4
In this lab, lab 4, I was require to make prompt boxes asking questions. To be simply put, a prompt box is usually used to input values. For each question, ex: first name, last name etc, a form name equivalent in name would be required as can be seen below in the code, Each would be put in the form of text due to the purpose of the input boxes. Further below are the input type codes, Here are many java script operators that signify what is to be said first and by typing in a prompt, what would follow. An example would be with ' You are' followed by what ever is put in the first name prompt box as well as the last name prompt box and then is the brother or sister prompt box an so on.
Lab 3
In this Lab, Lab 3 my task was to make a web page asking intellectual a through questions regarding java Script operators that I learned about in class. These questions come in the form of boxes that when clicked will reveal the answer to them, answers that I made myself. So the way it works is that there is a form action for each box, for each form action there is a button id, each out of the three are different. For this code I had to use many tags like div,form, and button id. The names for each button id were clicker, pikete and chicken. This code however is connected to a separate java script that I created so that these questions would link to their designated responses. I this lab I was able to learn a lot about java script and how quick and easy alert boxes are.
Lab 2
In this lab , lab 2 I once again used java script to created a web site that would serve as my introduction to java script. I ended up using java script operators that I had learned in class by taking notes. I used the operators"x" and "=", these two operators serve their own individual purposes. As you can see in the code below that there is ("John" +x), what this means is that " John is added to the x value which according to the code x= Hello World!. Afterwards was "IT's MY NAMe......" which was also an x value. In the end I was able to apply the operators in class that I learned and use them in this lab, it sort of felt like using Microsoft excel with if then formulas
Lab 1
In this lab, Lab 1, It was my first introduction to Java Script. The Objective of the Lab was to trigger a change in phrase when clicking on the button that says "Click Me". At the top is my heading that says " My First JavaScript". After that I added a paragraph code that says " JavaScript can change the content of an HTML element". I added a Javascript with functions like these:
"
| "function myFunction() { | |
| document.getElementById("demo").innerHTML="Hello JavaScript!";} |
What this does is that the words "This is a demonstration" to " Hello JavaScript. What I learned from this that Java script has different functions that can lead to very interesting changes and its very simple, much more simple as compared to action script, which also uses functions.
Subscribe to:
Posts (Atom)
.png)
.png)
.png)
.png)
.png)
.png)

