File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1
- Hello World
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > My Loving</ title >
5
+ < script type ="text/javascript " src ="./jquery.min.js "> </ script >
6
+ </ head >
7
+ < body >
8
+ < div class ="container " style ="display:none; ">
9
+ To My Dear:
10
+ < br >
11
+ Without you?I'd be a soul without a purpose.
12
+ < br >
13
+ Without you?I'd be an emotion without a heart.
14
+ < br >
15
+ I'm a face without expression,A heart with no beat.
16
+ < br >
17
+ Without you by my side,I'm just a flame without the hot.
18
+ < br >
19
+ You make me feel so happy;
20
+ < br >
21
+ Whenever I'm with you.
22
+ < br > You make me feel so special--This love is too good to be true.
23
+ </ div >
24
+ < div class ="trueContainer "> </ div >
25
+ </ body >
26
+ < script type ="text/javascript ">
27
+ $ ( document ) . ready ( function ( ) {
28
+ var length = $ ( '.container' ) . text ( ) . length ;
29
+ var text = $ ( '.container' ) . text ( ) ;
30
+ var array = [ ] ;
31
+ for ( var i = 0 ; i <= length ; i ++ ) {
32
+ array [ i ] = text . substr ( i , 1 ) ;
33
+ }
34
+ var t = 0 ;
35
+ function showText ( ) {
36
+ if ( t < length ) {
37
+ $ ( '.trueContainer' ) . append ( array [ t ] ) ;
38
+ t ++ ;
39
+ } else {
40
+ $ ( '.trueContainer' ) . empty ( ) ;
41
+ t = 0 ;
42
+ }
43
+ }
44
+ setInterval ( showText ( ) , 100 ) ;
45
+ } )
46
+ </ script >
47
+ </ html >
You can’t perform that action at this time.
0 commit comments