Script description:
Step 1: Add the following code to the
area.spanstyle {
Color: # ffd8ff; font-family: Song; Font-size: 10pt; Position: absolute; top: -50px; Visibility: visible
}
style>
Var x, y
VAR Step = 18
Var flag = 0
// Your snappy message. Important: The space at the end of the sentence !!!
Var Message = "★ Nanjing Wire Broadband Network welcomes you!"
Message = message.split ("")
Var xpos = new arrival ()
For (i = 0; i <= message.length-1; i ) {
XPOS [I] = - 50
}
VAR YPOS = New Array ()
For (i = 0; i <= message.length-1; i ) {
YPOS [I] = - 200
}
Function Handlermm (e) {
X = (Document.Layers)? E.Pagex: Document.body.Scrollleft Event.ClientX
Y = (Document.Layers)? E.Pagey: Document.body.Scrolltop Event.Clienty
Flag = 1
}
Function Makesnake () {
IF (Flag == 1 && Document.all) {
For (i = message.length-1; i> = 1; i -) {
XPOS [I] = XPOS [I-1] STEP
YPOS [I] = ypos [i-1]
}
XPOS [0] = x step
YPOS [0] = Y
For (i = 0; i Var thisspan = EVAL ("span" (i) ". style") Thisspan.posleft = xpos [i] Thisspan.postop = YPOS [i] } } Else IF (Flag == 1 && Document.Layers) { For (i = message.length-1; i> = 1; i -) { XPOS [I] = XPOS [I-1] STEP YPOS [I] = ypos [i-1] } XPOS [0] = x step YPOS [0] = Y For (i = 0; i Var thisspan = evAl ("Document.span" i) Thisspan.Left = XPOS [i] Thisspan.top = YPOS [i] } } VAR Timer = setTimeout ("Makesnake ()", 30) } script> Step 2: Add the following code to the
Document.write ("") Document.write (Message [i]) Document.write (" span>") } IF (Document.layers) { Document.captureevents (event.mousemove); } Document.onmousemove = handlermm; // - End of javascript - -> script> Step 3: Change