J
jnm
I have an old java script which places an arrow.gif in the lower right hand
corner of the screen at all times regardless of scrolling and / or resizing
the screen. The arrow is a hot spot, which scrolls to the top of the page.
It works fine, but won't validate because it is based on non-standard code.
It looks like this:
<!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=windows-1252" >
<meta http-equiv="Content-Language" content="en-us" >
<meta name="GENERATOR" content="Microsoft FrontPage 4.0" >
<meta name="ProgId" content="FrontPage.Editor.Document" >
<meta http-equiv="imagetoolbar" content="false" >
<title>Opening page</title>
<link href="body.css" rel="stylesheet" type="text/css" >
<script type="text/javascript">
function SetCorners() {
LR.style.left = document.body.scrollLeft + document.body.clientWidth -
LR.width;
LR.style.top = document.body.scrollTop + document.body.clientHeight -
LR.height;
}
</script>
</head>
<body onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
<a href="javascript:scroll(0,0)"><img id="LR"
src="images/system/Piloprod-tr.gif" border="0"
style="position: absolute; left.2; top:4" width="23" height="36" alt="To
top of page" /></a>
<h6>Business Processes</h6>
</body>
</html>
When I try to validate at http://validator.w3.org/check I get the following
2 errors
Error Line 21 column 37: there is no attribute "ONRESIZE".
<body onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
Error Line 21 column 61: there is no attribute "ONSCROLL".
.... onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
I believe this may be done in another way, but I can't find it.
Any help in this news group??
Regards
Jorgen
corner of the screen at all times regardless of scrolling and / or resizing
the screen. The arrow is a hot spot, which scrolls to the top of the page.
It works fine, but won't validate because it is based on non-standard code.
It looks like this:
<!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=windows-1252" >
<meta http-equiv="Content-Language" content="en-us" >
<meta name="GENERATOR" content="Microsoft FrontPage 4.0" >
<meta name="ProgId" content="FrontPage.Editor.Document" >
<meta http-equiv="imagetoolbar" content="false" >
<title>Opening page</title>
<link href="body.css" rel="stylesheet" type="text/css" >
<script type="text/javascript">
function SetCorners() {
LR.style.left = document.body.scrollLeft + document.body.clientWidth -
LR.width;
LR.style.top = document.body.scrollTop + document.body.clientHeight -
LR.height;
}
</script>
</head>
<body onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
<a href="javascript:scroll(0,0)"><img id="LR"
src="images/system/Piloprod-tr.gif" border="0"
style="position: absolute; left.2; top:4" width="23" height="36" alt="To
top of page" /></a>
<h6>Business Processes</h6>
</body>
</html>
When I try to validate at http://validator.w3.org/check I get the following
2 errors
Error Line 21 column 37: there is no attribute "ONRESIZE".
<body onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
Error Line 21 column 61: there is no attribute "ONSCROLL".
.... onLoad="SetCorners()" onResize="SetCorners()" onScroll="SetCorners()">
I believe this may be done in another way, but I can't find it.
Any help in this news group??
Regards
Jorgen