Solved

Page load problem

Posted on 2003-10-29
3
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intranet Solution - Sharepoint Foundation or up 4 67
Problem to go to page 12 111
Is it true tt IIS7 can't support TLSv1.2 if OS is on Win2008 1 77
spamming  on Hosted svrs? 6 105
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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