HTML and CSS Reference
In-Depth Information
Tu Tori a l 10
Programming
with JavaScript
Hiding E-Mail Addresses on a Library
Web Site
O b j e c t i v e s
Session 10.1
• Learn the history of JavaScript
• Create a script element
• Write text to a Web page with
JavaScript
• Understand basic JavaScript
syntax
• Declare and work with
variables
• Learn about JavaScript data types
Case | Monroe Public Library
Kate Howard is the head of technical services at Monroe Public
Library in Monroe, Ohio. One of her jobs is to maintain the library's
Web site. In previous years, the library has made its staff direc-
tory, including e-mail links to library employees, available online.
Kate thinks that this is an important part of making the library more
accessible to everyone. However, Kate has become concerned
about the security issues involved with making the staff's e-mail
addresses so accessible. Kate is aware that e-mail addresses can
be scanned from an HTML file and used to send junk mail to the
recipients.
Session 10.2
• Create and call a JavaScript
function
• Access an external JavaScript file
• Add comments to
JavaScript code
• Learn about basic debugging
techniques and tools
She would like to have some way of scrambling the e-mail
addresses within the HTML code while still making them viewable
when the page is rendered by a Web browser. Kate has approached
you for help in writing a program to accomplish this.
STarTing DaTa FileS
tutorial.10
tutorial
review
case1
case2
mpltxt.htm
+ 1 graphic file
+ 1 style sheet
+ 2 JavaScript files
mpl2txt.htm
+ 11 graphic files
+ 1 style sheet
+ 2 JavaScript files
skymaptxt.htm
+ 26 graphic files
+ 1 style sheet
+ 2 JavaScript files
fronttxt.htm
+ 7 graphic files
+ 1 style sheet
+ 3 JavaScript files
case3
case4
todaytxt.htm
+ 1 graphic file
+ 2 style sheets
+ 7 HTML files
+ 2 JavaScript files
1 graphic file
2 JavaScript files
HTML 685
 
Search WWH ::




Custom Search