Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Odds and Ends



Tuesday, September 29, 2009
Style



Tuesday, September 29, 2009
too much spacing
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org...
good
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/xhtml1/D...
bad indention
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR...
good
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/xhtml1/D...
no spacing around
                                  operators
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S...
good
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/xhtml1/D...
no indention
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/...
no indention
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/...
good
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/xhtml1/D...
too much on one line

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w...
too much on one line
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3...
good
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                "http://www.w3.org/TR/xhtml1/D...
prompt



Tuesday, September 29, 2009
var input = prompt('How old are you?');

                     returns a string of whatever the user enters




Tuesday, Se...
var input = prompt('How old are you?');




Tuesday, September 29, 2009
var input = prompt('How old are you?');




Tuesday, September 29, 2009
var input = prompt('How old are you?');




               // when they click ok, input will be 27



Tuesday, September 2...
var input = prompt('How old are you?');




      // same as below, accept input is from user
      rather than from a sta...
alert



Tuesday, September 29, 2009
alert('Here is an annoying message.');

          pops up an annoying box people have to click ok on




Tuesday, Septembe...
alert('Here is an annoying message.');




Tuesday, September 29, 2009
confirm



Tuesday, September 29, 2009
var check = confirm('Are you sure?');

                              returns true or false




Tuesday, September 29, 2009
var check = confirm('Are you sure?');




Tuesday, September 29, 2009
var check = confirm('Are you sure?');




            check would be false        check would be true

Tuesday, September ...
editors



Tuesday, September 29, 2009
dreamweaver
                              already installed on your workstations
                                   http:/...
textmate
                              if you have a mac and want awesome
                                        http://m...
smultron
                                  mac only and free
                              http://sourceforge.net/projects...
assignment05
                         http://teaching.johnnunemaker.com/capp-30550/sessions/odds-and-ends/

              ...
Upcoming SlideShare
Loading in …5
×

Odds And Ends

1,956 views

Published on

Published in: Entertainment & Humor, Sports
  • Be the first to comment

  • Be the first to like this

Odds And Ends

  1. 1. Odds and Ends Tuesday, September 29, 2009
  2. 2. Style Tuesday, September 29, 2009
  3. 3. too much spacing <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day = 24; var days_in_year = 365; var hours_in_year = hours_in_day * days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  4. 4. good <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day = 24; var days_in_year = 365; var hours_in_year = hours_in_day * days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  5. 5. bad indention <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day = 24; var days_in_year = 365; var hours_in_year = hours_in_day * days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  6. 6. good <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day = 24; var days_in_year = 365; var hours_in_year = hours_in_day * days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  7. 7. no spacing around operators <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day=24; var days_in_year=365; var hours_in_year=hours_in_day*days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  8. 8. good <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> var hours_in_day = 24; var days_in_year = 365; var hours_in_year = hours_in_day * days_in_year; document.write(hours_in_year); </script> </body> </html> Tuesday, September 29, 2009
  9. 9. no indention <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) { if (i > 50) { document.write(i); } } </script> </body> </html> Tuesday, September 29, 2009
  10. 10. no indention <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) { if (i > 50) { document.write(i); } } </script> </body> </html> Tuesday, September 29, 2009
  11. 11. good <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) { if (i > 50) { document.write(i); } } </script> </body> </html> Tuesday, September 29, 2009
  12. 12. too much on one line <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) {if (i > 50) {document.write(i);}} </script> </body> </html> Tuesday, September 29, 2009
  13. 13. too much on one line <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) { if (i > 50) {document.write(i);} } </script> </body> </html> Tuesday, September 29, 2009
  14. 14. good <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title> </head> <body> <script type="text/javascript"> for (var i=0; i < 100; i++) { if (i > 50) { document.write(i); } } </script> </body> </html> Tuesday, September 29, 2009
  15. 15. prompt Tuesday, September 29, 2009
  16. 16. var input = prompt('How old are you?'); returns a string of whatever the user enters Tuesday, September 29, 2009
  17. 17. var input = prompt('How old are you?'); Tuesday, September 29, 2009
  18. 18. var input = prompt('How old are you?'); Tuesday, September 29, 2009
  19. 19. var input = prompt('How old are you?'); // when they click ok, input will be 27 Tuesday, September 29, 2009
  20. 20. var input = prompt('How old are you?'); // same as below, accept input is from user rather than from a static variable you set var input = '27'; Tuesday, September 29, 2009
  21. 21. alert Tuesday, September 29, 2009
  22. 22. alert('Here is an annoying message.'); pops up an annoying box people have to click ok on Tuesday, September 29, 2009
  23. 23. alert('Here is an annoying message.'); Tuesday, September 29, 2009
  24. 24. confirm Tuesday, September 29, 2009
  25. 25. var check = confirm('Are you sure?'); returns true or false Tuesday, September 29, 2009
  26. 26. var check = confirm('Are you sure?'); Tuesday, September 29, 2009
  27. 27. var check = confirm('Are you sure?'); check would be false check would be true Tuesday, September 29, 2009
  28. 28. editors Tuesday, September 29, 2009
  29. 29. dreamweaver already installed on your workstations http://oit.nd.edu/web/webfile_dreamweaver.shtml Tuesday, September 29, 2009
  30. 30. textmate if you have a mac and want awesome http://macromates.com/ Tuesday, September 29, 2009
  31. 31. smultron mac only and free http://sourceforge.net/projects/smultron/ Tuesday, September 29, 2009
  32. 32. assignment05 http://teaching.johnnunemaker.com/capp-30550/sessions/odds-and-ends/ reminder: read the instructions, name directories and files exactly, make sure assignment available from web space Tuesday, September 29, 2009

×