About the Web (toggle News fonts by clicking)

Source: Internet
Author: User

<!DOCTYPE HTML><HTML><Head>    <Metahttp-equiv= "Content-type"content= "txt/html; charset=utf-8" />    <title></title><styletype= "Text/css">a:link;a:visited{Color:#0044ff;text-decoration:None;    }a:hover{Color:#696969;    }#a{width:500px;Border:Black 1px solid;padding:10px;    }. Norm{Color:#696969;font-size:24px;Background-color:#cdd850;    }. Big{Color:Green;font-size:28px;Background-color:#cdd850;    }. Small{Color:Red;font-size:20px;Background-color:#cdd850;    }    </style></Head><Body>    <!--ideas: 1. Have news data, and label 2, define some page style 3. Identify event sources and events, and the node event sources handled in the processing mode: A tag event: onclick; processed node: di V-a the default style of hyperlinks, which can be done with javascript:void (0) -    <Scripttype= "Text/javascript">    //define ways to change fonts        functiongetclass (name) {varOnewstext=document.getElementById ("a"); Onewstext.classname=name; }                </Script>    <H1>This is a news headline</H1><HR/>    <ahref= "javascript:void (0)"onclick= "getclass (' big ')"/>Large font</a>    <ahref= "javascript:void (0)"onclick= "getclass (' small ')"/>Small font</a>    <HR/>    <DivID= "a"class= "Norm">This is the news content this is the news content this is the news content this is news content this is news content this is news content this is news content this is news content this is news content it's news content this is the news content it's news content this is the news content this is the journalistic content this is news content this is the news content this is the content of news  This is the news content this is the news content this is news content this is news content this is news content</Div></Body></HTML>

About the Web (toggle News fonts by clicking)

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.