44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> Animated Text</TITLE>
|
||
|
</HEAD>
|
||
|
<body>
|
||
|
|
||
|
<FORM NAME="fa1">
|
||
|
<INPUT NAME="ta1" TYPE="text" SIZE="20">
|
||
|
<INPUT NAME="ta2" TYPE="text" SIZE="20">
|
||
|
<INPUT NAME="ta3" TYPE="text" SIZE="20">
|
||
|
<input id="UserAgent" name="User Agent" />
|
||
|
|
||
|
</FORM>
|
||
|
|
||
|
<SCRIPT LANGUAGE= "javascript">
|
||
|
setTimeout("document.fa1.ta1.value = 'ta1 start'", 1000);
|
||
|
setTimeout("document.fa1.ta1.value = 'ta1 end'", 1300);
|
||
|
setTimeout("document.fa1.ta2.value = 'ta2 start'", 1600);
|
||
|
setTimeout("document.fa1.ta2.value = 'ta2 end'", 1900);
|
||
|
setTimeout("document.fa1.ta3.value = 'ta3 start'", 2200);
|
||
|
setTimeout("document.fa1.ta3.value = 'ta3 end'", 2500);
|
||
|
document.getElementById('UserAgent').value = navigator.userAgent;
|
||
|
document.write("<br>");
|
||
|
document.write(navigator.userAgent + "<br>");
|
||
|
document.write("<br>");
|
||
|
</SCRIPT>
|
||
|
|
||
|
<SCRIPT>
|
||
|
//assigns value to variable
|
||
|
test ="javascript font attributes"
|
||
|
|
||
|
// opens document and uses methods to modify text characteristics
|
||
|
document.open()
|
||
|
document.write(test.bold()+"<P>")
|
||
|
document.write(test.fontsize(7)+"<P>")
|
||
|
document.write(test.fontcolor("red")+"<P>")
|
||
|
document.write(test.toUpperCase()+"<P>")
|
||
|
|
||
|
//assigns multiple characteristics to text
|
||
|
document.write(test.italics().fontsize(6).fontcolor("green")+"<P>")
|
||
|
document.open()
|
||
|
</SCRIPT>
|
||
|
</body>
|