Solved

Page load problem

Posted on 2003-10-29
3
241 Views
Last Modified: 2013-12-24
Hi all, I'm using a template for my website and keep getting an error when the page loads.  Line 84, character 1, object expected.  I am hacking my way thru getting a site set up and this is a minor thorn in my side but one I would really like to se resolved.  Any help would be greatly appreciated.


<HTML>
<HEAD>

      <TITLE>Canada Health Care Service - Online Discount Canadian Pharmacy, North West Chicago Illinois</TITLE>
      <META name='description' content=''>
      <META name='keywords' content=''>
      <META name='revisit-after' content='7days'>
      <META name='robots' content='index, follow'>
        <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'>

<style type='text/css'>
      body,td            { font-family: verdana, arial, helvetica; color: #434343; font-size: 12px; }

      .tb            { font-size: 9px; color: #0066BE; font-weight: bold; font-family: verdana, arial, helvetica; }
      A:link.tb      { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
      A:visited.tb      { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
      A:hover.tb      { text-decoration: none; color: #000000; font-family: verdana, arial, helvetica; }

      A:link            { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
      A:visited      { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
      A:hover            { text-decoration: underline; color: #000000; font-family: verdana, arial, helvetica; }

      .copyright      { font-size: 9px; color: #ffffff; font-weight: bold; font-family: verdana, arial, helvetica; }
      .small            { font-size: 10px; font-family: verdana, arial, helvetica; }
      .emph            { font-weight: bold; font-family: verdana, arial, helvetica; }

</style>

<script language=javascript>
<!-- // hide script from old browsers

if(document.images) {

  image01 = new Image;
  image02 = new Image;
  image11 = new Image;
  image12 = new Image;
  image21 = new Image;
  image22 = new Image;
  image31 = new Image;
  image32 = new Image;
  image41 = new Image;
  image42 = new Image;
  image51 = new Image;
  image52 = new Image;
  image61 = new Image;
  image62 = new Image;

// source images

  image01.src = "images/index_10.jpg";
  image02.src = "images/index_10-over.jpg";
  image11.src = "images/index_11.jpg";
  image12.src = "images/index_11-over.jpg";
  image21.src = "images/index_12.jpg";
  image22.src = "images/index_12-over.jpg";
  image31.src = "images/index_13.jpg";
  image32.src = "images/index_13-over.jpg";

}

// MouseOver Function

function swapOn(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "2.src");
  }
}

// MouseOut Function

function swapOff(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "1.src");
  }
}

// end hiding script -->
</script>



</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 RIGHTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();" background="images/index_35.jpg">
0
Comment
Question by:R_Hos
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 125 total points
ID: 9646095
I don't see a preloadImages() method/function defined anywhere.  Can you post the code for that?

This should work:

<HTML>
<HEAD>

     <TITLE>Canada Health Care Service - Online Discount Canadian Pharmacy, North West Chicago Illinois</TITLE>
     <META name='description' content=''>
     <META name='keywords' content=''>
     <META name='revisit-after' content='7days'>
     <META name='robots' content='index, follow'>
        <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'>

<style type='text/css'>
     body,td          { font-family: verdana, arial, helvetica; color: #434343; font-size: 12px; }

     .tb          { font-size: 9px; color: #0066BE; font-weight: bold; font-family: verdana, arial, helvetica; }
     A:link.tb     { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
     A:visited.tb     { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
     A:hover.tb     { text-decoration: none; color: #000000; font-family: verdana, arial, helvetica; }

     A:link          { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
     A:visited     { text-decoration: none; color: #0066BE; font-family: verdana, arial, helvetica; }
     A:hover          { text-decoration: underline; color: #000000; font-family: verdana, arial, helvetica; }

     .copyright     { font-size: 9px; color: #ffffff; font-weight: bold; font-family: verdana, arial, helvetica; }
     .small          { font-size: 10px; font-family: verdana, arial, helvetica; }
     .emph          { font-weight: bold; font-family: verdana, arial, helvetica; }

</style>

<script language=javascript>
<!-- // hide script from old browsers
function preloadImages() {
if(document.images) {

  image01 = new Image;
  image02 = new Image;
  image11 = new Image;
  image12 = new Image;
  image21 = new Image;
  image22 = new Image;
  image31 = new Image;
  image32 = new Image;
  image41 = new Image;
  image42 = new Image;
  image51 = new Image;
  image52 = new Image;
  image61 = new Image;
  image62 = new Image;

// source images

  image01.src = "images/index_10.jpg";
  image02.src = "images/index_10-over.jpg";
  image11.src = "images/index_11.jpg";
  image12.src = "images/index_11-over.jpg";
  image21.src = "images/index_12.jpg";
  image22.src = "images/index_12-over.jpg";
  image31.src = "images/index_13.jpg";
  image32.src = "images/index_13-over.jpg";

}
} // end function
// MouseOver Function

function swapOn(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "2.src");
  }
}

// MouseOut Function

function swapOff(imgLocation) {
  if(document.images) {
    document.images[imgLocation].src = eval(imgLocation + "1.src");
  }
}

// end hiding script -->
</script>



</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 RIGHTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();" background="images/index_35.jpg">

HTH,
CJ
0
 
LVL 17

Expert Comment

by:anandkp
ID: 9647716
what does line 84 correspond to ???
what area does it show highlighted under a DEBUG mode !

this wld enable us to know where exactly we need to look for the error !

let us know ...
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 9661128
Thanx for the "A"

CJ
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
font missing in acrobat 3 76
Create sub domain on windows dedicated server. 13 74
WebSite Direction 1 54
Soundcloud.com 4 45
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question