77 Kinds of JavaScript effects--1, implicit, and progressive text

Source: Internet
Author: User
Tags filter array

1. The text of the hidden and progressive

====1, the following code in a new page of the HTML <body></body> area can be: [page must have nothing]

<TITLE> Effects </TITLE>
<script language=javascript>
var thissize=20
var textfont= "Official script"
var textcolor= new Array ()
textcolor[0]= "000000"
textcolor[1]= "000000"
textcolor[2]= "000000"
textcolor[3]= "111111"
textcolor[4]= "222222"
textcolor[5]= "333333"
textcolor[6]= "444444"
textcolor[7]= "555555"
textcolor[8]= "666666"
textcolor[9]= "777777"
textcolor[10]= "888888"
textcolor[11]= "999999"
textcolor[12]= "AAAAAA"
textcolor[13]= "BBBBBB"
textcolor[14]= "CCCCCC"
textcolor[15]= "DDDDDD"
textcolor[16]= "Eeeeee"
textcolor[17]= "FFFFFF"
textcolor[18]= "FFFFFF"
var message = new Array ()
message[0]= "Http://yuxuemei.yeah.net"
message[1]=, "I'm ginger."
message[2]= "Hello, everyone."
Message[3]= "Welcome to visit my homepage"
var i_strength=0
var i_message=0
var timer
function Glowtext () {
if (document.all) {
if (I_strength <=17) {
Document.all.glowdiv.style.filter= "Glow (color=" +textcolor[i_strength]+ ", strength=4)"
Timer=settimeout ("Glowtext ()", 100)
else {
Cleartimeout (timer)
SetTimeout ("Deglowtext ()", 1500)
}function Deglowtext () {
if (document.all) {
if (I_strength >=0) {
Document.all.glowdiv.style.filter= "Glow (color=" +textcolor[i_strength]+ ", strength=4)"
Timer=settimeout ("Deglowtext ()", 100)
else {
Cleartimeout (timer)
if (i_message>=message.length) {i_message=0}
Intermezzo ()
function Intermezzo () {
Glowdiv.innertext= ""
SetTimeout ("Glowtext ()", 1500)
<body bgcolor= "#000000" >file://notTo forget to write
<div id= "Glowdiv" style= "position:absolute;visibility:visible;width:600px;text-align:center;
Top:150px;left:50px;font-family: Official script; font-size:30pt;color:000000 "></div>

====2, [optional] Modify <div> tag code to determine the position, color, and size of the text display.
Top is the distance from above the screen, and left is the distance from the sitting side. Font-size is the text size,
Color is a colour. The width is the length of the div layer. Because the text is controlled by a Div, there can be no other content within the width of the div.
The position of the div is represented by an absolute position (Position:absolute).

Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.