Solved

image object in error, why ?

Posted on 1998-01-12
9
205 Views
Last Modified: 2013-12-25
From the work history last week with 'techbuilder' and from the new code I implemented on www.productlist.com/new_buttons_page.htm the code still needs work.  The page www.productlist.com/index_links.htm is fine and now the images are optimized for color.  Please read and test the following code:

///////////////////////////////////////

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Newton's Web Buttons</title>
<base target="left">
<script>
// This will initialize the script.
      ver = "xx"
</script>
<script language="javascript1.1">
// Only those browsers that are capabable of doing what you want will set come
// inside this script.
      ver = "n3"
</script>
<script language="JavaScript">

// function to use when mouse is over graphic
function imgActive(imgName) {
      if (ver == "n3"){
            document.images[imgName].src = eval(imgName + "on.src");
      }
}

// function to use when mouse moves off of graphic
function imgInactive(imgName) {
      if (ver == "n3"){
            document.images[imgName].src = eval(imgName + "off.src");
      }
}

<!-- menu assignments for mouse movements            -->
if (ver == "n3")
{
      menu1on = new Image(119, 17);
      menu1on.src = "new_animals_b.gif";
      menu1off = new Image(119, 17);
      menu1off.src = "new_animals.gif";      

      menu2on = new Image(119, 17);
      menu2on.src = "new_appearal_b.gif";
      menu2off = new Image(119, 17);
      menu2off.src = "new_appearal.gif";      
      
      menu3on = new Image(119, 17);
      menu3on.src = "new_artistry_b.gif";
      menu3off = new Image(119, 17);
      menu3off.src = "new_artistry.gif";      
      
      menu4on = new Image(119, 17);
      menu4on.src = "new_automobiles_b.gif";
      menu4off = new Image(119, 17);
      menu4off.src = "new_automobiles.gif";      
      
      menu5on = new Image(119, 17);
      menu5on.src = "new_books_b.gif";
      menu5off = new Image(119, 17);
      menu5off.src = "new_books.gif";      
      
      menu6on = new Image(119, 17);
      menu6on.src = "new_business_b.gif";
      menu6off = new Image(119, 17);
      menu6off.src = "new_business.gif";      
      
      menu7on = new Image(119, 17);
      menu7on.src = "new_community_b.gif";
      menu7off = new Image(119, 17);
      menu7off.src = "new_community.gif";      
      
      menu8on = new Image(119, 17);
      menu8on.src = "new_computers_b.gif";
      menu8off = new Image(119, 17);
      menu8off.src = "new_computers.gif";      

      menu9on = new Image(119, 17);
      menu9on.src = "new_education_b.gif";
      menu9off = new Image(119, 17);
      menu9off.src = "new_education.gif";      
      
      menu10on = new Image(119, 17);
      menu10on.src = "new_electronics_b.gif";
      menu10off = new Image(119, 17);
      menu10off.src = "new_electronics.gif";      

      menu11on = new Image(119, 17);
      menu11on.src = "new_employment_b.gif";
      menu11off = new Image(119, 17);
      menu11off.src = "new_employment.gif";      
      
      menu12on = new Image(119, 17);
      menu12on.src = "new_executives_b.gif";
      menu12off = new Image(119, 17);
      menu12off.src = "new_executives.gif";      

      menu13on = new Image(119, 17);
      menu13on.src = "new_eyecare_b.gif";
      menu13off = new Image(119, 17);
      menu13off.src = "title_web_search.gif";      
      
      menu14on = new Image(119, 17);
      menu14on.src = "new_financial_b.gif";
      menu14off = new Image(119, 17);
      menu14off.src = "new_financial.gif";      

      menu15on = new Image(119, 17);
      menu15on.src = "new_gaming_b.gif";
      menu15off = new Image(119, 17);
      menu15off.src = "new_gaming.gif";      
      
      menu16on = new Image(119, 17);
      menu16on.src = "new_government_b.gif";
      menu16off = new Image(119, 17);
      menu16off.src = "new_government.gif";      

      menu17on = new Image(119, 17);
      menu17on.src = "new_home_b.gif";
      menu17off = new Image(119, 17);
      menu17off.src = "new_home.gif";      
      
      menu18on = new Image(119, 17);
      menu18on.src = "new_imaging_b.gif";
      menu18off = new Image(119, 17);
      menu18off.src = "new_imaging.gif";      

      menu19on = new Image(119, 17);
      menu19on.src = "new_information_b.gif";
      menu19off = new Image(119, 17);
      menu19off.src = "new_information.gif";      
      
      menu20on = new Image(119, 17);
      menu20on.src = "new_international_b.gif";
      menu20off = new Image(119, 17);
      menu20off.src = "new_international.gif";      

      menu21on = new Image(119, 17);
      menu21on.src = "new_internet_b.gif";
      menu21off = new Image(119, 17);
      menu21off.src = "new_internet.gif";      
      
      menu22on = new Image(119, 17);
      menu22on.src = "new_legal_b.gif";
      menu22off = new Image(119, 17);
      menu22off.src = "new_legal.gif";      

      menu23on = new Image(119, 17);
      menu23on.src = "new_medicine_b.gif";
      menu23off = new Image(119, 17);
      menu23off.src = "new_medicine.gif";      

      menu24on = new Image(119, 17);
      menu24on.src = "new_musicians_b.gif";
      menu24off = new Image(119, 17);
      menu24off.src = "new_musicians.gif";      
      
      menu25on = new Image(119, 17);
      menu25on.src = "new_periodicals_b.gif";
      menu25off = new Image(119, 17);
      menu25off.src = "new_periodicals.gif";      

      menu26on = new Image(119, 17);
      menu26on.src = "new_philosphy_b.gif";
      menu26off = new Image(119, 17);
      menu26off.src = "new_philosphy.gif";      

      menu27on = new Image(119, 17);
      menu27on.src = "new_politics_b.gif";
      menu27off = new Image(119, 17);
      menu27off.src = "new_politics.gif";      
      
      menu28on = new Image(119, 17);
      menu28on.src = "new_realty_b.gif";
      menu28off = new Image(119, 17);
      menu28off.src = "new_realty.gif";      

      menu29on = new Image(119, 17);
      menu29on.src = "new_science_b.gif";
      menu29off = new Image(119, 17);
      menu29off.src = "new_science.gif";      

      menu30on = new Image(119, 17);
      menu30on.src = "new_search_b.gif";
      menu30off = new Image(119, 17);
      menu30off.src = "new_search.gif";      
      
      menu31on = new Image(119, 17);
      menu31on.src = "new_software_b.gif";
      menu31off = new Image(119, 17);
      menu31off.src = "new_software.gif";      

      menu32on = new Image(119, 17);
      menu32on.src = "new_sports_b.gif";
      menu32off = new Image(119, 17);
      menu32off.src = "new_sports.gif";      

      menu33on = new Image(119, 17);
      menu33on.src = "new_travel_b.gif";
      menu33off = new Image(119, 17);
      menu33off.src = "new_travel.gif";      
            
      }

