check.jcarr.wit.com/javascript2.html

44 lines
1.2 KiB
HTML
Raw Normal View History

2017-11-29 02:59:02 -06:00
<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>