got a clock and a date script which works perfect when on a page by its self, but when on my acual website it dont work! can someone see if there is a problem here:
the clock is located next to the links in the main navagation bar.
all graphics are missing as the page is under construction.
Charles
05-17-2003, 06:57 PM
For some reason the 'onload' handler is not being called. Perhaps your page is so large a full of errors it never fully loads. But the following seems to work. Rid yourself of your existing time script and put the following in the body and after the form named 'clock'.
You might, however, want to use the native Date.toDateString() and Date.toTimeString() functions.
khalidali63
05-17-2003, 07:20 PM
Well ..here you go.
I'd seriously recommend that you validate your code at w3c.org
http://68.145.35.86/temp/OMG.html
Try the link above,adnsee if the clock appear.
stormrevolution
05-17-2003, 07:27 PM
cheers for all your help, the clock seems to be working great!
Thanks again.
Stephen Locksley
Charles
05-17-2003, 07:30 PM
Oh, I see it now. There was, and there remains, multiple BODY elements. Good catch Khalid. But I still can't stand that horrible date and time script. Date.getYear() was depricated back in the last century.
khalidali63
05-17-2003, 07:41 PM
LOL...charles...I could not agree more,however,given the time and experience he will come around and fix all that..I bet..
:D
stormrevolution
05-17-2003, 07:42 PM
hmmm i went to w3c.org and done the validate, and all this come up, what do i do???
<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com
^
Line 2, column 54: there is no attribute "XMLNS
...n:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office
^
Line 2, column 102: there is no attribute "XMLNS" (explain...).
...s-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
^
Line 75, column 7: required attribute "TYPE" not specified (explain...).
<SCRIPT>
^
Line 85, column 38: required attribute "TYPE" not specified (explain...).
</SCRIPT><SCRIPT language="JavaScript">
^
Line 726, column 38: required attribute "TYPE" not specified (explain...).
</SCRIPT><SCRIPT language="JavaScript">
^
Line 791, column 38: required attribute "TYPE" not specified (explain...).
</SCRIPT><SCRIPT language="JavaScript">
^
Line 806, column 68: required attribute "ALT" not specified (explain...).
...src="image.jpg" border="0" width="70" height="65"></DIV>
^
Line 818, column 68: required attribute "ALT" not specified (explain...).
... src="Dido.gif" width="70" height="65" border="0"></DIV>
^
Line 825, column 78: required attribute "ALT" not specified (explain...).
....gif" width="70" height="65" border="0"></DIV>
^
Line 832, column 69: required attribute "ALT" not specified (explain...).
...rc="Nelly.gif" width="70" height="65" border="0"></DIV>
^
Line 839, column 81: required attribute "ALT" not specified (explain...).
...if" width="70" height="65" border="0"></DIV>
^
Line 846, column 75: required attribute "ALT" not specified (explain...).
...eys.gif" width="70" height="65" border="0"></DIV>
^
Line 1037, column 72: required attribute "ALT" not specified (explain...).
...age19.gif" border="0" width="789" height="27"></DIV>
^
Line 1041, column 72: required attribute "ALT" not specified (explain...).
...age25.gif" border="0" width="780" height="27"></DIV>
^
Line 1059, column 46: required attribute "ACTION" not specified (explain...).
z-index : 97" id="Layer86"><form name="Tick">
^
Line 1063, column 7: required attribute "TYPE" not specified (explain...).
<script>
^
Line 1168, column 70: required attribute "ALT" not specified (explain...).
..."image1.jpg" border="0" width="154" height="82"></DIV>
^
Line 1172, column 70: required attribute "ALT" not specified (explain...).
..."image2.jpg" border="0" width="431" height="82"></DIV>
^
Line 1196, column 73: required attribute "ALT" not specified (explain...).
...e31.gif" border="0" width="140" height="164"></DIV>
^
Line 1204, column 73: required attribute "ALT" not specified (explain...).
...e32.gif" border="0" width="140" height="402"></DIV>
^
Line 1286, column 87: "NORESIZE" is not a member of a group specified for any attribute (explain...).
...msz=468x60/area=cc.g4.ban1" noresize scrolling="no" hspace="0" vspace="0" fra
^
Line 1286, column 109: there is no attribute "HSPACE" (explain...).
...ban1" noresize scrolling="no" hspace="0" vspace="0" frameborder="0" marginhei
^
Line 1286, column 120: there is no attribute "VSPACE" (explain...).
...ize scrolling="no" hspace="0" vspace="0" frameborder="0" marginheight="0" mar
^
Line 1289, column 76: required attribute "ALT" not specified (explain...).
...net/nserver/aamsz=468x60/area=cc.g4.ban1"></a>
^
Line 1330, column 71: required attribute "ALT" not specified (explain...).
...image8.jpg" border="0" width="140" height="67"></DIV>
^
Line 1337, column 20: ID "LAYER86" already defined (explain...).
z-index : 97" id="Layer86"><FONT size="-2" face="Tahoma">Page Design By:
^
Line 1059, column 20: ID "LAYER86" first defined here (explain...).
z-index : 97" id="Layer86"><form name="Tick">
^
Line 1350, column 12: there is no attribute "COLOR" (explain...).
<hr color="#FFCC00">
^
Line 1351, column 165: there is no attribute "BORDERCOLOR" (explain...).
...er: 2px solid #0080C0; " bordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1355, column 80: required attribute "ALT" not specified (explain...).
...rah_Jones.gif" width="70" height="65"></td>
^
Line 1368, column 74: required attribute "ALT" not specified (explain...).
...0Pictures/sting.gif" width="70" height="65"></td>
^
Line 1372, column 191: ID "AUTONUMBER1" already defined (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1351, column 191: ID "AUTONUMBER1" first defined here (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1377, column 59: required attribute "ALT" not specified (explain...).
<img border="0" src="eye.jpg" width="137" height="73"></a></td>
^
Line 1390, column 191: ID "AUTONUMBER1" already defined (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1351, column 191: ID "AUTONUMBER1" first defined here (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1395, column 59: required attribute "ALT" not specified (explain...).
<img border="0" src="eye.jpg" width="137" height="73"></a></td>
^
Line 1408, column 191: ID "AUTONUMBER1" already defined (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1351, column 191: ID "AUTONUMBER1" first defined here (explain...).
...ordercolor="#111111" width="471" id="AutoNumber1">
^
Line 1413, column 59: required attribute "ALT" not specified (explain...).
<img border="0" src="eye.jpg" width="137" height="73"></a></td>
^
Line 1435, column 124: required attribute "ALT" not specified (explain...).
...f" width="130" height="50" border="0"></A></DIV>
^
Line 1439, column 102: required attribute "ALT" not specified (explain...).
...f" width="130" height="50" border="0"></A></DIV>
^
Line 1479, column 5: document type does not allow element "BODY" here (explain...).
<body></font>
^
Line 1480, column 66: end tag for "FORM" omitted, but its declaration does not permit this (explain...).
...oma" size="1">Please Select A Station:</font></body><script>
^
Line 1473, column 0: start tag was here (explain...).
<form action="http://pub11.bravenet.com/announce/send.php" method="post">
^
Line 1480, column 66: end tag for "DIV" omitted, but its declaration does not permit this (explain...).
...oma" size="1">Please Select A Station:</font></body><script>
^
Line 1472, column 0: start tag was here (explain...).
<div align="center">
^
Line 1480, column 66: end tag for "DIV" omitted, but its declaration does not permit this (explain...).
...oma" size="1">Please Select A Station:</font></body><script>
^
Line 1465, column 0: start tag was here (explain...).
<DIV style="top : 154;left : 640;
^
Line 1480, column 74: required attribute "TYPE" not specified (explain...).
...ease Select A Station:</font></body><script>
^
Line 1480, column 74: document type does not allow element "SCRIPT" here (explain...).
...ease Select A Station:</font></body><script>
^
stormrevolution
05-17-2003, 07:43 PM
part 2...
Line 1482, column 51: document type does not allow element "P" here (explain...).
</script><p style="margin-top: 0; margin-bottom: 0">
^
Line 1491, column 55: document type does not allow element "P" here (explain...).
<p style="margin-top: 0; margin-bottom: 0" align="left">
^
Line 1493, column 42: document type does not allow element "P" here (explain...).
<p style="margin-top: 0; margin-bottom: 0"><body>
^
Line 1493, column 48: document type does not allow element "BODY" here (explain...).
<p style="margin-top: 0; margin-bottom: 0"><body>
^
Line 1497, column 42: document type does not allow element "P" here (explain...).
<p style="margin-top: 0; margin-bottom: 0"><body>
^
Line 1497, column 48: document type does not allow element "BODY" here (explain...).
<p style="margin-top: 0; margin-bottom: 0"><body>
^
Line 1500, column 101: end tag for element "DIV" which is not open (explain...).
...C00; background-color: #0080C0"></div>
^
Line 1501, column 5: end tag for element "DIV" which is not open (explain...).
</DIV>
^
Line 1506, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer113"><IMG src="image93.gif" border="0" width="142" height="18"></DIV>
^
Line 1506, column 73: required attribute "ALT" not specified (explain...).
...ge93.gif" border="0" width="142" height="18"></DIV>
^
Line 1511, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer114"><IMG src="image95.gif" border="0" width="142" height="18"></DIV>
^
Line 1511, column 73: required attribute "ALT" not specified (explain...).
...ge95.gif" border="0" width="142" height="18"></DIV>
^
Line 1516, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer115"><IMG src="image99.gif" border="0" width="141" height="18"></DIV>
^
Line 1516, column 73: required attribute "ALT" not specified (explain...).
...ge99.gif" border="0" width="141" height="18"></DIV>
^
Line 1521, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer107"></DIV>
^
Line 1526, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer116">
^
Line 1527, column 9: value of attribute "ID" invalid
<a id="_HPB_ROLLOVER1" onmouseout="HpbImgSwap('_HPB_ROLLOVER1', 'n_image1.gif'
^
Line 1527, column 310: required attribute "ALT" not specified (explain...).
..."19" border="0" name="_HPB_ROLLOVER1"></a></DIV>
^
Line 1532, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer117">
^
Line 1533, column 9: value of attribute "ID" invalid
<a id="_HPB_ROLLOVER2" onmouseout="HpbImgSwap('_HPB_ROLLOVER2', 'n_image2.gif'
^
Line 1533, column 316: required attribute "ALT" not specified (explain...).
..."19" border="0" name="_HPB_ROLLOVER2"></a></DIV>
^
Line 1538, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer118">
^
Line 1539, column 9: value of attribute "ID" invalid
<a id="_HPB_ROLLOVER3" onmouseout="HpbImgSwap('_HPB_ROLLOVER3', 'n_image3.gif'
^
Line 1539, column 313: required attribute "ALT" not specified (explain...).
..."19" border="0" name="_HPB_ROLLOVER3"></a></DIV>
^
Line 1545, column 14: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer92">
^
Line 1547, column 14: there is no attribute "HEIGHT" (explain...).
<TABLE height="125">
^
Line 1591, column 29: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
z-index : 121" id="Layer94"><font color="#FFFFFF" size="-1" face="Tahoma">Solu
^
Line 1596, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer119"></DIV>
^
Line 1601, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer120"></DIV>
^
Line 1606, column 14: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer93"></DIV>
^
Line 1611, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer121"></DIV>
^
Line 1616, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer122"></DIV>
^
Line 1621, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer123"><IMG src="image15.jpg" border="0" width="140" height="111"><FONT
^
Line 1621, column 74: required attribute "ALT" not specified (explain...).
..." border="0" width="140" height="111"><FONT size="-2" face="Tahoma" color="#0
^
Line 1628, column 15: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
" id="Layer126"><IMG src="lottonumbers.gif" width="126" height="35" border="0"><
^
Line 1628, column 78: required attribute "ALT" not specified (explain...).
...gif" width="126" height="35" border="0"></DIV>
^
Line 1629, column 27: required attribute "TYPE" not specified (explain...).
<script language=JavaScript>
^
Line 1666, column 6: end tag for element "HEAD" which is not open (explain...).
</head>
^
Line 1668, column 18: document type does not allow element "BODY" here (explain...).
<body class="body">
^
Line 1669, column 17: required attribute "ACTION" not specified (explain...).
<form name="abcd">
^
Line 1674, column 19: ID "LAYER54" already defined (explain...).
height : 25" id="Layer54">
^
Line 1046, column 19: ID "LAYER54" first defined here (explain...).
height : 16" id="Layer54"><FONT size="1" face="Tahoma">
^
Line 1720, column 5: end tag for element "DIV" which is not open (explain...).
</DIV>
^
Line 1728, column 20: ID "LAYER86" already defined (explain...).
z-index : 97" id="Layer86"><span style="width:200px;">
^
Line 1059, column 20: ID "LAYER86" first defined here (explain...).
z-index : 97" id="Layer86"><form name="Tick">
^
Line 1770, column 174: required attribute "ACTION" not specified (explain...).
...ckground-color: #0080C0"></span><form></DIV>
^
Line 1770, column 174: document type does not allow element "FORM" here (explain...).
...ckground-color: #0080C0"></span><form></DIV>
^
Line 1770, column 180: end tag for "FORM" omitted, but its declaration does not permit this (explain...).
...nd-color: #0080C0"></span><form></DIV>
^
Line 1770, column 169: start tag was here (explain...).
...0; background-color: #0080C0"></span><form></DIV>
^
Line 1777, column 6: ID "LAYER8" already defined (explain...).
" id="Layer8">
^
Line 1346, column 6: ID "LAYER8" first defined here (explain...).
" id="Layer8">
^
Line 1778, column 6: end tag for "DIV" omitted, but its declaration does not permit this (explain...).
</BODY>
^
Line 1771, column 0: start tag was here (explain...).
<DIV style="top : 121;left : 152;
^
Line 1778, column 6: end tag for "DIV" omitted, but its declaration does not permit this (explain...).
</BODY>
^
Line 1721, column 0: start tag was here (explain...).
<DIV style="top : 122px;left : 169px;
^
Line 1778, column 6: end tag for "FORM" omitted, but its declaration does not permit this (explain...).
</BODY>
^
Line 1669, column 0: start tag was here (explain...).
<form name="abcd">
^
Line 1779, column 6: end tag for "FONT" omitted, but its declaration does not permit this (explain...).
</HTML>
^
Line 1498, column 0: start tag was here (explain...).
<font face="Verdana,Arial" size="1">
^
khalidali63
05-17-2003, 07:44 PM
Hey Steve,
You are all Charls' now....lol
I am off to see matrix..yupeeeeeeee
webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved.