Управление сценариями просмотра Web-страниц


Пример 4


<HTML>
<HEAD>
<TITLE> type_Document_Title_here </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-
var i=0; adv_message = " "
advert = "Russian Research Center \"Kurchatov Institute\""
adv_message += advert; adv_message += " "
adv_length = advert.length
function move_clock(){
// Clock
day = new Date()
clock_screen = day.getHours()+":"
+day.getMinutes()+":"+day.getSeconds()
document.kuku.f_clock.value = clock_screen
// Rolling Field
document.kuku.adv_string.value =
adv_message.substring(i,i+45)
document.kuku.i_field.value = i; i++
if( i == adv_length + 44 ) i = 0
id = setTimeout("move_clock()",100)
}
// end ->
</SCRIPT>
</HEAD>
<BODY onLoad="move_clock()">
This is the start point:<BR>
<a href="#next"> This the document start point.</a>
kukuku
<a name=next>
<FORM NAME=kuku onSubmit="alert("You submit data to server")" METHOD="GET">
<INPUT TYPE=SUBMIT NAME=SABMIT VALUE=SUBMIT> Make a clock here:
<INPUT NAME=f_clock maxlength=8 size=8>
<P>
<INPUT NAME=adv_string maxlength=45 size=45>
<INPUT NAME=i_field size=10> </FORM> </BODY>
</HTML>



Начало  Назад  Вперед