</script>
</head>

<body>

<table border="4" cellpadding="0" width="133" bgcolor="#FFFF00" bordercolor="#FFFF00"
bordercolordark="#000000" bordercolorlight="#000000">
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_animals_and_pets.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_animals_and_pets.html" target="right" onmouseover="imgActive('menu1')"
    onmouseout="imgInactive('menu1')"><img src="new_animals.gif" NAME="menu1"
    alt="Animals and Pets" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_clothes_appeeral.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_clothes_appeeral.html" target="right" onmouseover="imgActive('menu2')"
    onmouseout="imgInactive('menu2')"><img src="new_appearal.gif" NAME="menu2"
    alt="Appearal and Clothes" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_art_collectables.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_art_collectables.html" target="right" onmouseover="imgActive('menu3')"
    onmouseout="imgInactive('menu3')"><img src="new_artistry.gif" NAME="menu3"
    alt="Art Collectables" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_auto_accessories.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_auto_accessories.html" target="right" onmouseover="imgActive('menu4')"
    onmouseout="imgInactive('menu4')"><img src="new_automobiles.gif" "NAME="menu4"
    alt="Auto Accessories" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_books_reading.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_books_reading.html" target="right" onmouseover="imgActive('menu5')"
    onmouseout="imgInactive('menu5')"><img src="new_books.gif" NAME="menu5"
    alt="Books and Reading" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_business.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_business.html" target="right" onmouseover="imgActive('menu6')"
    onmouseout="imgInactive('menu6')"><img src="new_business.gif" NAME="menu6"
    alt="Business and Finance" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_comm_freebies.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_comm_freebies.html" target="right" onmouseover="imgActive('menu7')"
    onmouseout="imgInactive('menu7')"><img src="new_community.gif" NAME="menu7"
    alt="Communitity Freebies" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_computer.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_computer.html" target="right" onmouseover="imgActive('menu8')"
    onmouseout="imgInactive('menu8')"><img src="new_computers.gif" NAME="menu8"
    alt="Computers and Systems" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_education.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_education.html" target="right" onmouseover="imgActive('menu9')"
    onmouseout="imgInactive('menu9')"><img src="new_education.gif" NAME="menu9"
    alt="Education" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_electronics.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_electronics.html" target="right" onmouseover="imgActive('menu10')"
    onmouseout="imgInactive('menu10')"><img src="new_electronics.gif" NAME="menu10
    alt="
    Electronics Systems" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_employment.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_employment.htm" onmouseover="imgActive('menu11')"
    onmouseout="imgInactive('menu11')"><img src="new_employment.gif" NAME="menu11"
    alt="Employment and Career Opportunities" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_executives.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_executives.html" target="right" onmouseover="imgActive('menu12')"
    onmouseout="imgInactive('menu12')"><img src="new_executives.gif" NAME="menu12"
    alt="Top Executives" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_eyecare.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_eyecare.html" target="right" onmouseover="imgActive('menu13')"
    onmouseout="imgInactive('menu13')"><img src="new_eyecare.gif" NAME="menu13"
    alt="Eyecare Professionals" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_financial.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_financial.html" target="right" onmouseover="imgActive('menu14')"
    onmouseout="imgInactive('menu14')"><img src="new_financial.gif" NAME="menu14"
    alt="Financial and Banks" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_games.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_games.html" target="right" onmouseover="imgActive('menu15')"
    onmouseout="imgInactive('menu15')"><img src="new_gaming.gif" NAME="menu15"
    alt="Games and Gaming" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_gov.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_gov.html" target="right" onmouseover="imgActive('menu16')"
    onmouseout="imgInactive('menu16')"><img src="new_government.gif" NAME="menu16"
    alt="Government" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_home.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_home.htm" target="right" onmouseover="imgActive('menu17')"
    onmouseout="imgInactive('menu17')"><img src="new_home.gif" NAME="menu17"
    alt="Home Improvement" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_imaging.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_imaging.html" target="right" onmouseover="imgActive('menu18')"
    onmouseout="imgInactive('menu18')"><img src="new_imaging.gif" NAME="menu18"
    alt="Imaging Photography" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_information.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_information.htm" target="right" onmouseover="imgActive('menu19')"
    onmouseout="imgInactive('menu19')"><img src="new_information.gif" NAME="menu19"
    alt="Information Science" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_intl.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_intl.html" target="right" onmouseover="imgActive('menu20')"
    onmouseout="imgInactive('menu20')"><img src="new_international.gif" NAME="menu20"
    alt="International Marketing" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_internet.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_internet.html" target="right" onmouseover="imgActive('menu21')"
    onmouseout="imgInactive('menu21')"><img src="new_internet.gif" NAME="menu21"
    alt="Internet Communications" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_law_acct.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_law_acct.htm" target="right" onmouseover="imgActive('menu22')"
    onmouseout="imgInactive('menu22')"><img src="new_legal.gif" NAME="menu22"
    alt="Legal and Accounting" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_science_med.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_science_med.html" target="right" onmouseover="imgActive('menu23')"
    onmouseout="imgInactive('menu23')"><img src="new_medicine.gif" NAME="menu23"
    alt="Science and Medicine" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_music.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_music.html" target="right" onmouseover="imgActive('menu24')"
    onmouseout="imgInactive('menu24')"><img src="new_musicians.gif" NAME="menu24"
    alt="Music and Musicians" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_period.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_period.htm" target="right" onmouseover="imgActive('menu25')"
    onmouseout="imgInactive('menu25')"><img src="new_periodicals.gif" NAME="menu25"
    alt="Periodicals" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_phil_rel.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_phil_rel.html" target="right" onmouseover="imgActive('menu26')"
    onmouseout="imgInactive('menu26')"><img src="new_philosphy.gif" NAME="menu26"
    alt="Philosphy and Religon" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_political.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_political.html" target="right" onmouseover="imgActive('menu27')"
    onmouseout="imgInactive('menu27')"><img src="new_politics.gif" NAME="menu27"
    alt="Politics" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_real_estate.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_real_estate.html" target="right" onmouseover="imgActive('menu28')"
    onmouseout="imgInactive('menu28')"><img src="new_realty.gif" NAME="menu28"
    alt="Real Estate" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_science.htm" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_science.htm" target="right" onmouseover="imgActive('menu29')"
    onmouseout="imgInactive('menu29')"><img src="new_science.gif" NAME="menu29" alt="Sciences"
    border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_search.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_search.html" target="right" onmouseover="imgActive('menu30')"
    onmouseout="imgInactive('menu30')"><img src="new_search.gif" NAME="menu30"
    alt="Search Tables" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_software.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_software.html" target="right" onmouseover="imgActive('menu31')"
    onmouseout="imgInactive('menu31')"><img src="new_software.gif" NAME="menu31"
    alt="Software and Computers" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_sports_hobbies.html" target="right_top_b"><img
    src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a
    href="n_sports_hobbies.html" target="right" onmouseover="imgActive('menu32')"
    onmouseout="imgInactive('menu32')"><img src="new_sports.gif" NAME="menu32"
    alt="Sports and Hobbies" border="0" width="119" height="17"></a></td>
  </tr>
  <tr>
    <td width="147" bgcolor="#FFFF00"><a href="n_travel_events_entertain_sweep.html"
    target="right_top_b"><img src="red_button.gif" width="10" height="17"
    alt="Press, See Menu" border="0" onmouseover="imgActive('menu33')"
    onmouseout="imgInactive('menu33')"></a><a href="n_travel_events_entertain_sweep.html"
    target="right"><img src="new_travel.gif" NAME="menu33"
    alt="Travel, Entertainment, and Sweepstakes" border="0" width="119" height="17"></a></td>
  </tr>
