|
|
Add the
following points to web page
Notes
|
 |
|
1. |
at HTML Source of web page add this
Javascript text
<SCRIPT
language=javascript>
//Show time <!-- function
startclock() { var thetime=new Date(); var
nhours=(thetime.getHours()); var
nmins=thetime.getMinutes(); var
nsecn=thetime.getSeconds(); var AorP=" "; if
(nhours>=12) AorP="PM"; else AorP="AM"; if
(nhours>=13) nhours-=12; if (nhours==0) nhours=12; if
(nsecn<10) nsecn="0"+nsecn; if (nmins<10)
nmins="0"+nmins; document.getElementById('clock').innerHTML=nhours+":"+nmins+":"+nsecn+"
"+AorP; setTimeout('startclock()',1000); }
//--> </SCRIPT>
|
2. |
at HTML Source of web page,
to HTML text - <body> replace the previous
HTML text to
the following HTML text
(color of old text - red, color of new text - black))
<body
onload=startclock()>
|
3. |
- at Normal Source of web page,
right click the
specific cell, on the shortcut menu
click Cell Proprieties, the Cell Proprieties
dialog box appears, select the Horizontal
alignment combo box to value
Center, and then click ok
- at Normal Source, intp this
cell, type 'A' and select it
- at HTML source, appears the place
selected at the previous point ( letter 'A'
typed and selected at Normal Source)
<td width="33%"
align="center">A</td>
- at HTML source, replace the previous
HTML text by the following HTML text.
(color of old text - red,
color of new text - black)
<td width="33%"
align="center"> <DIV
id=clock></DIV> </td> | |
|
| | |