P
(Pete Cresswell)
I've got a script (slavishly copied from someone kind enough to give it to me)
that works a-ok on the page, but fails W3's validation. Not only that, but it
sets up some kind of open/close problem that makes all the rest of the HTML
fail. Rem out the script, no problems.
Also, I tried pasting the script into a separate, standalone HTML file and
validating it. W3 thought it was and 'application/octet-stream', which W3 does
not support.
The script (in context of the web page):
---------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base target="45thPix_PicArea"/>
<title> Click on a small picture...</title>
<link rel="stylesheet" type="text/css" href="Master.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<script type="text/javascript">
document.write("<p id='ThumbNavListloading'>Loading thumbnails, please
wait...</p>");
function hideloading ()
{
var loading = document.getElementById('ThumbNavListloading');
ThumbNavListloading.style.display = 'none';
}
window.onload = hideloading;
</script>
<div class="ThumbNavListHeader">
<p>To open picture in separate window, hold down Shift key while clicking.</p>
</div>
<div class="ThumbNavlist">
<p><a class="ThumbNavList" href="Pix\45th\100_0102.jpg"><img
src="Pix\45th\ThumbNails\100_0102.jpg" width="120" alt=""/><br/>Al & Pam Miller,
Bill & Susan Donoghue, Hop Evans<br/>(100_0102.jpg)</a></p>
<p><a class="ThumbNavList" href="Pix\45th\100_0103.jpg"><img
src="Pix\45th\ThumbNails\100_0103.jpg" width="120" alt=""/><br/>Hop Evans, Dave
Anderson, Al Miller<br/>(100_0103.jpg)</a></p>
<p><a class="ThumbNavList" href="Pix\45th\100_0104.jpg"><img
src="Pix\45th\ThumbNails\100_0104.jpg" width="120" alt=""/><br/>Al Miller, Pete
Cresswell, Jerry Olin<br/>(100_0104.jpg)</a></p>
<!-- and so-on and so-forth -->
</div>
</body>
</html>
that works a-ok on the page, but fails W3's validation. Not only that, but it
sets up some kind of open/close problem that makes all the rest of the HTML
fail. Rem out the script, no problems.
Also, I tried pasting the script into a separate, standalone HTML file and
validating it. W3 thought it was and 'application/octet-stream', which W3 does
not support.
The script (in context of the web page):
---------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base target="45thPix_PicArea"/>
<title> Click on a small picture...</title>
<link rel="stylesheet" type="text/css" href="Master.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<script type="text/javascript">
document.write("<p id='ThumbNavListloading'>Loading thumbnails, please
wait...</p>");
function hideloading ()
{
var loading = document.getElementById('ThumbNavListloading');
ThumbNavListloading.style.display = 'none';
}
window.onload = hideloading;
</script>
<div class="ThumbNavListHeader">
<p>To open picture in separate window, hold down Shift key while clicking.</p>
</div>
<div class="ThumbNavlist">
<p><a class="ThumbNavList" href="Pix\45th\100_0102.jpg"><img
src="Pix\45th\ThumbNails\100_0102.jpg" width="120" alt=""/><br/>Al & Pam Miller,
Bill & Susan Donoghue, Hop Evans<br/>(100_0102.jpg)</a></p>
<p><a class="ThumbNavList" href="Pix\45th\100_0103.jpg"><img
src="Pix\45th\ThumbNails\100_0103.jpg" width="120" alt=""/><br/>Hop Evans, Dave
Anderson, Al Miller<br/>(100_0103.jpg)</a></p>
<p><a class="ThumbNavList" href="Pix\45th\100_0104.jpg"><img
src="Pix\45th\ThumbNails\100_0104.jpg" width="120" alt=""/><br/>Al Miller, Pete
Cresswell, Jerry Olin<br/>(100_0104.jpg)</a></p>
<!-- and so-on and so-forth -->
</div>
</body>
</html>