HTML documents and JavaScript презентация
Содержание
- 2. Overview Some basic HTML And principles and issues W3C Standards that
- 3. Readings
- 4. HTML Background Many “markup” languages in the past SGML: Standard Generalized
- 5. Principles Distinguish structure from presentation Presentation based on structure Presentation may
- 7. Tags and Elements Example of an element: <name attr1=“attrval”>content</name> Begin and
- 8. Basic HTML Structure Comments: <!-- … --> Example: <html>
- 9. Larger Example <html> <head> <title>An Example</title> </head> <body> <h3><hr>An Example</h3> <p
- 10. Displays As…
- 11. Basic Tags Text display: <em>, <strong>, <em> Structure: <h1>, <h2>, <h3>
- 12. Basic Tags (2) Links: <a href=“…”>…</a> Images: <img src=“…”> an empty
- 13. More HTML Learn on your own You may never code in
- 14. Question: You’re writing software to process an HTML page A web-browser
- 15. Discuss and give me details
- 16. Document Object Model (DOM) An model for describing HTML documents (and
- 17. DOM You get anything you want from… More info:
- 18. W3C Standards XML, XHTML CSS, XSL XSLT DOM ECMAScript etc
- 19. JavaScript An example of a “scripting” langauge that is embedded in
- 20. History JavaScript created by Netscape JScript created by Microsoft IE and
- 21. General Format <!doctype ...> <html> <Head> <Title> Name of web
- 22. Characteristics Case sensitive Object oriented Produces an HTML document Dynamically typed
- 23. Characteristics Division with / is not integer division Modulus (%) is
- 24. Characteristics " and ' can be used in pairs Scope rules
- 25. JavaScript Topics code placement document.writeln document tags window.alert user input/output parseInt
- 26. JavaScript Topics functions random numbers rolling dice form input form output
- 27. JavaScript’s Uses Include: “Dynamic” web-pages What’s DHTML? (in a second) Image
- 28. What’s DHTML? Purpose: make dynamic / interactive web-pages on the client
- 29. Other References CS453 Virtual Lab exercises The Web Wizard’s Guide To
- 30. Browser Compatability Use of: <script type=”text/javascript" language=”javascript" > <!-- // ends
- 31. Organization of JavaScript Create functions (non-OO style) Define in header Or
- 32. JavaScript Programming by example
- 33. document.writeln
- 34. document.write
- 35. window.alert
- 36. User input/output
- 37. Functions
- 38. Random Numbers
- 39. Roll the Die
- 40. Rules of Craps First roll: 7 or 11 is a win
- 41. Craps
- 42. Craps
- 43. Craps
- 44. Craps
- 45. Craps
- 46. Poker Hand
- 47. Poker Hand
- 48. Poker Hand
- 49. Character Processing
- 50. Dates and Times
- 51. Dates and Times
- 52. Radio buttons Assure that at least one radio button is clicked
- 53. Checkboxes Respond to selections made with checkboxes
- 54. Textboxes Detecting an empty textbox
- 55. Self-grading Tests Collecting and evaluating answers to questions
- 56. Character String Processing Validate an email address
- 57. Cookies Write a cookie on the client's device
- 58. Events JavaScript can execute a statement (typically, call a function) when
- 59. Events onsubmit - call when submit button is clicked onclick -
- 60. Mouse Events Illustrate onmouseover and onmouseout
- 61. Handling Time Create a simple JavaScript clock
- 62. Controlling Time Turn a clock on and off and format the
- 63. Handling Images Create a slide show
- 64. Generate Real-Time Data Simulate monitoring real-time information from a device
- 65. Continuous Update Gather data synchronously using the clock as the event
- 66. End of Examples
- 67. Скачать презентацию


































































Слайды и текст этой презентации
Похожие презентации