PDA

View Full Version : Code following the </html> tag.



effpeetee
Mar 21st, 2009, 05:35 PM
On a page a have been helping with on this Forum; there are a number of scripts after the </html> tag which my Validator does not like.

They work OK and seem to be part of a supplied template. I think they are Google inspired.

Is this normally allowed or what. I am puzzled.:confused:

Frank


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Naruto-Zone - Your Naruto fansite... </title>

<style type="text/css">
*{
padding:0;
margin:0;
border:0;
}
body {
background-color: Orange;
height:650px;
}
.style2 {
font-size: 24px;
color: #FF0000;
}
.style3 {font-size: 21px}
.style4 {font-size: 24px}
.style5 {color: #000000}

#banner{min-height:50px;
border: 3px solid #000;
background-color:#fff;
width:800px;
margin-right: auto;
margin-left: auto;
margin-bottom:10px;
margin-top:10px;
padding:2px;
font-size: 2em;
text-align:center;
}

#banner2{height:50px;
width:100%;
border-top: 2px solid black;
border-bottom:2px solid black;
padding-top:11px;
font-size: 2em;
text-align:center;
}

#rightbox{
float:right;
z-index:0;
margin-top:0.015%;
margin-right: 1%;
margin-bottom: 0;
width:38%;
height:190px;
border-left:2px solid black;
border-bottom:2px solid black;
}

#footer{
float:left;
width:100%;
margin-bottom: 1%;
margin-top: -2px;
padding:6px;
text-align:center;
border-top:2px solid #000;
border-bottom:2px solid #000;
}
</style>
<script type="text/JavaScript">
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[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

</script>
<script charset="utf-8" id="injection_graph_func" src="zxzx_files/injection_graph_func.js"></script>

</head>
<body>
<div id="banner"><p ><img src="bannerlogo.jpg" ></p>
</div>
<div class="style5" id="banner2">
<a href="http://exitfegs.co.uk/Media.html">Media</a>
<a href="http://exitfegs.co.uk/Info.html">Info</a>
<a href="http://s8.invisionfree.com/narutozone/index.php">Forums</a>
<a href="http://exitfegs.co.uk/Contactus.html">Contact Us</a>
</div>
<div id="rightbox">
<p align="center"><span class="style4">Log In </span></p>
<table width="230" height="58" border="2" align="center" bgcolor="#666666">
<tr>
<td width="68" align="left" valign="top">Username</td>
<td width="144"><form name="form1" method="post" action="">
<label>
<input name="textfield" type="text" maxlength="8">
</label>
</form></td>
</tr>
<tr>
<td height="27">Password</td>
<td><form name="form2" method="post" action="">
<label>
<input name="textfield2" type="password" value="" maxlength="12">
</label>
</form></td>
</tr>
</table>
<p align="center"><strong> Need an account? Register here.</strong></p>
<p align="center"><strong>Lost your password? Click here to retrieve it. </strong></p>
<p align="center"><strong>There is 1 user online. </strong></p>
<p align="center">&nbsp;</p>
</div>

</div>
<div id="footer">
<p class="style4">2009-03&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
This site is aimed to gather naruto fans into one community. </p>
</div>
</body>
</html>
<p align="center">
<script type="text/javascript">
google_ad_client = "pub-4820636587049265";
/* userpages */
google_ad_slot = "2785684599";
google_ad_width = 728;
google_ad_height = 90;

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=3887260;
var sc_invisible=1;
var sc_partition=31;
var sc_click_stat=1;
var sc_security="452ad06b";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="site stats" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/3887260/0/452ad06b/1/" alt="site stats" ></a></div></noscript>
<!-- End of StatCounter Code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-835715-4");
pageTracker._trackPageview();
} catch(err) {}</script>

abduraooft
Mar 21st, 2009, 05:48 PM
They should be before

</body>
</html>

effpeetee
Mar 21st, 2009, 06:07 PM
Thanks abduraooft. I have put them there. I had tried them before in that position and they worked OK. but I wondered if I was missing something.

Frank

It's here. (http://exitfegs.co.uk/nztestb.html)