home *** CD-ROM | disk | FTP | other *** search
/ The Houseplan Collection / HRCD2005.ISO / Main.js < prev    next >
Text File  |  2004-05-05  |  3KB  |  59 lines

  1. function newImage(arg) {
  2.     if (document.images) {
  3.         rslt = new Image();
  4.         rslt.src = arg;
  5.         return rslt;
  6.     }
  7. }
  8.  
  9. function changeImages() {
  10.     if (document.images && (preloadFlag == true)) {
  11.         for (var i=0; i<changeImages.arguments.length; i+=2) {
  12.             document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  13.         }
  14.     }
  15. }
  16.  
  17. var preloadFlag = false;
  18. function preloadImages() {
  19.     if (document.images) {
  20.         Basement_01_Basement_03_over = newImage("images/Basement_01-Basement_03_ove.gif");
  21.         Basement_01_Basement_06_over = newImage("images/Basement_01-Basement_06_ove.gif");
  22.         Basement_01_Basement_08_over = newImage("images/Basement_01-Basement_08_ove.gif");
  23.         Basement_01_Basement_10_over = newImage("images/Basement_01-Basement_10_ove.gif");
  24.         Basement_01_Basement_12_over = newImage("images/Basement_01-Basement_12_ove.gif");
  25.         Basement_01_Basement_14_over = newImage("images/Basement_01-Basement_14_ove.gif");
  26.         Basement_01_Basement_16_over = newImage("images/Basement_01-Basement_16_ove.gif");
  27.         Basement_03_over = newImage("images/Basement_03-over.gif");
  28.         Basement_04_Basement_03_over = newImage("images/Basement_04-Basement_03_ove.gif");
  29.         Basement_04_Basement_06_over = newImage("images/Basement_04-Basement_06_ove.gif");
  30.         Basement_04_Basement_08_over = newImage("images/Basement_04-Basement_08_ove.gif");
  31.         Basement_04_Basement_10_over = newImage("images/Basement_04-Basement_10_ove.gif");
  32.         Basement_04_Basement_12_over = newImage("images/Basement_04-Basement_12_ove.gif");
  33.         Basement_04_Basement_14_over = newImage("images/Basement_04-Basement_14_ove.gif");
  34.         Basement_04_Basement_16_over = newImage("images/Basement_04-Basement_16_ove.gif");
  35.         Basement_06_over = newImage("images/Basement_06-over.gif");
  36.         Basement_08_over = newImage("images/Basement_08-over.gif");
  37.         Basement_10_over = newImage("images/Basement_10-over.gif");
  38.         Basement_12_over = newImage("images/Basement_12-over.gif");
  39.         Basement_14_over = newImage("images/Basement_14-over.gif");
  40.         Basement_16_over = newImage("images/Basement_16-over.gif");
  41.         Page_Front_03_over = newImage("images/Page_Front_03-over.jpg");
  42.         Page_Front_08_Page_Front_05_over = newImage("images/Page_Front_08-Page_Front_05.jpg");
  43.         Page_Front_08_Page_Front_10_over = newImage("images/Page_Front_08-Page_Front_10.jpg");
  44.         Page_Front_08_Page_Front_11_over = newImage("images/Page_Front_08-Page_Front_11.jpg");
  45.         Page_Front_08_Page_Front_12_over = newImage("images/Page_Front_08-Page_Front_12.jpg");
  46.         Page_Front_08_Page_Front_13_over = newImage("images/Page_Front_08-Page_Front_13.jpg");
  47.         Page_Front_08_Page_Front_14_over = newImage("images/Page_Front_08-Page_Front_14.jpg");
  48.         Page_Front_08_Page_Front_15_over = newImage("images/Page_Front_08-Page_Front_15.jpg");
  49.         Page_Front_08_Page_Front_16_over = newImage("images/Page_Front_08-Page_Front_16.jpg");
  50.         Page_Front_08_Page_Front_17_over = newImage("images/Page_Front_08-Page_Front_17.jpg");
  51.         Page_Front_08_Page_Front_18_over = newImage("images/Page_Front_08-Page_Front_18.jpg");
  52.         Page_Front_08_Page_Front_19_over = newImage("images/Page_Front_08-Page_Front_19.jpg");
  53.         preloadFlag = true;
  54.     }
  55. }
  56. // Created with XBuilder (2.5.3727.1), Copyright (c) 1997-1999 Berry International, Inc. All Rights Reserved 
  57. // Page: http://hrcd05.icowip.co.uk/Main.js 
  58. // Date: 04/26/05 11:47 AM 
  59.