<!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)