</table>
</body>
</html>
0
Comment
Question by:optical
  • 4
  • 3
  • 2
9 Comments
 
LVL 3

Expert Comment

by:bigelos
ID: 1856397
You are fighting syntax errors now.  For instance, you have
"NAME="menu4"
where it should be
NAME="menu4"

Also,
NAME="menu10
Where it should be
NAME="menu10"

Also, compare
<td width="147" bgcolor="#FFFF00"><a href="n_travel_events_entertain_sweep.html"
    target="right_top_b"><img src="red_button.gif" width="10" height="17"
    alt="Press, See Menu" border="0" onmouseover="imgActive('menu33')"
    onmouseout="imgInactive('menu33')"></a><a href="n_travel_events_entertain_sweep.html"
    target="right"><img src="new_travel.gif" NAME="menu33"
    alt="Travel, Entertainment, and Sweepstakes" border="0" width="119" height="17">

where it should be
<td width="147" bgcolor="#FFFF00"><a href="n_travel_events_entertain_sweep.html"
    target="right_top_b"><img src="red_button.gif" width="10" height="17"
    alt="Press, See Menu" border="0"></a><a href="n_travel_events_entertain_sweep.html"
    target="right"><img src="new_travel.gif" NAME="menu33"
    alt="Travel, Entertainment, and Sweepstakes" border="0" width="119" height="17" onmouseover="imgActive('menu33')"
    onmouseout="imgInactive('menu33')">
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1856398
One further error I found:
appearal

