SlideShare une entreprise Scribd logo
1  sur  13
Javascript Introductie Mediatechnologie Blok 8
Wat is Javascript ? Programmeer/scripttaal t.b.v. webomgevingen Geen compiler nodig / browser verwerkt script In html of als extern bestand ! Body of Headerscript !
Waar wordt het voor gebruikt? ,[object Object]
 Valideren van forms en input
 HTML pagina’s custom made !
 Cookies / standaard datum etc.
Controle over browserContent / Styling / Behavior  Html -      CSS   -  Javascript
Waar ook voor? ,[object Object]
 Roll-overs
 Menu
Validering
 Pop-ups ,[object Object]
Variabelen

Contenu connexe

En vedette (11)

Les 3 Javascript
Les 3 JavascriptLes 3 Javascript
Les 3 Javascript
 
Les 5 javascript
Les 5 javascriptLes 5 javascript
Les 5 javascript
 
Review Workshop
Review  WorkshopReview  Workshop
Review Workshop
 
Pianist As An Artist
Pianist As An ArtistPianist As An Artist
Pianist As An Artist
 
Les 2 php prog 1
Les 2 php prog 1Les 2 php prog 1
Les 2 php prog 1
 
Les 3 Javascript
Les 3 JavascriptLes 3 Javascript
Les 3 Javascript
 
Mountain Moot: Running a Paperless Classroom with Moodle
Mountain Moot: Running a Paperless Classroom with MoodleMountain Moot: Running a Paperless Classroom with Moodle
Mountain Moot: Running a Paperless Classroom with Moodle
 
1.2 basis 2
1.2 basis 21.2 basis 2
1.2 basis 2
 
Tracking the Blended Learning Trend for NCCE 2015!
Tracking the Blended Learning Trend for NCCE 2015!Tracking the Blended Learning Trend for NCCE 2015!
Tracking the Blended Learning Trend for NCCE 2015!
 
Google Classroom: Simplicity in Execution
Google Classroom: Simplicity in ExecutionGoogle Classroom: Simplicity in Execution
Google Classroom: Simplicity in Execution
 
2.3 php en mysql intro
2.3 php en mysql intro2.3 php en mysql intro
2.3 php en mysql intro
 

Les 1 Javascript Intro

  • 2. Wat is Javascript ? Programmeer/scripttaal t.b.v. webomgevingen Geen compiler nodig / browser verwerkt script In html of als extern bestand ! Body of Headerscript !
  • 3.
  • 4. Valideren van forms en input
  • 5. HTML pagina’s custom made !
  • 6. Cookies / standaard datum etc.
  • 7. Controle over browserContent / Styling / Behavior Html - CSS - Javascript
  • 8.
  • 12.
  • 15.
  • 16. Variabelen ! Variabelenzijnzelfgemaaktobjecten ! vardePagina; (eenvariabele met de naamdePagina is gemaakt) varmijnKat=“Daisy”; (de waarde van mijnKat is Daisy) varmijnTeller=1 (de waarde van mijnTeller is 1)
  • 17. Variabelen ! Nummers en strings ! 1 “1” “melk” varmijnTeller = 1 + 1 (de waarde van mijnTeller is 2) varmijnTeller = 1 + “1” (de waarde van mijnTeller is 11) varmijnTeller = “1” + “1” (de waarde van mijnTeller is 11) varmijnTeller = 1 * “1” (syntaxfout) varmijnTeller = 1 / “1” (syntaxfout) varmijnTeller = 1 - “1” (syntaxfout)
  • 18. Variabelen ! Nummers en strings 2 ! varmijnTeller = mijnTeller + 1 De variabeleMijnTellerwordt met 1 opgehoogd varmijnTeller = mijnTeller ++ De variabeleMijnTellerwordt met 1 opgehoogd varmijnTeller = mijnTeller - 1 De variabeleMijnTellerwordt met 1 verlaagd varmijnTeller = mijnTeller -- De variabeleMijnTellerwordt met 1 verlaagd
  • 19. Vergelijkingen ! + / - * < > ++ --
  • 20. Events! De browser doet alleen iets als er iets gebeurt! Keyboard-events ! Mouse click events! Mouse move events ! Window-events ! Form en input events !
  • 22. Opdracht Javascript‘1’ Opdracht 1. Maakeenwebpagina met daarineenaantalvariabelen die ervoorzorgendat Dat je naam, klas, opdrachtnummerna het laden van de body wordengeplaats op dezepagina. Je hebthiereenfunctie en variabelennodig. Tevensmoet op de paginaeenlijstjekomen met supermarktartikelenwaarvan de prijzend.m.v. variabelengeplaatstworden. Ermoetookeentotaalbedragvoordezeartikelenkomend.m.v. het optellen van dezevariabelen. Upload dezepagina (zip-file) naarnatschool in de map JS opdracht 1.De opdrachtmoetvoor het eind van de les geplaatstzijn.