Foundations of Web Design
Animation
- Using
DHTML to create animation and other effects
- DHTML
(Dynamic Hypertext Markup Language) is actually a combination
of HTML, Javascript, CSS, and Document Object Model (DOM) that allows
certain animation and interactive elements to appear in a Web page. No
plug-ins are necessary as long as a recent browser version (4.0 and above)
is used.
- Beware,
however, because DHTML is implemented differently in Netscape and Internet
Explorer and you may need to use browser detection for pages to be universally
consistent.
- Examine
the HTML code for this example
of how DHTML (i.e. CSS & Javascript with browser detection) can be
used to place objects on a Web page without tables, animate objects, and
layer them.
- Dreamweaver
allows you to create layers and behaviors very easily. Use the Insert/Layers
menu command to add a layers (which can overlap). Each layer can be precisely
positioned with drag and drop control as well as controlled with its Visibility,
Height, Width, and other preferences. You can also use the Behaviors window
(Window/Behaviors menu command) to create effects such as mouseovers,
image swapping, browser detection, etc.
- Dreamweaver
can be used to convert a web page that uses non-overlapping layers into
tables using the Modify/Convert/Layers to Table menu command for increased
browser compatibility. You may even want to storyboard your web page using
non-overlapping layers for the drag-and-drop ease of use rather than using
the View/Table View menu commands.
- Activity:
1. Open Dreamweaver, create a new document, immediately save it with an
appropriate file name (such as dhtmlexample.htm)
2. Click the Insert/Layer menu command.
3. With the cursor blinking in the new layer, click the Insert/Image from
the menu and select an image from your hard drive that your previously
downloaded.
4. Resize the layer to barely contain the image if necessary. Now you
can drag and place the layer with the graphic wherever you wish.
5. You can create other layers and overlap images and text in this way.
6. Click on the graphic to select it. Find some interesting behaviors
by choosing the Windows/Behaviors menu command and looking under the plus
symbol. Perhaps the Show/Hide Layers behavior will serve as an example.
The onMouseOver event may be selected.
7. Save the Web page and view in Netscape.
- Activity:
1. Continuing from the previous activity, choose the Window/Timelines
menu command.
2. Drag and drop the Layer from the document onto the Timelines window.
3. Click frame 15 on the Layer's lifeline in the Timeline window.
4. Drag the Layer to a new position in the document window. A line will
appear.
5. Click and hold down the Play button at the top of the Timeline window
to see the animation.
6. Click the Autoplay checkbox at the top of the Timelines window.
7. Save and view the page in Netscape.
- Activity:
Using Dreamweaver's Timeline window, create a continuous slide show (preferably
with images but use text if necessary) for one of the pages in your Final
Project site.
- Activity:
Use several JavaScript behaviors found in the Window/Behaviors panel.
Browser & plugin detection can be easily be added to a page this way.
You can also use Show/Hide Layers to create popup menus. The Set Text
and Swap Image behaviors can be useful as well.
- Flash
- Flash
is a program made by Macromedia for authoring Web animation. It specifically
allows you to create and animate two-dimensional vector (as opposed to
bit-mapped, pixel) graphics. This yields small but compelling animation
segments.
- The Flash Player plug-in
has been widely distributed with browsers and even the Windows 98 and
higher operating systems. Over 90% of your audience probably has the Flash
plug-in.
- See these
examples
of Flash or view the Flash
inspiration sites at Lynda Weinman's site.
- Activity:
Create a popup Flash banner (468 x 60 pixels) for your Final Project site's
home page. If you can incorporate motion, shape, and color tweening. Also
save a version of the banner as an animated gif and compare the quality
of the two animations. Add a sound from the Flash Common Library.
- Activity:
Create Flash buttons within Dreamweaver using the Insert/Interactive Images/Flash
Button or Flash Text menu commands.
- (optional)
Activity:
- Choose
the File/New menu command.
- Choose
the Insert/New Symbol menu command.
- Click
the graphic option button.
- Change
the name to "circle".
- Choose
the Circle tool in the Toolbox.
- Hold
down the Shift key and drag a circle centered around the plus (+)
symbol in center of the screen.
- Click
the Scene1 tab at the top of the window.
- Choose
the Window/Library menu command.
- Drag
a copy of the circle symbol from the Library window into your movie
scene.
- Use
the Arrow tool in the Toolbox to position the circle in the top left
corner.
- Click
frame 25 in Layer1 of the Timeline window.
- Choose
the Insert/Keyframe menu command.
- Move
the circle to the upper right corner of the window with the Arrow
tool.
- Choose
either the Control/Play or the Control/Test Movie menu command.
- Right
click any frame between frame 1 and frame 25 in Layer1. Select Create
Motion Tween.
- Choose
either the Control/Play or the Control/Test Movie menu command.
- Click
frame 25 again.
- Change
the Color selector on the Properties Inspector from None to Alpha.
- Change
100% to 10%.
- Choose
the Control/Play menu command.
- Click
frame 25 again.
- Select
the faint circle in the right corner.
- Click
the Free Transform tool in the Toolbox.
- Hold
down the Shift key and resize it smaller by dragging a corner handle
inward.
- Choose
the Control/Play menu command.
- Click
the Insert/Layer menu command. Make sure that the new layer, Layer2,
is selected in the Timelines window.
- Choose
a different color with the Fill Color tool.
- Choose
the Text/Size/48 menu command.
- Choose
the Text tool (A) in the Toolbox.
- Click
in the top left corner of the movie window and type "Acme Inc."
- Choose
the Control/Play menu command.
- Click
and drag Layer2 below Layer1 in the Timelines window.
- Choose
the Control/Play menu command.
- Right-click
frame 25 in Layer1 and choose Actions.
- Click
Basic Actions and double-click Stop.
- Choose
the Modify/Document menu command and change the height of the movie
to 100 px (pixels).
- Choose
the File/Save As and save the movie file as "Demo1.fla".
- Choose
the File/Publish menu command.
- Open
a browser and view the file Demo1.htm that
was automatically created
- Shockwave
- Shockwave
is a standard for complex, interactive animation on the Web even though
the Shockwave plug-in must be added to a browser. Visit
Macromedia
to obtain the free plug-in. Visit
shockwave.com or Macromedia's Shockwave
Showcase to play compelling online games and see examples of the Shockwave
format.
- The multimedia
authoring application Macromedia
Director is used to create Shockwave movies. It is a powerful
(and rather expensive) program that is used for full-scale multimedia
development but includes a simple "Save As Shockwave Movie..."
export option.
- I created
this simple Shockwave movie as an example
- PowerPoint
- Microsoft
PowerPoint allows you to integrade audio tracks, video tracks with a PowerPoint
presentation and upload it to the Web.
- Your clients
can download and install the PowerPoint
97 Animation Player plug-in to view animated PowerPoint Web presentations.
- You can
use the free RealPresenter
Basic application to allow our voice audio track to be published to
the Web along with the PowerPoint presentation.
- You can
use the free Microsoft
Producer Add-In with PowerPoint 2002 to easily combine video and audio
tracks with a PowerPoint presentation.
- You can
simply use the Save As...HTML menu command in PowerPoint to convert the
static slides to static Web pages:
- SMIL Format
- The Synchronized
Multimedia Integration Language (SMIL) allows multimedia authors to build
time-based, streaming multimedia presentations. Based on an XML DTD, the
standard allows the author to control media elements with a language similar
to HTML. See http://www.w3.org/AudioVideo
for details.
Wrapping up
the Workshop
- Final Project
Requirements - See your Student Manual
for this workshop for the listed requirements and the due date.
- Take the
"Final Exam" quiz and submit it to be graded before you leave today.
- Course Evaluations
- Follow these
instructions to complete the online evaluation form.
- Visit www.webpro.psu.edu
- Click the
ENTER hyperlink to enter.
- Click the
1st Day Sign Up hyperlink in the lower left corner.
- Choose the
Penn State Berks campus in the combo box.
- Choose the
"I have signed up once before." option button (assuming that you
have logged into the webpro web site before.)
- Click the
Continue hyperlink.
- Choose the
"IST6773: Sec. ?- Foundations of Web Design - Minich" option
button.
- Type the
course password "addme_2" in the lower right corner.
- Click the
Continue hyperlink.
- Enter your
PSU Access Account username and password and click the Finish hyperlink.
- At this point,
it may require you to sign in again to the www.webpro.psu.edu
web site.
- After you
have logged in again, you will be able to click the "Course Evaluations"
hyperlink along the left side of the page and see our course (Foundations
of Web Design - Section ?) listed in the evaluations area. (Or, I think
you can directly visit the page at www.webpro.psu.edu/studentsurvey.cfm
after logging in to the site.)
- Good luck in your
future Web Design endeavors!