Help Search SiteMap Directories MyMHC Home Alumnae Academics Admission Athletics Campus Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Web Policies and Style Guide for MHC
Dreamweaver
Page Elements
Page Layout
Banner
Heading
Page Title
Navigation
CSS
Page Footer
MHC Fonts
MHC Colors
Document Interface
News & Highlights
Return to Script
Search Tool
Images
Rotating Images
Popup Browser
Redirect Page
Links to Existing
Content

Connect to Web Server

Planning
bullet ADA
bullet Architecture
bullet Target Audience
bullet Things to Avoid
bullet Check List
bullet Home Pages
bullet Production
bullet Software
bullet Timeline

Utilities
bullet Go Script
bullet Hit Counters
bullet WebMail Forms
bullet DataBase Forms

Related Links

The Web at MHC

RedDot/CMS

Visual Identity Guide for Print

MHC Logos

Note: This Web site pertains to the pre-2006 MHC Web design. For the latest College design and RedDot/CMS, see The Web at MHC.

Rotating Images

A three-column Web page was designed specifically for MHC home pages and to provide a space for rotating images. Reload this page and the above image will randomly rotate. In order for the images to rotate, HTML code must be placed in two areas of the source code and images, which must be an exact width and height, are placed in a specific file folder. See details below on how to incorporate rotating images on your Web page.

Example of a three-column page layout:

How to Incorporate Rotating Images

1. Create Images

Create several images and place them into a folder titled "grafx" in your Webspace. The images must be exactly 287 pixels wide by 105 pixels high. The file names for the image must be numbered sequentially, ie, 1.jpg, 2.jpg, 3.jpg, 4.jpg, etc. The images will load randomly, so it does not matter what number is assigned to any image.

2. Place Rotating Image Script into HTML

There are two areas where code must be placed for the rotating images to work:

  1. Head
    Copy the following code and then paste it (in HTML) above the </head> section, ie, after <title>Rotating Images </title>:

    <!--.function rotateImage "path,num,ht,wid";
    if !"$ht";
    set ht=105;
    endif;
    if !"$wid";
    set wid=287;
    endif;
    random $num r;
    return "<img src=\"$path/$r.jpg\" width=$wid height=$ht alt=\"\">";
    endfunc;
    -->

  2. Column two
    Place your cursor in the top cell of column two, go to the HTML view, then paste the following, with the appropriate modifications (shown below):
<!--.&rotateImage "/offices/finaid/grafx/" 11-->
  • Modify the path, in this case: offices/finaid/grafx/, to reflect the exact location of your images.
  • Modify the number at the end of the code, in this case: 11, to represent the exact number of images in your "grafx" folder.

After you save your Web page, view it live from a Web browser and reload the page to verify the images rotate.

Mount Holyoke College Web Style Guide 2007
50 College Street, South Hadley, MA 01075

Email suggestions or questions.

Copyright © 2008 Mount Holyoke College. This page created by MHC Web Policy Committee and maintained by Theresa Chamberland. Last modified on February 18, 2008.