Web Gallery 简单地写一写

2019-04-14 15:50发布

function showPic(whichPic){ var src = whichPic.getAttribute("href"); var placeHolder = document.getElementById("placeHolder"); placeHolder.setAttribute("src",src); // console.log("execute : "+whichPic); var title = whichPic.getAttribute("title"); var description = document.getElementById("description"); // description.childNodes[0].nodeValue = title; description.firstChild.nodeValue = title; return false; }
body{ font-family: "Helvetica","Arial",serif; background-color: #cccccc; margin: 1em 10%; } h1{ color: #333333; background-color: transparent;/*透明*/ } a{ color: #cc6600; background-color: transparent; font-weight: bold; text-decoration: none; } ul{ padding: 0; } li{ float:left; padding: 1em; list-style: none; } img{ display: block; clear: both; }
Page Title

Images

My image gallery

Choose an image.