Doc Steve
Web Coding Service

Fully Accessible Web Code, Custom Written by Hand
Specializing in html, xml, css, and U.S.§508

Web Programming Samples and References

[ Back to Examples for Borders ] [ Sample Pages Home ]

JavaScript Sample Pages

Code for JS_Test_2B.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US">
<head>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Style-Content-type" content="text/css">
<meta http-equiv="content-language" content="en">
<title>JavaScript Test: Degrade gracefully when using JS to set width</title>
<style type="text/css">
  body {
    background-color: #ffffcc }
  .text {
    color: blue ;
    background-color: #ffffff }</style>
<script language="javascript" type="text/javascript" src="inserts.js"></script>
<script language="javascript" type="text/javascript">
  var column = new Object() ;
  column.text=100*(600/screen.width);
  if (column.text > 98.0) {column.text = 98.0}
  column.pad=(100-column.text)/2 ; </script>
</head>
<body>
<table width="100%" border="0">
  <tr>
    <td width="20%" bgcolor="#ffffcc"></td><td bgcolor="#ffffff">
<script language="javascript" type="text/javascript">
  document.writeln(table_step_one() + table_step_two() + column.pad + table_step_three() + column.text + table_step_four()); </script>
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah blah blah blah blah blah blah blah blah 
blah blah blah blah blah blah <br />
<br />[ <a href="http://validator.w3.org/check/referer">validate html</a> ]<br />
<br /><script language="javascript" type="text/javascript">
  document.write(table_step_five() + column.pad + table_step_six());</script></td><td width="20%">
    </td><td width="20%" bgcolor="#ffffcc"></td>
  </tr>
</table>
</body></html>

Document: http://
Revised:
TOP ]
HOME ]

Valid XHTML 1.0!

Copyright © 2002 - 2004

Steve Sconfienza, Ph.D.

All Rights Reserved