| <! DOCTYPE html> <Html> <Head> <Script src = "jquery-1.7.1.min.js"> </script> <Script> For (var I = 0; I <100000; I ++) { If (I % 4 = 0) SetTimeout ("condition ('your div1'salary .css ({'border-left': '40px solid red', 'border-bottom ': '40px solid green', 'border-Right ': '40px solid yellow', 'border-top': '40px solid Blue'}) ", 2000 * I ); If (I % 4 = 1) SetTimeout ("condition ('your div1'salary .css ({'border-left': '40px solid Blue', 'border-bottom ': '40px solid red', 'border-Right ': '40px solid green', 'border-top': '40px solid yellow'}) ", 2000 * I ); If (I % 4 = 2) SetTimeout ("condition ('your div1'salary .css ({'border-left': '40px solid yellow', 'border-bottom ': '40px solid Blue', 'border-Right ': '40px solid red', 'border-top': '40px solid green'}) ", 2000 * I ); If (I % 4 = 3) SetTimeout ("condition ('your div1'salary .css ({'border-left': '40px solid green', 'border-bottom ': '40px solid yellow', 'border-Right ': '40px solid Blue', 'border-top': '40px solid red'}) ", 2000 * I ); } </Script> <Style> # Div2 { Width: 100px; Height: 100px; Border-left: 40px solid red; Border-right: 40px solid yellow; Border-bottom: 40px solid green; Border-top: 40px solid blue; Background-color: # FFFFFF; Border-radius: 900px/900px; Display: none; Top: 0px; Left: 0px; Position: relative; Z-index: 1; } # Div1 { Width: 100px; Height: 100px; Border-left: 40px solid red; Border-right: 40px solid yellow; Border-bottom: 40px solid green; Border-top: 40px solid blue; Background-color: # FFFFFF; Border-radius: 90px/90px; } </Style> </Head> <Body> <P style = "color: # FF0000"> circle of rotation </p> <Div id = "div1"> </div> </Body> </Html> |