Copy link to clipboard
Copied
Can any tell why I get an error that says (There is an error at line 123, column 284 (absolute position 5925) of "untitled document": Nested editable regions) when I try and save this document?
Thank you
<body onLoad="MM_preloadImages('../images/b01home2.png','../images/b12contact2.png','../images/b02events2.png','../images/b07programs2.png','../images/b13museum2.png','../images/b14press2.png','../images/b04members2.png','../images/b11resources2.png','../images/b05auxiliary2.png')">
Copy link to clipboard
Copied
Without seeing the rest of the code, it's impossible to say. There's nothing wrong with that line of code; but something else is causing the problem, resulting it being in the wrong place.
Copy link to clipboard
Copied
Any help would be greatly appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>VFW Post 10049</title>
<meta name="Description" content="No one does more for Veterans." />
<meta name="keywords" content="VFW, Veterans of Foreign Wars, Veterans, Vet, War Vet, Combat, Iraq, Afghanistan, Vietnam, Korea, War on Terror, War on Terrorism, World War II, WWII, Kuwait, Qatar, Bosnia, Military, Army, Navy, Air Force, Marines, Simi Valley, California, District 7, Honor Guard, Color Guard, Post 10049, Scholarship" />
<link rel="icon"
type="image/png"
href="http://www.vfwpost10049.org/image/vfw_favicon.png">
<style type="text/css">
body
{
background-image: url(images/bg_oldpapertile.jpg);
background-repeat: repeat-y;
margin-left: 0px;
margin-top: 0px;
}
.footer {
color: #FFF;
font-family: Verdana, Geneva, sans-serif;
font-size: small;
}
a:link {
color: #006;
}
a:visited {
color: #333;
}
a:hover {
color: #00F;
}
a:active {
color: #FFF;
text-align: center;
}
.pagetitle {
font-weight: bold;
font-size: x-large;
font-family: Georgia, "Times New Roman", Times, serif;
}
.pagebody {
font-family: Verdana, Geneva, sans-serif;
}
</style>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('images/b01home1.png','images/b02events2.png','images/b07programs2.png','images/b11resources2.png','images/b04members2.png','images/b01home2.png','images/b12contact2.png','images/b13museum2.png','images/b14press2.png','images/b15officers2.png','images/b16newsletter2.png','images/b17donate2.png','images/b18supporters2.png','images/b05auxiliary2.png')"><!-- #BeginLibraryItem "/Library/header.lbi" --><table width="1280" height="197" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="241" height="195" align="center"><a href="index.html"><img src="images/vfw_emblem.png" alt="vfw_emblem" name="emblem" width="200" height="200" border="0" id="emblem" /></a></td>
<td width="465" align="center"><a href="index.html"><img src="images/vfwpost10049tag.png" alt="VFW Post 10049" name="tag" width="420" height="200" border="0" id="tag" /></a></td>
<td width="316" align="center"><p><font face="verdana"><strong><a href="http://goo.gl/maps/tVvlZ" target="_blank">The POST</a></strong><br />
4242 E Los Angeles Ave.<br />
Simi Valley, CA 93063<br />
(805) 583-9722</font></p>
<p><font face="verdana"><strong><a href="http://goo.gl/maps/UxI21" target="_blank">The MUSEUM</a><br />
</strong><strong>of Military History</strong><br />
1555 Simi Town Center Wy. #220<br />
Simi Valley, CA 93065<br>
(805) 578-1539
<br /></font></p></td>
<td width="253" align="center" valign="middle"><p><font face="verdana"><br />
<strong>Post Hours</strong><br>
Tuesday thru Saturday
<br />
1:00 pm to 9:00 pm</font></p>
<p><font face="verdana"><strong>Museum Hours</strong><br>
Wednesdays<br />
12:00 pm to 3:00 pm<br>
Weekends<br>
11:00 am to 4:00 pm <br />
or by appointment</font></p>
<p><a href="honor_guard.html"><br />
</a></p></td>
</tr>
</table>
<!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/navigation.lbi" -->
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<body onLoad="MM_preloadImages('../images/b01home2.png','../images/b12contact2.png','../images/b02events2.png','../images/b07programs2.png','../images/b13museum2.png','../images/b14press2.png','../images/b04members2.png','../images/b11resources2.png','../images/b05auxiliary2.png')">
<table width="1280" height="47" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="292" height="45" align="center" background="images/b00blank.png"> </td>
<td width="96"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b01home','','images/b01home2.png',1)"><img src="images/b01home1.png" name="b01home" width="96" height="45" border="0" id="b01home" /></a></td>
<td width="96"><a href="officers.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b15officers','','images/b15officers2.png',1)"><img src="images/b15officers1.png" name="b15officers" width="96" height="45" border="0" id="b12contact" /></a></td>
<td width="96"><a href="auxiliary.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b05auxiliary','','images/b05auxiliary2.png',1)"><img src="images/b05auxiliary1.png" alt="auxiliary" name="b05auxiliary" width="96" height="45" border="0" id="b05auxiliary" /></a></td>
<td width="96"><a href="events.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b02events','','images/b02events2.png',1)"><img src="images/b02events1.png" name="b02events" width="96" height="45" border="0" id="b02events" /></a></td>
<td width="96"><a href="programs8.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b07programs','','images/b07programs2.png',1)"><img src="images/b07programs1.png" name="b07programs" width="96" height="45" border="0" id="b07programs" /></a></td>
<td width="96"><a href="museum.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b13museum','','images/b13museum2.png',1)"><img src="images/b13museum1.png" alt="museum" name="b13museum" width="96" height="45" border="0" id="b13museum" /></a></td>
<td width="96"><a href="donate.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b17donate','','images/b17donate2.png',1)"><img src="images/b17donate1.png" name="b17donate" width="96" height="45" border="0" id="b17donate" /></a></td>
<td width="306" background="images/b00blank.png"><a href="supporters.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('b18supporters','','images/b18supporters2.png',1)"><img src="images/b18supporters1.png" name="b18supporters" width="96" height="45" border="0" id="b18supporters" /></a></td>
</tr>
</table>
<!-- #EndLibraryItem --><table width="1280" height="599" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="248" align="center" valign="top"><!-- #BeginLibraryItem "/Library/side.lbi" -->
<p><br />
<a href="join.html"><img src="images/join.jpg" alt="join" name="join" width="196" height="127" border="0" id="join" /></a></p>
<p><a href="honor_guard.html"><font face="verdana"><strong>Request Colors</strong></font></a></p>
<p><a href="honor_guard.html"><img src="images/vfwpost10049hgcg.png" alt="honorguard" name="vfw10049hgcg" width="193" height="227" border="0" id="vfw10049hgcg"/></a></p>
<p><a href="veterans_in_crisis.html"><font face="verdana"><strong>Veterans in Crisis</strong></font></a></p>
<!-- #EndLibraryItem --></td>
<td width="924" align="left" valign="top"><p class="pagetitle">Main Title</p>
<p class="pagebody"><strong>Subtitle</strong><br />
<br />
Content content content. </p>
<p class="pagebody">Content content content.</p>
<p> </p></td>
</tr>
</table>
<table width="1280" height="53" border="0" cellpadding="0" cellspacing="1">
<tr>
<td height="51" align="center" bgcolor="#952030"><!-- #BeginLibraryItem "/Library/footer.lbi" --><font color="#FFFFFF" face="verdana" size="2">
<p>Please also visit: <a href="http://www.vfw.org/" target="_blank"><font color="#FFFFFF">VFW National</font></a> | <a href="http://www.vfwca.org/" target="_blank"><font color="#FFFFFF">VFW Dept of CA</font></a> | <a href="http://www.vfwcadistrict7.org/" target="_blank"><font color="#FFFFFF">VFW District 7</font> </a>| <a href="https://vfwauxiliary.org/" target="_blank"><font color="#FFFFFF">Aux National</font></a> | <a href="http://www.lavfwca.org/welcometovfwauxiliary.html" target="_blank"><font color="#FFFFFF">Aux Dept of CA</font></a> | <a href="http://www.vfwstore.org/" target="_blank"><font color="#FFFFFF">VFW Store</font></a></p>
<p>© 2014-<script>document.write(new Date().getFullYear());</script> VFW Post 10049. All Rights Reserved. <a href="vfw_privacy_policy.html"><font color="#FFFFFF">Privacy Policy</font></a></p></font><!-- #EndLibraryItem --></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
Copy link to clipboard
Copied
I don't know if any of this is affecting the error, but I did notice two things.
1. You are loading the Javascript image-swap functions twice.
2. The following should not be used:
© 2014-<script>document.write(new Date().getFullYear());</script> VFW Post 10049. All Rights Reserved.
You are using document.write() after a page has started loading. Best practice is to create a span, give it an id, and use script tags before the closing /body tag to get the full year and set the span innerHTML to that year.
HTH,
^ _ ^