web site code help

T

tcvalpak

getting error on alot of my pages not sure why. can anyone help. i started
the code at line 42.

line: 42
char: 2
error: object expected
code: 0

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="
MM_preloadImage('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="61" background="images/topbg.gif" colspan="3">
 
R

Ronx

Is the function MM_preloadimage() in the <head> section of the page, or in
a referenced external JavaScript file?
 
T

tcvalpak

no idea. here is the whole code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Valpak Contact Us</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Keywords here">
<meta name="description" content="About Valpak">
<meta name="Author" content="Valpak">
<META NAME="robots" CONTENT="index, follow">
<!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) -->
<META NAME="revisit-after" CONTENT="30 days">
<META NAME="distribution" CONTENT="global">
<META NAME="rating" CONTENT="general">
<META NAME="Content-Language" CONTENT="english">

<style type="text/css">
<!--
-->
</style>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
el; } }
return null;
}
// -->
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="
MM_preloadImages('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="61" background="images/topbg.gif" colspan="3">
<div style="position: absolute; width: 326px; height: 80px; z-index: 1;
left: 677px; top: 3px" id="layer1">
<img border="0" src="images/valpaklogowhite.jpg" width="291"
height="89"></div>
<img border="0" src="images/Wave.jpg" width="1005" height="108"></td>
</tr>
<tr>
<td width="20%" valign="top" bgcolor="#3B414F"> <table width="201"
border="0" cellpadding="0" cellspacing="0" height="195">
<tr>
<td height="32">
<a href="current.html"><img border="0" id="img9" src="tv/button22.jpg"
height="26" width="130" alt="Current Promotions"
onmouseover="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button23.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button22.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button24.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button23.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="Current Promotions"></a><br>
<img src="images/pixi_clear.gif" width="1" height="3"></td>
</tr>
<tr>
<td height="32">
<a href="products.html"><img border="0" id="img4" src="tv/button8.jpg"
height="26" width="130" alt="Products & Samples" fp-style="fp-btn: Embossed
Rectangle 1; fp-justify-horiz: 0; fp-preload: 0" fp-title="Products &
Samples" onmouseover="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button4.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button8.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button5.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button4.jpg')"></a><br>
<img src="images/pixi_clear.gif" width="1" height="3"></td>
</tr>
<tr>
<td height="32">
<a target="_blank" href="http://www.valpak.com"><img border="0"
id="img5" src="tv/button9.jpg" height="26" width="130" alt="Coupons"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="Coupons"
onmouseover="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button6.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button9.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button7.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button6.jpg')"></a></td>
</tr>
<tr>
<td height="33">
<a href="about.html"><img border="0" id="img6" src="tv/buttonE1.jpg"
height="26" width="130" alt="About Valpak"
onmouseover="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonF1.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonE1.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/button10.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonF1.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="About Valpak"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="index2.html"><img border="0" id="img13" src="tv/button57.jpg"
height="26" width="130" alt="Home Page"
onmouseover="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button53.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button57.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button54.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button53.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="Home Page"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="tv.html"><img border="0" id="img14" src="tv/button58.jpg"
height="26" width="130" alt="TV & Media Ads"
onmouseover="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button55.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button58.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button56.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button55.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="TV & Media Ads"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="faq.html"><img border="0" id="img12" src="tv/button43.jpg"
height="26" width="130" alt="FAQ"
onmouseover="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button41.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button43.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button42.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button41.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload: 0"
fp-title="FAQ"></a></td>
</tr>
</table> <br> <br>
<p>
<br> </td>
<td valign="top" background="images/bg3.gif" width="41%">
<img border="0" src="images/contactus.jpg" width="386" height="398"></td>
<td valign="top" background="images/bg3.gif" width="39%">
<b><font color="#FFFFFF">Valpak Of The Treasure Coast<br>
1001 37th Avenue<br>
Vero Beach, Florida 32960</font></b><p><b><font color="#FFFFFF">Tel:
772-562-0140<br>
Fax: 772-978-1994</font></b></p>
<p><b><font color="#FFFFFF">Email: (e-mail address removed)</font></b></p>
<p> </td>
</tr>
<tr valign="middle">
<td height="36" colspan="3" background="images/basebg.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font size="1"> © Copyright
2006. tcvalpak.com</font></td>
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
 
R

Ronx

The function is not defined anywhere in the page, which is why you get the
error.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

tcvalpak said:
no idea. here is the whole code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Valpak Contact Us</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="Keywords here">
<meta name="description" content="About Valpak">
<meta name="Author" content="Valpak">
<META NAME="robots" CONTENT="index, follow">
<!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) -->
<META NAME="revisit-after" CONTENT="30 days">
<META NAME="distribution" CONTENT="global">
<META NAME="rating" CONTENT="general">
<META NAME="Content-Language" CONTENT="english">

