![]() |
||||||
|
|
![]() |
Web Programming and Design Tips PMC uses Fireworks to get graphics/images ready for the Web. Using Fireworks slice tool reduces the hours you would normally spend in other programs trying to slice your graphics for faster loading to a matter of minutes. Once the slices are set up, you can click on the icon in the center of the slice to set up drop-down menus. When you are ready, use the Export command to optimize your images/graphics for faster download. Fireworks will write the code for the HTML file as well as the Javascript file needed to run the drop-downs (you can easily rewrite these files or edit them to operate the way you would like them to). Combine this with Dreamweaver's templates and your site will be technically impressive and easy to manage. A few minor edits and reorganization of files is all it takes to load the site in to Zope, Apache, IIS, Appleshare IP, etc . . . Placing a HTML menu in each section makes the site navagational to browsers with java turned off, ADA readers, and Palm Pilots. Importing and using style sheets in your site allows you to change your type faces and sizes in seconds for the entire site. Here is an example of a type style: .bodycopy { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; line-height: 13px; font-weight: normal; font-variant: normal; text-transform: none; color: #000000} This file was saved as "style_copy.css" and is called to the page in the <head> using the following commands: <style> To apply the style, apply the style to the <td> tag like this: <td class="bodycopy"> Or, to apply the style to a paragraph: <p class="bodycopy"> According to W3C, the <font> tag may phased out of the HTML language in future revisions to HTML and style sheets will be used to specify fonts. Dreamweaver Library Items Purdue Marketing Communications uses library items to manage menu lists within a site. The information on a Web site is organized into a series of sections, often with many subsections. Each page within each subsection uses the same submenu for navigation. Having a central source for this menu allows for the quick management of these links. Library items can also be used as a content management system within Dreamweaver if the content is saved as a library item. Library items can be found under "Window>Assets" once the window opens, click on the book icon to display the site's library items. To save an item as a library item: 1. Highlight the content you would like to save as a Library Item, PMC uses Dreamweaver templates to develop Web sites of all sizes. A single internal page is created and saved as a template (File>Save as Template), and all pages within the site are created using the template (File>New From Template). Templates allow for the easy management of the site's overall navigation and layout. Adding editable regions (Modify>Template>New Editable Region) to the site allows for non-technical staff to easily update a Web site without having to learn anything but the site's organization. By using templates and creating editable regions, you're defining the sections other people can update and restricting sections they cannot. Style sheets can also be applied to the <td> tag (example:<td class="bodycopy">) in the template to set the entire site to a consistent type face and size. Copyright Information We are often asked what copyright information should be included on a Web page. As a result, we have created a very small gif file that contains the disclaimer information and provided it for you on this page. We created it as a gif file rather than a server-side include because some campus servers do not have server-sides activated. The code not only gives you the image location, but it also links the image to the official disclaimer information. Here is the code: For White Backgrounds
<table border="0" cellspacing="0" cellpadding="0"
summary="purdue main links"> For Black Backgrounds
<table border="0" cellspacing="0" cellpadding="0"> For Accent Gold Backgrounds (E0D5C5)
<table border="0" cellspacing="0" cellpadding="0"
summary="purdue main links"> We will keep this code up to date with the latest information. For more information on who can use this copyright information, please contact: pmc@pmc.purdue.edu Macromedia Exchange Through the Macromedia Exchange program, you can easily download extensions, code, and other features that will add functionality to programs such as Dreamweaver and Flash. Go to the Macromedia Exchange Web site and get a user ID to begin using this service. Before you download anything from the site, be sure to check user's feedback for testing and troubleshooting information. PDF forms that are ADA compliant Traditionally, PDF files have not been ADA compliant and are difficult to translate to text files. In answer to this, Adobe created a Perl engine to translate PDF files to text files. The code below uses an invisible variable that is preset to translate the PDF file you specify. <FORM METHOD="POST" ACTION="http://access.adobe.com/perl/convertPDF.pl"
ENCTYPE="x-www-form-urlencoded"> An example of this can be found on http://www.purdue.edu/OOP/parents/.
Links without underlining To clean up a page with many links or to create a more streamlined appearance, underlines below links can be removed by placing the code below in the head of your page.
|
||||||||||||||||
![]() |
![]() |
![]() |
![]() |