File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > addClass Visual Test : Queue</ title >
6
+ < link rel ="stylesheet " href ="../visual.css ">
7
+ < link rel ="stylesheet " href ="../../../themes/base/jquery.ui.all.css ">
8
+ < script src ="../../../jquery-1.4.4.js "> </ script >
9
+ < script src ="../../../ui/jquery.effects.core.js "> </ script >
10
+ < style >
11
+ .box {
12
+ width : 100px ;
13
+ height : 100px ;
14
+ background-color : # 000 ;
15
+ }
16
+ .red {
17
+ background-color : # f00 ;
18
+ }
19
+ .green {
20
+ background-color : # 0f0 ;
21
+ }
22
+ .blue {
23
+ background-color : # 00f ;
24
+ }
25
+ </ style >
26
+ < script >
27
+ $ ( function ( ) {
28
+ $ ( "#box1" )
29
+ . delay ( 500 )
30
+ . addClass ( "red" , 2000 )
31
+ . delay ( 500 )
32
+ . addClass ( "green" , 2000 )
33
+ . delay ( 500 )
34
+ . addClass ( "blue" , 2000 ) ;
35
+ $ ( "#box2" )
36
+ . addClass ( "red" , 2000 )
37
+ . delay ( 500 )
38
+ . addClass ( "green" , 2000 )
39
+ . delay ( 500 )
40
+ . addClass ( "blue" , 2000 ) ;
41
+ } ) ;
42
+ </ script >
43
+ </ head >
44
+ < body >
45
+
46
+ < div id ="box1 " class ="box "> </ div >
47
+ < div id ="box2 " class ="box "> </ div >
48
+
49
+ </ body >
50
+ </ html >
You can’t perform that action at this time.
0 commit comments