Review

Review

Review What is wrong with the following function? imgArray = new Array() imgArray[0] = mypic.jpg imgArray[1] = mypic2.jpg imgArray[2] = mypic3.jpg function ChangeIt(idholder) { if (randnum == 2) { document.getElementById(idholder).innerHTML = you picked 2! } else if (randnum == 1) { document.getElementById(idholder).innerHTML = you did not pick 2! } randnum = Math.floor(Math.random() * imgArray.length) } what happens when we click on the image with the id pic2?

pic pic what value is inside par1 when we click on the image with the id pic1? pic Will this code work when you click on the second image (the image with id of pic2)?

Numbers

a pic a pic

Given the following code, what happens the first time you click on the image pic3.jpg?

Ground covers

a pic

Given the following code, when you click on the second image on the page (pic2.jpg), which image changes? What does it change to?

Signals

a pic a pic a pic

Given the following code snippet, what picture is displayed when the second image (pic2.jpg) is clicked on?




Given the following code snippet, what picture is displayed when the second image is clicked on? Where is it displayed? arr = new Array()

arr[0] = pic4 arr[1] = pic3 arr[2] = pic1 arr[3] = pic2 arr[4] = pic5 arr2 = new Array() arr2[0] = van.jpg arr2[1] = truck.jpg arr2[2] = car.jpg arr2[3] = bike.jpg arr2[4] = train.jpg function ChangeIt(holder1, holder2) { document.images[arr[holder2]].src = arr2[holder1] }




ls = new Array() ls[0] = "30" ls[1] = "60" ls[2] = "90" ls[3] = "120" ls[4] = "150" ls[5] = "180" function myfunc(idholder) { xrand = Math.floor(Math.random() * ls.length) yrand = Math.floor(Math.random() * ls.length) document.images[idholder].width = ls[xrand] document.images[idholder].height = ls[yrand] }

ball

List all the innerHTMLs on this page

First Header

SubHeader

  1. First in list
  2. Second in list
  3. Third in list

link to udel

another paragraph

What command do we use to change text on the web page? Can I do this?

First Header

A Lovely Paragraph! ball

Changing text in javascript!

First Header

SubHeader

  1. First in list
  2. Second in list
  3. Third in list

SubHeader

  1. First in list
  2. Second in list
  3. Third in list

link to udel

Click here to see Famous Animal page!

Using a template What do par1, par2, and par3 hold when you click on the image "kittysleeping"? What will happen? Our first javascript!

kitty pic
kitty pic

New Text Goes Here

What does this print out?

Our first javascript!

Click here to see how truly random things are.

(For fun: What does the following do?)

click here

computer pic

I'm happy!

Do the face and the picture agree? (click on 'yes', or 'no', below)

YES!

NO!

Your answer will be here

A simple program that helps autistic children learn to connect faces with emotions (that you could write!!!)

Recently Viewed Presentations

  • DARE Disability Access Route to Education School Presentation

    DARE Disability Access Route to Education School Presentation

    Apply to CAO at www.cao.ieby 1 February 2018. Review your DARE Handbook with parents or guardians. Complete all elements of the online DARE application form by . 1 March . 2018. You should start gathering your documentation in a timely...
  • Steps to Predicting the Products of Chemical Reactions

    Steps to Predicting the Products of Chemical Reactions

    Predicting the Products of Chemical Reactions Classify the reaction… then write the products. COMBUSTION: Reactants: hydrocarbon and oxygen Products: H2O and CO2 If a metal reacts w/ O2 → metal oxide If a nonmetal reacts w/ O2 → nonmetal oxide.
  • Errors in Measurement - Christian Brothers University

    Errors in Measurement - Christian Brothers University

    Theory of Errors in Observations Chapter 3 (continued) 50, 90 and 95 Percent Errors The 50% error or probable error establishes the limits within an observation has ...
  • The Actor and the Theatre - Introduction to Theatre

    The Actor and the Theatre - Introduction to Theatre

    The former Artistic Director of the Actors Theatre of Louisville, Jon Jory, has called her "the most important acting and directing theorist since Stanislavski and Brecht." In 1992, she co-founded the Saratoga Theatre Institute (SITI), where she currently serves as...
  • For Physics Paper 1, you will need to revise

    For Physics Paper 1, you will need to revise

    The halogen atoms. gain . a single electron to give them a stable arrangement of electrons. They form . ionic compound. e.g. sodium + chlorine sodium chloride. 2Na(s) + Cl. 2 (g) 2NaCl(s) A more reactive halogen will also ....
  • Informal Conference of Ministers of South-East Europe The ...

    Informal Conference of Ministers of South-East Europe The ...

    Communication Plan Scope of the communication The EVAPM Observatory Relation to the French Math syllabus PISA Math Questions related to the French Math syllabus 1 PISA Math Questions related to the French Math syllabus 2 PISA Math Questions related to...
  • BASIC CONCEPTS - Eastern Mediterranean University

    BASIC CONCEPTS - Eastern Mediterranean University

    BASIC CONCEPTS PROF. DR. MUSTAFA K. UYGUROGLU * * * * * * * * * * * * * * * * * * * * * * ELECTRIC CIRCUIT An electric circuit is an interconnection of electrical elements....
  • Kaplan Advantage: SAT Mathematics 1 Warm-Up: Math If

    Kaplan Advantage: SAT Mathematics 1 Warm-Up: Math If

    Done during school year in addition to regular work One bad day could cause a bad score. Gridding on the answer sheet complicates test-taking process. High stakes test—students are stressed out by the testing experience. Students don't understand what the...