안녕하세요.
질문이 있는데,
첨부한 이미지에 보면 로그인을 누루면 백그라운드에 로그인창 뜨면서
첨부한 이미지대로 나오려면 어떻게 해야하죠?
아시는분들 답변좀 부탁드려요~
질문이 있는데,
첨부한 이미지에 보면 로그인을 누루면 백그라운드에 로그인창 뜨면서
첨부한 이미지대로 나오려면 어떻게 해야하죠?
아시는분들 답변좀 부탁드려요~
댓글 5개
12년 전
이걸사용하세요
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>--</title>
<style>
html,body{font-size:12px;margin:0px;height:100%;}
.mesWindow{border:#666 1px solid;background:#fff;}
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
</style>
<script>
var isIe=(document.all)?true:false;
function setSelectState(state)
{
var objl=document.getElementsByTagName('select');
for(var i=0;i<objl.length;i++)
{
objl[i].style.visibility=state;
}
}
function mousePosition(ev)
{
if(ev.pageX || ev.pageY)
{
return {x:ev.pageX, y:ev.pageY};
}
return {
x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,y:ev.clientY + document.body.scrollTop - document.body.clientTop
};
}
//튀여나오는 스타일
function showMessageBox(wTitle,content,pos,wWidth)
{
closeWindow();
var bWidth=parseInt(document.documentElement.scrollWidth);
var bHeight=parseInt(document.documentElement.scrollHeight);
if(isIe){
setSelectState('hidden');}
var back=document.createElement("div");
back.id="back";
var styleStr="top:0px;left:0px;position:absolute;background:#666;width:"+bWidth+"px;height:"+bHeight+"px;";
styleStr+=(isIe)?"filter:alpha(opacity=0);":"opacity:0;";
back.style.cssText=styleStr;
document.body.appendChild(back);
showBackground(back,50);
var mesW=document.createElement("div");
mesW.id="mesWindow";
mesW.className="mesWindow";
mesW.innerHTML="<div class='mesWindowTop'><table width='100%' height='100%'><tr><td>"+wTitle+"</td><td style='width:1px;'><input type='button' onclick='closeWindow();' title='닫기' class='close' value='닫기' /></td></tr></table></div><div class='mesWindowContent' id='mesWindowContent'>"+content+"</div><div class='mesWindowBottom'></div>";
styleStr="left:"+(((pos.x-wWidth)>0)?(pos.x-wWidth):pos.x)+"px;top:"+(pos.y)+"px;position:absolute;width:"+wWidth+"px;";
mesW.style.cssText=styleStr;
document.body.appendChild(mesW);
}
//배경점점 검게
function showBackground(obj,endInt)
{
if(isIe)
{
obj.filters.alpha.opacity+=1;
if(obj.filters.alpha.opacity<endInt)
{
setTimeout(function(){showBackground(obj,endInt)},5);
}
}else{
var al=parseFloat(obj.style.opacity);al+=0.01;
obj.style.opacity=al;
if(al<(endInt/100))
{setTimeout(function(){showBackground(obj,endInt)},5);}
}
}
//닫기
function closeWindow()
{
if(document.getElementById('back')!=null)
{
document.getElementById('back').parentNode.removeChild(document.getElementById('back'));
}
if(document.getElementById('mesWindow')!=null)
{
document.getElementById('mesWindow').parentNode.removeChild(document.getElementById('mesWindow'));
}
if(isIe){
setSelectState('');}
}
function testMessageBox(ev)
{
var objPos = mousePosition(ev);
messContent="<div style='padding:20px 0 20px 0;text-align:center'>내용</div>";
showMessageBox('제목',messContent,objPos,350);
}
</script>
</head>
<body>
<div style="padding:20px">
<div style="text-align:left";><a href="#none" onclick="testMessageBox(event);">열기</a></div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>--</title>
<style>
html,body{font-size:12px;margin:0px;height:100%;}
.mesWindow{border:#666 1px solid;background:#fff;}
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
.mesWindowContent{margin:4px;font-size:12px;}
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
</style>
<script>
var isIe=(document.all)?true:false;
function setSelectState(state)
{
var objl=document.getElementsByTagName('select');
for(var i=0;i<objl.length;i++)
{
objl[i].style.visibility=state;
}
}
function mousePosition(ev)
{
if(ev.pageX || ev.pageY)
{
return {x:ev.pageX, y:ev.pageY};
}
return {
x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,y:ev.clientY + document.body.scrollTop - document.body.clientTop
};
}
//튀여나오는 스타일
function showMessageBox(wTitle,content,pos,wWidth)
{
closeWindow();
var bWidth=parseInt(document.documentElement.scrollWidth);
var bHeight=parseInt(document.documentElement.scrollHeight);
if(isIe){
setSelectState('hidden');}
var back=document.createElement("div");
back.id="back";
var styleStr="top:0px;left:0px;position:absolute;background:#666;width:"+bWidth+"px;height:"+bHeight+"px;";
styleStr+=(isIe)?"filter:alpha(opacity=0);":"opacity:0;";
back.style.cssText=styleStr;
document.body.appendChild(back);
showBackground(back,50);
var mesW=document.createElement("div");
mesW.id="mesWindow";
mesW.className="mesWindow";
mesW.innerHTML="<div class='mesWindowTop'><table width='100%' height='100%'><tr><td>"+wTitle+"</td><td style='width:1px;'><input type='button' onclick='closeWindow();' title='닫기' class='close' value='닫기' /></td></tr></table></div><div class='mesWindowContent' id='mesWindowContent'>"+content+"</div><div class='mesWindowBottom'></div>";
styleStr="left:"+(((pos.x-wWidth)>0)?(pos.x-wWidth):pos.x)+"px;top:"+(pos.y)+"px;position:absolute;width:"+wWidth+"px;";
mesW.style.cssText=styleStr;
document.body.appendChild(mesW);
}
//배경점점 검게
function showBackground(obj,endInt)
{
if(isIe)
{
obj.filters.alpha.opacity+=1;
if(obj.filters.alpha.opacity<endInt)
{
setTimeout(function(){showBackground(obj,endInt)},5);
}
}else{
var al=parseFloat(obj.style.opacity);al+=0.01;
obj.style.opacity=al;
if(al<(endInt/100))
{setTimeout(function(){showBackground(obj,endInt)},5);}
}
}
//닫기
function closeWindow()
{
if(document.getElementById('back')!=null)
{
document.getElementById('back').parentNode.removeChild(document.getElementById('back'));
}
if(document.getElementById('mesWindow')!=null)
{
document.getElementById('mesWindow').parentNode.removeChild(document.getElementById('mesWindow'));
}
if(isIe){
setSelectState('');}
}
function testMessageBox(ev)
{
var objPos = mousePosition(ev);
messContent="<div style='padding:20px 0 20px 0;text-align:center'>내용</div>";
showMessageBox('제목',messContent,objPos,350);
}
</script>
</head>
<body>
<div style="padding:20px">
<div style="text-align:left";><a href="#none" onclick="testMessageBox(event);">열기</a></div>
</div>
</body>
</html>
Terrorboy
12년 전
모달창이라고 검색 해보세요~
12년 전
음..div 팝업에 대해서 배우시고 target= parent 이걸로 검색하시면 됩니다. 그리고 비동기 ajax쪽으로 보시면 됩니다.
skypro
12년 전
그냥 간단하게 레이어로 띄우시면 됩니다. div 하나 만들어놓고 로그인 버튼 클릭하면 레이어를 href시켜주면 될듯....^^
배경 검은색도 간단히 bg를 레이어로 하나 덮으면 간단합니다. 어렵게 처리할 필요가 없을 듯합니다 ..도움되시길
배경 검은색도 간단히 bg를 레이어로 하나 덮으면 간단합니다. 어렵게 처리할 필요가 없을 듯합니다 ..도움되시길
12년 전
여기 스킨방에서 검색해 보시면 나옵니다..참고하시길..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5630 | 13년 전 | 1070 | ||
| 5629 | 13년 전 | 2706 | ||
| 5628 | 13년 전 | 1287 | ||
| 5627 | 13년 전 | 1660 | ||
| 5626 | 13년 전 | 1293 | ||
| 5625 | 13년 전 | 1946 | ||
| 5624 | 13년 전 | 1364 | ||
| 5623 | 13년 전 | 948 | ||
| 5622 | 13년 전 | 422 | ||
| 5621 | 13년 전 | 13312 | ||
| 5620 | 13년 전 | 1193 | ||
| 5619 | 13년 전 | 3339 | ||
| 5618 | 13년 전 | 975 | ||
| 5617 | 13년 전 | 422 | ||
| 5616 | 13년 전 | 602 | ||
| 5615 |
Preware
|
13년 전 | 421 | |
| 5614 | 13년 전 | 554 | ||
| 5613 |
AMDbest
|
13년 전 | 4341 | |
| 5612 |
AMDbest
|
13년 전 | 6165 | |
| 5611 | 13년 전 | 874 | ||
| 5610 |
AMDbest
|
13년 전 | 4665 | |
| 5609 | 13년 전 | 968 | ||
| 5608 |
|
13년 전 | 487 | |
| 5607 | 13년 전 | 654 | ||
| 5606 | 13년 전 | 470 | ||
| 5605 | 13년 전 | 368 | ||
| 5604 | 13년 전 | 609 | ||
| 5603 |
갑수엔터테인먼트
|
13년 전 | 768 | |
| 5602 | 13년 전 | 427 | ||
| 5601 | 13년 전 | 510 | ||
| 5600 | 13년 전 | 934 | ||
| 5599 | 13년 전 | 7466 | ||
| 5598 |
PHPㅡASP프로그래머
|
13년 전 | 2699 | |
| 5597 | 13년 전 | 404 | ||
| 5596 |
hoinV
|
13년 전 | 994 | |
| 5595 | 13년 전 | 919 | ||
| 5594 | 13년 전 | 1061 | ||
| 5593 | 13년 전 | 4941 | ||
| 5592 |
|
13년 전 | 389 | |
| 5591 | 13년 전 | 892 | ||
| 5590 |
PHPㅡASP프로그래머
|
13년 전 | 2307 | |
| 5589 | 13년 전 | 1939 | ||
| 5588 |
바다로가자
|
13년 전 | 1637 | |
| 5587 |
PHPㅡASP프로그래머
|
13년 전 | 1825 | |
| 5586 | 13년 전 | 2744 | ||
| 5585 | 13년 전 | 398 | ||
| 5584 | 13년 전 | 1873 | ||
| 5583 | 13년 전 | 1306 | ||
| 5582 |
바다로가자
|
13년 전 | 3097 | |
| 5581 |
|
13년 전 | 3106 | |
| 5580 | 13년 전 | 921 | ||
| 5579 |
하하369
|
13년 전 | 3978 | |
| 5578 | 13년 전 | 1064 | ||
| 5577 | 13년 전 | 1232 | ||
| 5576 | 13년 전 | 1644 | ||
| 5575 |
가위바위보
|
13년 전 | 1593 | |
| 5574 |
danielle
|
13년 전 | 705 | |
| 5573 |
|
13년 전 | 859 | |
| 5572 | 13년 전 | 2777 | ||
| 5571 | 13년 전 | 834 | ||
| 5570 | 13년 전 | 1424 | ||
| 5569 |
|
13년 전 | 2134 | |
| 5568 | 13년 전 | 1957 | ||
| 5567 | 13년 전 | 679 | ||
| 5566 |
|
13년 전 | 1309 | |
| 5565 | 13년 전 | 3671 | ||
| 5564 | 13년 전 | 919 | ||
| 5563 | 13년 전 | 1373 | ||
| 5562 | 13년 전 | 872 | ||
| 5561 | 13년 전 | 1045 | ||
| 5560 |
PHPㅡASP프로그래머
|
13년 전 | 1529 | |
| 5559 | 13년 전 | 631 | ||
| 5558 |
there007
|
13년 전 | 1550 | |
| 5557 | 13년 전 | 1186 | ||
| 5556 |
후라보노보노
|
13년 전 | 742 | |
| 5555 | 13년 전 | 9131 | ||
| 5554 | 13년 전 | 827 | ||
| 5553 |
가을이군요
|
13년 전 | 716 | |
| 5552 |
|
13년 전 | 791 | |
| 5551 | 13년 전 | 1509 | ||
| 5550 |
후라보노보노
|
13년 전 | 914 | |
| 5549 |
|
13년 전 | 1014 | |
| 5548 | 13년 전 | 678 | ||
| 5547 | 13년 전 | 525 | ||
| 5546 | 13년 전 | 4609 | ||
| 5545 | 13년 전 | 906 | ||
| 5544 | 13년 전 | 1022 | ||
| 5543 | 13년 전 | 758 | ||
| 5542 | 13년 전 | 6633 | ||
| 5541 | 13년 전 | 807 | ||
| 5540 | 13년 전 | 1137 | ||
| 5539 | 13년 전 | 1116 | ||
| 5538 | 13년 전 | 2829 | ||
| 5537 | 13년 전 | 809 | ||
| 5536 | 13년 전 | 2704 | ||
| 5535 |
|
13년 전 | 1211 | |
| 5534 | 13년 전 | 1764 | ||
| 5533 |
꿈꾸는인생
|
13년 전 | 1331 | |
| 5532 | 13년 전 | 1496 | ||
| 5531 | 13년 전 | 1711 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기