Randomised Graphics Admin

The random graphics function gives an opportunity to show site visitors a different graphic every time the Home Page is loaded.  It can be used to highlight products, services, events or areas of your web site.  Each random graphic can link the graphic to a specific web page, and text tags can be applied for site visitors who cannot view graphics.  Graphic files can be loaded via the admin interface or copied directly onto the server.

Care should be taken on two points when implementing random graphics:

Maintaining random graphics with admin interface

  1. As a logged-in admin user, click the Home Page Admin link from the Home Page, and choose the Randomised graphics Admin option.

  2. Output this function to users' browsers can be turned on and off.

  3. A column of icons down the right-hand side of the page allow you to add, delete, edit or re-order exchange rates.  (Bear in mind that the effect of your changes may vary according to your stylesheet settings.)

Add the graphic by clicking OK, or click  Cancel to close the window without adding a graphic.

Note: This function supports image file extensions.

  1. Random graphics can be previewed before committing any changes you have made.  

  2. To confirm any changes you have made, click Update.  (Clicking the Home Page or Home Page Admin links will also confirm your changes.)  To cancel any changes you have made since the last update, click the Cancel Changes link.

Maintaining Random Graphics through your server's file system

  1. Adding/Deleting Image Files: the library of random graphics is stored in the images/graphics/ sub-directory of your Home Page directory.  Files can be copied in and out freely, but will only be included in Home Page if the filename is registered in the links.txt file.

  2. Edit the links.txt file: each graphic is registered on a separate line (the order is not important).  Each line has three fields, enclosed in double-quotation marks and separated with a comma.  The fields should contain "graphic_filename","link_URL","Alt text".  Enter "#" for the link URL if there is no link is required.

Technical Details

These technical details are intended for web designers when setting up a stylesheet.

The sample HTML output below shows how the random graphic is output.  If customised output is required for your home page implementation, please contact the developers.

HTML Output
 

<!-- Random graphic-->

<div id="random_banner">

    <a href="en/team/index.html"><img src="images/graphics/graphic_filename.jpg"

        border="0" alt="alt text">

        </a>

</div>

<!-- Random graphic end-->

Sample Stylesheet Implementation

The stylesheet is individual to each implementation.  The code below is just an illustration of how it may be implemented.

#random_banner {

    position: absolute;

    top: 100px;

    right: 100px;

    width: 180px;

    height: 230px;

    overflow: hidden;

    z-index: 1;

    }