Michele Gaggia - Web Design - Lesson 5


Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5



Web Design - Page Layout

Page Layouts using Templates

A Template (Vorlage) is a special HTML document created by Dreamweaver which is used to generate similar web pages sharing the same basic design. You can define which areas (Regions) are "editable" and which parts remain unchanged across pages. You can make a template out of any HTML page: just use save it as a template ("Datei > als Vorlage speichern") and add the editable regions. Templates can be used both for no-frames as well as for frames layouts. Within a web project they are always stored in the subfolder "/web/Templates/".

Parts of the HTML document that remain the same across pages (non-editable) typically are:

Regions that change across pages (editable) typically are:

Beside standard Editable Regions it is also possible to add Optional Regions, Repeating Regions, Optional Editable Regions, etc. Some of these options are particularly useful when creating dynamic (script-based) websites, for example a web store.

Exercise: 8.1: Dreamweaver - create a new HTML Template for a Layout with No-Frames

Non-Editable Regions:

Editable Regions:

Exercise 8.2: Dreamweaver - create pages from an existing Template

Exercise 8.3: Dreamweaver - modify a Template and update and related pages automatically

Exercise 8.4: Dreamweaver - create a new HTML Template for a Layout with Frames


Graphic Text

Fireworks

For larger text elements such as website title, page title, chapter title etc. it is recommended to create the text as a graphic file in Fireworks. Advantages:

Tips: save the file as GIF there are only few colors, and sharp contours; JPEG if the background is complex (for example a picture) or there are many shadings.

Exercise 9.1: Fireworks and Dreamweaver - create a set of graphic page titles

Flash

Alternatively, you can create simple (non-animated) Flash text elements directly in Dreamweaver. Also Flash text will display correctly on any platform (the fonts are embedded and Flash uses internal anti-aliasing), provided a working Flash PlugIn is installed in the browser used to view the page. Nowadays almost every browser on every platform comes with a Flash PlugIn already installed.

Exercise 9.2: Dreamweaver - add Flash text


Separators and other Graphic Elements

Separators

When dealing with pages that contain a lot of text information it is convenient to separate each main chapter with a separator line. Instead of using the standard HTML separator (tag: <hr> - Dreamweaver: menu "Einfügen > Horizontale Linie") it might be nicer to create separator lines that match the website style and design. You should just make sure that the width of the separator does not exceed the layout table in which it is inserted.

Exercise 9.2: Fireworks - create a graphic line separator

Other Graphic Elements

Similarly you can create graphic elements for the page header (logo), footer, sub navigation menu, etc. Always check in Dreamweaver the available table cell width and ev. height before defining the canvas size in Fireworks.

When creating a graphic header for the page including a logo, you might want to try combining pictures, shadings and graphic text elements in Fireworks. You can see some example of logos and website designs at http://www.xenostyle.com/webdesign/index.shtml

You can also choose to create all the main page layout and design in Fireworks, then use the slice tool (Segmentierwerkzeug - [K]) to define the different graphic elements and finally export to Dreamweaver all graphic files including an HTML file which contains the layout table.


Navigation Elements, Menus and Interactive Images

With a combination of Java-Script and graphic files created in Fireworks and/or Flash it is possible to create buttons and other graphic elements that change their appearance depending on the mouse pointer action. There are 4 standard button conditions: Up, Over, Down and OverDown.

The part of the graphic which is changing is not necessary the same that the mouse is pointing at: it is also possible to create behaviors (Verhalten) in which one image is clicked but another area is modified.

Navigation Elements

To facilitate navigation within a page or across pages, you might want to add additional navigation arrows for "next page", "previous page" and/or "top of page" links. You can use:

To create a CSS-Style mouseover effect you just have to add a new CSS-Style called "a:hover" with the style selector and then define a different color for this state. You can also define additional properties like text font, size, underline, bold, italic, etc (however, this is not recommended, as the text will change size in mouseover state and move all the rest of the text around).