should be
apparel
0
 

Author Comment

by:optical
ID: 1856399
?
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 3

Expert Comment

by:bigelos
ID: 1856400
optical,

The errors I gave you were in the page that you referred to.  Syntax errors caused javascript errors on that page.  What didn't you like about my answer?

Search for the errors I found (using a text editor, of course) and change them and that should solve at least some of your problems.

0
 
LVL 6

Accepted Solution

by:
tecbuilder earned 50 total points
ID: 1856401
optical, I checked and double checked and then checked again to make sure that the below fixes would fix your problem and they do.

Replace your code with these code fragments and your code page will work.  bigelos was correct in finding the menu4 and menu10 missing and extra double quotes.  However the menu33 fix bigelos posted didn't place the onMouseover and onMouseout events within the anchor tag where they needed to be.  His posting would only work on MSIE 4.x.  Whereas when these events are placed within the anchor Netscape 3.x and 4.x can interpret them as well.  A line also needed to be commented at the very beginning of the script.


<script language="javascript1.1">
// Only those browsers that are capabable of doing what you want // will come inside this script.
ver = "n3"

<td width="147" bgcolor="#FFFF00"><a href="n_auto_accessories.html" target="right_top_b"><img src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a href="n_auto_accessories.html" target="right" onmouseover="imgActive('menu4')" onmouseout="imgInactive('menu4')"><img src="new_automobiles.gif" NAME="menu4" alt="Auto Accessories" border="0" width="119" height="17"></a></td>


