CSS (three)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.