To create button mouseover effects it is first necessary to create the different button states (Up, Over, Down, OverDown) in Fireworks, then to apply a rollover Java-script Behavior (Verhalten) in Dreamweaver and apply the different images for the different button states. Often it is enough to create just two states and use one for Up and the other for both Over and Down (see for example http://www.ulg-neue-medien.moz.ac.at/index/index.html)

To make a "Top of Page" link you must first set an Anchor on the top of page [Strg+Alt+A], name it "top" and then link the "top" arrows or "top of page" text to it (set the link to "#top" in the properties panel). It is often convenient to place these links just before a HTML or graphic separator line (see for example http://www.ulg-neue-medien.moz.ac.at/lehrende/index.html)

Navigation Menu

A navigation menu is a set of links in form of text or graphic buttons. It can be horizontal, vertical or freely placed using Fireworks or Flash to create the layout. The links can be as for other navigation elements text, text with CSS mouseover, graphic buttons and buttons with mouseover. Using Flash it is also possible to create buttons with complex animations.

To create a graphic navigation menu you should first check the size available in Dreamweaver and then create a new document in Fireworks where to place the graphic buttons.

To add Flash buttons in Dreamweaver it is enough to select from the menu "Einfügen > Interaktive Bilder > Flash-Schaltfläche", then you have to:

Exercise 9.3: Fireworks and Dreamweaver - create a navigation menu

 


Web Design - Adding Content

Media Files Download and Streaming (Audio, Video)

Audio

Uncompressed audio in CD quality (44.1 kHz 16-bit stereo) requires 1411 kbit/s (or 176 kByte/s) and is therefore using way too much bandwidth even for an ADSL connection (max 768 kbit/s). Compressed audio formats such as MP3 and RealAudio make it possible to stream audio in realtime from a website using a single or dual ISDN connection (64 or 128 kbit/s) or, in case of RealAudio, just a modem connection with 56 kbit/s or less.

MP2 and MP3 (MPEG Audio Layer 2 and 3) are between the most popular audio formats on the web. Originally developed by the Fraunhofer Institute in Germany for digital audio broadcasting, they allows almost CD quality with about 1/10 of the bandwidth. Typical rates are:

You can encode WAV, AIFF or any other mono/stereo file into MP3 files using programs such as Steinberg Wavelab, Quick Time, etc.

Playback of MP3 files is supported natively by most modern computer platforms (with Windows Media Player on Windows, or with Quick Time on MacOS). You can also install additional freeware programs like WinAmp (http://www.winamp.com).

Adding MP3 downloads to a HTML page is easy: you just have to place the files in a subdirectory (for example /media/ and link the relevant text or button for download/playback to the desired MP3 file. Most browsers will launch the appropriate player automatically. Using the right mouse button (or Ctrl-click on the Mac) on the link and choosing "save target as" it is possible to save the MP3 file in a specific folder instead.

RealAudio (by RealNetworks) is another popular format, especially for streaming low quality audio over limited bandwidth connections (for example with an analog modem) or for online radios, as it uses a proprietary streaming technique that allows live broadcasting.

At low bitrates it sounds better than MP3 and using reduced audio bandwidth and mono it is possible to add streaming audio with as little as 32 or even 20 kbit/s. At higher bitrates MP3 sounds better than RealAudio, so there is no point in offering high bitrate RealAudio.

You can encode WAV, AIFF or any other mono/stereo file into RealAudio using the shareware program CoolEdit 2000 (Syntrillium) or specific tools by RealNetworks.

Playback of RealAudio files is only possible with its proprietary RealAudio player. There is still a free download available at http://www.real.com (follow the links for the RealOne free player).

RealAudio files cannot be linked directly. To allow RealAudio streaming you have to proceed as follows:

Video

In the case of video, bandwidth is even more of a problem. Until recently, only videos at very limited resolutions using reduced frame rate and high compression could be played in real time. Since the introduction of ADSL, it is also possible to play back movies using special compression formats such as MPEG4 or DIV-X in realtime.

MPEG (Motion Picture Expert Group) video is one of the most popular compressed video formats.

You can export to MPEG 1 or MPEG 2 formats (choosing different resolutions and bitrates) using video editing programs such as Pinncle Studio, SonicFoundry Vegas, Adobe Premiere, iMovie, Final Cut Pro, etc.

Playback of MPEG 1 and MPEG 2 files is supported natively by most modern platforms (with Windows Media Player on Windows, or with Quick Time on MacOS).
MPEG 4 is also supported natively by QuickTime, while on Windows it is necessary to install an additional MPEG4 codec to allow playback with the Windows Media Player.
DIV-X video always requires the installation of an additional codec or player (available for download at http://www.divx.com/divx/ )

Generally it should be enough to upload your MPEG movie in the /media/ folder and link it directly with the text or button of your HTML page: the default player (Windows Media Player, QuickTime Player, etc.) should load automatically and start playback after buffering part of the file.

QuickTime is a proprietary, high quality video format. The newest versions feature 3GPP and 3GPP2 file formats which are based on MPEG4 and that require an installed QuickTime player for playback (available for download at http://www.apple.com).

RealVideo is also a proprietary video streaming format. Requires the RealPlayer for playback (the same used for RealAudio). It also support different MPEG video formats playback.

For Internet it is more recommended to use MPEG1 or 4 video formats, as they are compatible with a larger number of players.


Document and File Downloads

To set download for MS-Word documents, PDF files, ZIP compressed folders, Executable files (Programs) etc. is easy: just place the file in a subfolder of the website (for example /docs/ or /files/ ) and link it to the relevant text or button in the HTML document. Usually the standard program associated with the file type will open after the download. If a PDF PlugIn is installed, the PDF file will open directly inside the browser.


Web Gallery

To create a Web Gallery it is necessary to have both an overview page with picture thumbnails (small format, about 120 x 90 or 150 x 100 pixels) as well as detail pages with the larger graphic files (about 300 x 200 up to 450 x 300). Each detail page should have a link back to the overview page and ev. a link to the previous and the next picture.

To see how a typical web gallery is structure you can visit http://www.klangsteine.com/gale_e.shtml or http://www.didgeridoo.at > Picture Gallery.

Dreamweaver offers an automated script to generate a web gallery by just entering a directory full of pictures: it automatically resizes the pictures for the thumbnails using Fireworks, it creates the overview page and the detail pages.

Unfortunately this function allows no control over the layout and design of the HTML pages. Nevertheless you could use this function to automatically create thumbnails, overview table and detail pages complete with back, previous and next links, then insert the HTML code generated inside pages generated with your own templates, finally save the template generated HTML pages over the "raw" HTML pages.


Dynamic Content: a News page using BLOGGER

While creating a full dynamic website based on a combination of script language (like CGI-Perl, PHP, Microsoft's ASP.NET, MIVA, etc.), a database containing information (Microsoft SQL, MySQL) and visual templates for the graphic layout requires advanced programming skills in the used script and database language, to create a relatively simple dynamic page with web-based actualisation is relatively easy thanks to free online services such as BLOGGER.

Basically BLOGGER offers a browser interface from which you can create, modify and delete "posts" in the form of news, a diary, etc. which are then automatically uploaded to your website using FTP. The uploaded files can be complete HTML pages, or part of HTML code which is then "inserted" in the main HTML page using SSI (Server Side Includes). In this way the HTML page, when requrested by the browser, is quasi created "on the fly" by the server, putting together the main HTML file and adding the extra HTML code generated by BLOGGER.

BLOGGER allows complete customisation of the "look & feel" of the posted messages, so that the BLOGGER page can be perfectly integrated in the general website design (see for example http://www.didgeridoo.at > "concerts" or http://www.translators-fusion.com > "news").
However editing the templates requires good knowledge of CSS-Style type of commands.
Alternatively, there is a large selection of ready-to-use design templates to choose from.

To learn more about BLOGGER and how to set up a news page, please go to http://www.blogger.com, sign up and read the FAQ.
You will require a valid email address to confirm the account registration and a working FTP account to make the posting system work.


Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5


© 2003-2004 Michele Gaggia - all rights reserved