<style type="text/css">
<!--
-->
</style>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array();
for(n=2;
n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return
el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes;
if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return
el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el)
return
el; } }
return null;
}
// -->
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad="
MM_preloadImages('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')">
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td height="61" background="images/topbg.gif" colspan="3">
<div style="position: absolute; width: 326px; height: 80px; z-index: 1;
left: 677px; top: 3px" id="layer1">
<img border="0" src="images/valpaklogowhite.jpg" width="291"
height="89"></div>
<img border="0" src="images/Wave.jpg" width="1005" height="108"></td>
</tr>
<tr>
<td width="20%" valign="top" bgcolor="#3B414F"> <table width="201"
border="0" cellpadding="0" cellspacing="0" height="195">
<tr>
<td height="32">
<a href="current.html"><img border="0" id="img9" src="tv/button22.jpg"
height="26" width="130" alt="Current Promotions"
onmouseover="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button23.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button22.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button24.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img9',/*url*/'tv/button23.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="Current Promotions"></a><br>
<img src="images/pixi_clear.gif" width="1" height="3"></td>
</tr>
<tr>
<td height="32">
<a href="products.html"><img border="0" id="img4" src="tv/button8.jpg"
height="26" width="130" alt="Products & Samples" fp-style="fp-btn:
Embossed
Rectangle 1; fp-justify-horiz: 0; fp-preload: 0" fp-title="Products &
Samples"
onmouseover="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button4.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button8.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button5.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'tv/button4.jpg')"></a><br>
<img src="images/pixi_clear.gif" width="1" height="3"></td>
</tr>
<tr>
<td height="32">
<a target="_blank" href="http://www.valpak.com"><img border="0"
id="img5" src="tv/button9.jpg" height="26" width="130" alt="Coupons"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="Coupons"
onmouseover="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button6.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button9.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button7.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'tv/button6.jpg')"></a></td>
</tr>
<tr>
<td height="33">
<a href="about.html"><img border="0" id="img6" src="tv/buttonE1.jpg"
height="26" width="130" alt="About Valpak"
onmouseover="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonF1.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonE1.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/button10.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'tv/buttonF1.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="About Valpak"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="index2.html"><img border="0" id="img13" src="tv/button57.jpg"
height="26" width="130" alt="Home Page"
onmouseover="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button53.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button57.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button54.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img13',/*url*/'tv/button53.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="Home Page"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="tv.html"><img border="0" id="img14" src="tv/button58.jpg"
height="26" width="130" alt="TV & Media Ads"
onmouseover="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button55.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button58.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button56.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'tv/button55.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="TV & Media Ads"></a></td>
</tr>
<tr>
<td height="33" width="201">
<a href="faq.html"><img border="0" id="img12" src="tv/button43.jpg"
height="26" width="130" alt="FAQ"
onmouseover="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button41.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button43.jpg')"
onmousedown="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button42.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img12',/*url*/'tv/button41.jpg')"
fp-style="fp-btn: Embossed Rectangle 1; fp-justify-horiz: 0; fp-preload:
0"
fp-title="FAQ"></a></td>
</tr>
</table> <br> <br>
<p>
<br> </td>
<td valign="top" background="images/bg3.gif" width="41%">
<img border="0" src="images/contactus.jpg" width="386" height="398"></td>
<td valign="top" background="images/bg3.gif" width="39%">
<b><font color="#FFFFFF">Valpak Of The Treasure Coast<br>
1001 37th Avenue<br>
Vero Beach, Florida 32960</font></b><p><b><font color="#FFFFFF">Tel:
772-562-0140<br>
Fax: 772-978-1994</font></b></p>
<p><b><font color="#FFFFFF">Email:
(e-mail address removed)</font></b></p>
<p> </td>
</tr>
<tr valign="middle">
<td height="36" colspan="3" background="images/basebg.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><font size="1"> © Copyright
2006. tcvalpak.com</font></td>
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>


Ronx said:
Is the function MM_preloadimage() in the <head> section of the page, or
in
a referenced external JavaScript file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top