< html xmlns = " http://www.w3.org/1999/xhtml " > < head > < meta http - equiv = " Content-Type " content = " text/html; charset=gb2312 " /> < title > 无标题文档 </ title > < script language = javascript > function setshow(ff) ... { if(ff=='show')visible='visible'; if(ff=='hide')visible='hidden'; var theObj=document.all.boysoft if(theObj)theObj.style.visibility=visible; } </ script > </ head > < body > < a href = " javascript:setshow('show') " >< font color = " #0000FF " > 打开隐藏层 </ font ></ a > < div id = boysoft style = " HEIGHT: 80px; LEFT: 309px; POSITION: absolute; TOP: 150px; VISIBILITY: hidden; WIDTH: 180px; Z-INDEX: 1 " > < font color = #ffffff > 这是一个隐藏的层,但是现在你可以看到了。这也是一个容器; </ font >< br > < a href = " javascript:setshow('hide') " > 隐藏此层! </ a > </ div > </ body > </ html >