The CSS is finished again, it's fast!!!
Preview a part of JS, wrote a few simple JS code:
1. Results Determination:
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Student performance Assessment</title> <Scripttype= "Text/javascript"> vara=Window.prompt ("Friend, please enter your score:"); if(A==NULL) {document.write ("Bye"); }Else if(A> -) {document.write ("can you play happily!!!"); }Else if(A> -) {document.write (a+"is excellent"); }Else if(A>= the) {document.write (a+"is good"); }Else if(A>= -) {document.write (a+"is Medium"); }Else if(A>= -) {document.write (a+"It's a pass ."); }Else if(A< - &&a>=0) {document.write (a+"It's a failure ."); }Else{document.write ("a face of a crazy"); } </Script></Head><Body> </Body></HTML>
2. Judge common Year or leap year:
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Common year or leap year?</title> <Scripttype= "Text/javascript"> vara=Window.prompt ("Please enter the year"); if(A==NULL) {document.write ("play me?"); }Else if(A==0) {document.write ("when did you hear about 0 years?"); }Else{a%4==0 &&a% -!=0 ||a% -==0?document.write (A+"years is a leap year"):d Ocument.write (a+"year is common year"); } </Script></Head><Body> </Body></HTML>
3. The odd number in the output 1-100:
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>While</title> <Scripttype= "Text/javascript"> varI=1; while(i<= -) { if(i%2!=0) {document.write (i+'<br>'); } I++; } </Script></Head><Body> </Body></HTML>
CSS (three)