复제대码 代码如下: <%@ 페이지 언어="java" import="java. util.*" pageEncoding="UTF-8"%> <% 문자열 경로 = request.getContextPath(); String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() 경로 "/"; %> <머리> 无标题文档 <br>* {margin:0px;padding:0px;} <br>html,body { 높이:100%;} <br>body { 글꼴 크기:14px; line-height:24px;} <br>#tip { <br>위치: 절대; <br>오른쪽: 0px; <br>하단: 0px; <br>높이: 0px; <br>너비: 180px; <br>테두리: 1px 실선 #CCCCCC; <br>배경색: #eeeeee; <br>패딩: 1px; <br>오버플로:숨김; <br>디스플레이:없음; <br>글꼴 크기:12px; <br>z-색인:10; <br>} <br>#tip p { padding:6px;} <br>#tip h1,#detail h1 { <br>font-size:14px; <br>높이:25px; <br>줄 높이:25px; <br>배경색:#0066CC; <br>색상:#FFFFFF; <br>패딩:0px 3px 0px 3px; <br>필터: 알파(불투명도=100); <br>} <br>#tip h1 a,#detail h1 a { <br>float:right; <br>텍스트 장식:없음; <br>색상:#FFFFFF; <br>} <br>#shadow { <br>위치:절대; <br>폭:100%; <br>높이:100%; <br>배경색:#000000; <br>z-색인:11; <br>필터: 알파(불투명도=70); <br>디스플레이:없음; <br>오버플로:숨김; <br>} <br>#detail { <br>너비:500px; <br>높이:200px; <br>테두리:3px double #ccc; <br>배경색:#FFFFFF; <br>위치:절대; <br>z-색인:30; <br>디스플레이:없음; <br>왼쪽:30%; <br>상위:30% <br>} <br> <br>var 핸들; <br>function start() <br>{ <br>var obj = document.getElementById("tip"); <br>if (parseInt(obj.style.height)==0) <br>{ obj.style.display="block"; <br>handle = setInterval("changeH('up')",2); <br>}else <br>{ <br>handle = setInterval("changeH('down')",2) <br>} <br>} <br>functionchangeH(str) <br>{ <br> var obj = document.getElementById("tip"); <br>if(str=="up") <br>{ <br>if (parseInt(obj.style.height)>200) <br>clearInterval(handle); <br>그 외 <br>obj.style.height=(parseInt(obj.style.height) 8).toString() "px"; <br>} <br>if(str=="down") <br>{ <br>if (parseInt(obj.style.height)<8) <BR>{clearInterval(handle); <BR>obj.style.display="없음"; <BR>} <BR>else <BR>obj.style.height=(parseInt(obj.style.height)-8).toString() "px"; <BR>} <BR>} <BR>function showwin() <BR>{ <BR>document.getElementsByTagName("html")[0].style.overflow = "hidden"; <BR>시작(); <BR>document.getElementById("shadow").style.display="block"; <BR>document.getElementById("detail").style.display="block"; <BR>} <BR>기능 복구() <BR>{ <BR>document.getElementsByTagName("html")[0].style.overflow = "auto"; <BR>document.getElementById("shadow").style.display="none"; <BR>document.getElementById("detail").style.display="none"; <BR>} <BR> ×您有新消息< ;/h1>点击这里查看详细