<!DOCTYPE HTML><HTML><HeadLang= "en"> <MetaCharSet= "UTF-8"> <title></title> <styletype= "Text/css">Body{font-family:"Helvetica", "Arial", serif;Color:#333;Background-color:#ccc;margin:1em 10%; }H1{Color:#333;Background-color:Transparent; }a{Color:#c60;Background-color:Transparent;Font-weight:Bold;text-decoration:None; }ul{padding:0; }Li{float: Left;padding:1em;List-style:None; }#imagegallery{List-style:None; }#imagegallery Li{margin:0px 20px 20px 0px;padding:0px;Display:inline; }#imagegallery li a img{Border:0; } </style></Head><Body><H2>Beauty Gallery</H2><ulID= "Imagegallery"> <Li><ahref=".. /images/1.jpg "title= "Belle A"> <imgsrc=".. /images/1-small.jpg "width= "+"alt= "Beauty 1"/> </a></Li> <Li><ahref=".. /images/2.jpg "title= "Beauty B"> <imgsrc=".. /images/2-small.jpg "width= "+"alt= "Beauty 2"/> </a></Li> <Li><ahref=".. /images/3.jpg "title= "Beauty C"> <imgsrc=".. /images/3-small.jpg "width= "+"alt= "Beauty 3"/> </a></Li> <Li><ahref=".. /images/4.jpg "title= "Beauty D"> <imgsrc=".. /images/4-small.jpg "width= "+"alt= "Beauty 4"/> </a></Li></ul><Divstyle= "Clear:both"></Div><!--show the large image -<imgID= "image"src=".. /images/placeholder.png "alt=""width= "The "/><PID= "des">Select a picture</P><Scriptsrc= "Common.js"></Script><Script> varAobj=my$ ("Imagegallery"). getElementsByTagName ("a"); for(varI= 0; I<aobj.length; I++) { //Register Click events for each a tagAobj[i].onclick= function () { //src Assignment for the label with ID imagemy$ ("Image"). SRC= This. href; //Assigning a value to a P tagmy$ ("des"). InnerText= This. title; //prevent hyperlinks from default jumps return false; }; }</Script></Body></HTML>
JavaScript Dom Action Case Beauty album