80 likes | 189 Views
Activate Your Webpages With JavaScript!. Powerpoint Introduction with Application to Follow. What is JavaScript?. Not Java A scripting language written directly on the web page. Case sensitive. Punctuation and spelling are important!
E N D
Activate Your WebpagesWith JavaScript! Powerpoint Introduction with Application to Follow
What is JavaScript? • Not Java • A scripting language written directly on the web page. • Case sensitive. • Punctuation and spelling are important! • Even hitting enter in the middle of a line can cause problems
How to Correct Errors • Alert in lower left hand corner of Internet Explorer shows errors. • Double click on alert and choose “Show Details” • Choose menu Tools/Internet Options/ Advanced tab. Checkmark “Display a notification about every script error.” See Activate Handout
Placing JavaScript • In the tag • Mouseover Buttons • Link Color Changes • In the head and body • LastModified • Navigation With or Without Go • In a separate .js file • Adbanner Handouts to follow
In the tag • No script tag needed • Watch your punctuation • Handouts: Simple Rollover and Link Colors • Did you know that Dreamweaver creates JavaScript code called Behaviors? • Handout: Dreamweaver Rollover Buttons
In the Head and Body • Functions - head • Output - body • Script tags: <script language=“JavaScript” type=“text/script”>Type your JavaScript here</script> • Dreamweaver script tags – Keep yours separate • Handouts: LastModified, Navigation with Go, Navigation without Go
In a Separate File • Info in Script tag moves to new file with .js ending • Provide a link to the .js in head <script src="script07.js" language="javascript" type="text/javascript"></script> • Handouts: Adbanner Using External JS, Adbanner Using Internal JS
Learn more . . . • JavaScript and Ajax for the Web • Other books • Continuing Education Courses • Online Tutorials • Handout: Activate Your Webpages.Links and my contact information are provided.