[ Web ]/JavaScript & JQUERY

마우스오버시 새창 아웃시 사라지는 소스

관이119 2012. 9. 12. 10:16
반응형
디자인수집터 | 올리브
http://blog.naver.com/funolive/120033772725
<html>
<head>
<script language="javascript">
<!--
headstring = "<HTML><HEAD><TITLE>마우스 오버 시 새창 띄우기</TITLE><HEAD>" //새창제목
bodystring = "<BODY bgcolor=#ffffff>" //새창 배경색
endstring = "</BODY></HTML>"
iswin1 = 0;
function me() {
if (iswin1==1) return;
win1 = open ("","","width=250,height=150"); //새창크기
win1.document.open();
win1.document.write (headstring);
win1.document.write (bodystring);
text1 ="마 우스를 올리면<p>";
text1 += " 생겼다가<p>";
text1 += " 마우스 를 떼면 <p>";
text1 += " 사라지는 창 <p>";
text1 += " 공지로 사용하면 좋겠네여 ^^<p>"; // 새창에 들어갈 내 용
text1 = "<center><font size=2 color=#000000>" + text1 + "</font></center>"; // 글씨색
win1.document.write (text1);
win1.document.write (endstring);
win1.document.close();
iswin1 = 1;
}
function me1 () {
if (iswin1==0) return;
win1.close();
iswin1 = 0;
}
//-- >
</script>
</head>
<body>
<a href=" " onmouseover="me()" onmouseout="me1()" onclick="me1()"><b>마우스 커서를 여기에 올려보세여 </b></a>
</body>
</html>

 

반응형