Dreamweaver: Including Interaction and Multimedia in Web Pages
Total Page:16
File Type:pdf, Size:1020Kb
Dreamweaver: Including Interaction and Multimedia in Web Pages How to Use This Book This handbook accompanies the taught sessions for the course. Each section contains a brief overview of a topic for your reference and then one or more exercises. The Exercises Exercises are arranged as follows: • A title and brief overview of the tasks to be carried out • A numbered set of tasks, together with a brief description of each • A numbered set of detailed steps that will achieve each task Some exercises, particularly those within the same section, assume that you have completed earlier exercises. Your lecturer will direct you to the location of files that are needed for the exercises. If you have any problems with the text or the exercises, please ask the lecturer or one of the demonstrators for help. This book includes plenty of exercise activities – more than can usually be completed during the hands-on sessions of the course. You should select some to try during the course, while the teacher and demonstrator(s) are around to guide you. Later, you may attend follow-up sessions at OUCS called Computer8, where you can continue work on the exercises, with some support from IT teachers. Other exercises are for you to try on your own, as a reminder or an extension of the work done during the course. Writing Conventions A number of conventions are used to help you to be clear about what you need to do in each step of a task. • In general, the word press indicates you need to press a key on the keyboard. Click, choose or select refer to using the mouse and clicking on items on the screen (unless you have your own favourite way of operating screen features). • Names of keys on the keyboard, for example the Enter (or Return) key, are shown like this ENTER. • Multiple key names linked by a + (for example, CTRL+Z) indicate that the first key should be held down while the remaining keys are pressed; all keys can then be released together. • Words and commands typed in by the user are shown like this. • Labels and titles on the screen are shown like this. • Drop-down menu options are indicated by the name of the options separated by a vertical bar, for example File|Print. In this example you need to select the option Print from the File menu. To do this, click with the mouse button on the File menu name; move the cursor to Print; when Print is highlighted, click the mouse button again. • A button to be clicked will look like this. • The names of software packages are identified like this, and the names of files to be used like this. ii Software Used Dreamweaver CS5 Windows XP or Mac OSX Firefox / Internet Explorer / Safari Files Used In the PresenterSite folder about.html feedback.html hardware.html index.html personal.html software.html stafftable.html style.html technology.html ImageZoom.class In the images folder cherwellPanoramic.jpg db.jpg im.jpg int_thumb.jpg lapel_mike_275x275.jpg las_thumb.jpg laser_pointer_275x275.jpg mik_thumb.jpg PresenterMakingSenseLogo.gif ps.jpg re.jpg se.jpg smart_board_275x275.jpg updated.png vis_thumb.jpg visualiser_275x275.jpg vot_thumb.jpg voting_egg_275x275.jpg In the multimedia folder Eternamente.mp3 Eternamente.wav player_mp3_maxi.swf SayCheese.flv SayCheese.mp4 SayCheese.mpg SayCheese.ogv SayCheese.webm In the Galleria folder galleria.js plugins folder themes folder In the Course Materials folder aino-galleria-fc65989.zip DisplayTimeOfLastVisit.txt galleria.txt HTML5Video.txt ImageZoom.pdf ImageZoom.zip MP3Player.txt PresenterMakingSenseLogo.swf Revision Information Version Date Author Changes made 1.0 January 2011 Dave Baker Created 1.0a September 2011 Dave Baker Minor corrections 2.0 December 2012 Dave Baker Updated for CS6 iii Acknowledgements Thank you to all the attendees on previous Dreamweaver courses for your positive feedback and your requests for more. This course is your fault ;-) Thank you to Anna Pavelin for her proofreading and testing of the exercises. Any remaining errors will have been introduced since her careful work. Thank you to Derek Flood of Das Werk and Westpark Studios for his permission to use the Say Cheese video in our courses. Copyright This document is made available under a Creative Commons Attribution- NonCommercial-ShareAlike CC BY-NC-SA licence by Dave Baker who asserts his right to be identified as the author. Note that some images and resources used in the document and presentations are copyright of their owners and may be subject to different copyright conditions. Where possible this has been noted in the text. If an error in attribution/copyright has been made, please contact the author who will be pleased to make the necessary corrections. Screen shots in this document are copyright of Adobe. The SayCheese video is used with the kind permission of Derek Flood and is provided for use only within the context of ITLP courses at the University of Oxford. The Eternamente audio track is by Yachar and available for download for personal use under a Creative Commons licence at http://www.jamendo.com/en/track/577280 The Cherwell panoramic image is used with the kind permission of Carl Wenczek of Born Digital Ltd. iv Contents 1 Introduction ............................................................................. 1 1.1. What you should already know ........................................................... 1 1.2. What you will learn ............................................................................. 1 1.3. Where can I get a copy of Dreamweaver? ........................................... 1 2 Getting started ......................................................................... 2 3 What do we mean by interactivity? .......................................... 4 4 Spry .......................................................................................... 6 4.1. How Spry works in Dreamweaver ..................................................... 7 4.2. Navigation menu ............................................................................... 7 4.3. Spry Accordion.................................................................................. 11 4.4. Spry data handling ............................................................................ 14 5 JavaScript............................................................................... 18 5.1. How JavaScript is used in Dreamweaver ........................................ 18 5.2. Cookies and JavaScript .....................................................................19 5.3. A JavaScript based image gallery .................................................... 22 6 Using Flash ............................................................................ 27 6.1. How Flash is used in Dreamweaver ................................................. 27 7 Using audio ............................................................................ 30 7.1. How audio is used in Dreamweaver .................................................. 31 8 Using video ............................................................................ 35 8.1. How video is used in Dreamweaver ................................................. 35 9 HTML5 audio and video ........................................................ 40 9.1. How HTML5 is handled in Dreamweaver ........................................ 41 10 Using Java applets ............................................................... 44 10.1. How Java applets are used in Dreamweaver ................................. 44 11 What Next? ........................................................................... 48 11.1. Other Dreamweaver sessions .......................................................... 48 11.2. Other IT Learning Programme courses ......................................... 48 11.3. Computer8 ...................................................................................... 48 11.4. IT Services Help Centre .................................................................. 48 11.5. Downloadable course materials (WebLearn) .... Error! Bookmark not defined. 11.6. Downloadable Course Materials - the ITLP Portfolio ............ Error! Bookmark not defined. v 11.7. Reference Material .......................................................................... 49 vi Table of Exercises Exercise 1 Setting up the Dreamweaver environment ........................... 2 Exercise 2 Creating a navigation menu using Spry ............................... 8 Exercise 3 Creating an accordion based page ....................................... 11 Exercise 4 Simple data handling using Spry......................................... 15 Exercise 5 Adding JavaScript that uses cookies .................................. 20 Exercise 6 Adding a JavaScript image gallery ..................................... 23 Exercise 7 Add Flash to a page ............................................................. 28 Exercise 8 Placing audio in a web page ................................................ 31 Exercise 9 Placing video in a web page ................................................ 36 Exercise 10 Placing video in a web page .............................................. 42 Exercise 11 Adding a Java applet to a web page .................................. 45 vii Dreamweaver: Including Interaction and Multimedia in Web Pages TWAH 1 Introduction Welcome to the course Dreamweaver: Including Interaction in Web Pages. This booklet accompanies the course delivered by the University of Oxford’s IT Learning Programme. Although the exercises are clearly explained so that you can work through them yourselves,