<td width="147" bgcolor="#FFFF00"><a href="n_electronics.html" target="right_top_b"><img src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a href="n_electronics.html" target="right" onmouseover="imgActive('menu10')" onmouseout="imgInactive('menu10')"><img src="new_electronics.gif" NAME="menu10" alt="Electronics Systems" border="0" width="119" height="17"></a></td>


<td width="147" bgcolor="#FFFF00"><a href="n_travel_events_entertain_sweep.html" target="right_top_b"><img src="red_button.gif" width="10" height="17" alt="Press, See Menu" border="0"></a><a href="n_travel_events_entertain_sweep.html" target="right" onmouseover="imgActive('menu33')" onmouseout="imgInactive('menu33')"><img src="new_travel.gif" NAME="menu33" alt="Travel, Entertainment, and Sweepstakes" border="0" width="119" height="17"></a></td>
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1856402
tecbuilder,

Thanks for rephrasing my answer...
0
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1856403
I did not rephrase your answer.  Yes, I did agree with your fixes for menu4 and menu10.  I won't deny that.  However, you were in error for menu33.  You placed the onMouseover and onMouseout events within the img tag, which will only work in MSIE 4.x (dynamic html).  Netscape doesn't recognize these events within the img tag.  Also, a javascrpt error occurs because the word 'come' was not preceded by a comment designator.  In looking at my answer, I did notice that the comment should look like the one below.

<script language="javascript1.1">
// Only those browsers that are capabable of doing what you want
// will come inside this script.
ver = "n3"
0
 

Author Comment

by:optical
ID: 1856404
Thank you I really appreciate all your help, your organization deserives a link http: from my site to yours, everyone should know about your service.  Thank you again.

James Avakian, opticalcomm@productlist.com
Optical Automation, Inc.
0
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1856405
Just for clarification, as far as I know no one that answers questions here, works for Experts-Exchange.  At least I don't.  We are all volunteers.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link failure 16 67
How to remove a section of the main menu from Magento 1.9.3 3 30
compare date to getdate() 8 17
Secure log in 'box' 4 14
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

733 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