Imgframe display layer,imgbox display content
<div id= "Imgframe" > <div><a href= "javascript:close ();" > Close </a></div> <div id= "Imgbox" ></div> </div>
IMG Path ' width=", "height=" "onclick=" showoriginal (' <% #Eval ("picture")%> ', event); The Close button method of the >//layer is function close () {document.getElementById ("Imgframe"). Style.display = "None"; }//Layer shows the method function Showoriginal (img,e) {//document.getElementById ("Imgframe"). Style.top = Mousepos (e). x;//doc Ument.getelementbyid ("Imgframe"). Style.left = Mousepos (e). y;//document.getElementById ("Imgframe"). style.zIndex= 1000;//document.getElementById ("Imgframe"). Style.position = "absolute"; if (img! = "" && img! = null) {document.getElementById ("Imgframe"). Style.display = "block"; document.getElementById ("Imgbox"). InnerHTML = " "; }}