도움 좀 부탁드립니다.

도움 좀 부탁드립니다.

QA

도움 좀 부탁드립니다.

답변 1

본문

단일 페이지 입니다. 

Click Here to See Popup 를 클릭하면, jquery popup 이 나옵니다. 
popup 에서, 변수값을 넘겨 받고 싶습니다. 

만약, Click Here to See Popup 에 a 라는 변수에 2 라는 값이 있습니다. 
popup 실행 시, 화면에서 a 라는 변수의 값을 받아오고 싶은데 
어떻게 하면 될련지요?
[ ▼ 질문관련 참고 Source ]

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>jQuery Popup Dialog - Click</title>
<style type="text/css">
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
filter:alpha(opacity=70);
-moz-opacity:0.7;
-khtml-opacity: 0.7;
opacity: 0.7;
z-index: 100;
display: none;
}
.content a{
text-decoration: none;
}
.popup{
width: 100%;
margin: 0 auto;
display: none;
position: fixed;
z-index: 101;
top: 20%;
}
.content{
min-width: 600px;
width: 600px;
min-height: 150px;
margin: 100px auto;
background: #f3f3f3;
position: relative;
z-index: 103;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px #000;
}
.content p{
clear: both;
color: #555555;
text-align: justify;
}
.content p a{
color: #d91900;
font-weight: bold;
}
.content .x{
float: right;
height: 35px;
left: 22px;
position: relative;
top: -25px;
width: 34px;
}
.content .x:hover{
cursor: pointer;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type='text/javascript'>
$(function(){
var overlay = $('<div id="overlay"></div>');
$('.close').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});

$('.x').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});

$('.click').click(function(){
overlay.show();
overlay.appendTo(document.body);
$('.popup').show();
return false;
});
});
</script>
</head>
<body>
<div class='popup'>
<div class='content'>
<img src='http://www.developertips.net/demos/popup-dialog/img/x.png' alt='quit' class='x' id='x' />
<p>
<?
echo "<pre>";
print_r($_GET);
echo "</pre>";
?>
Welcome to Nirbhay Singh Poppup Window. Please use above search option which was there in top right side to get help with many of articles.


<a href='' class='close'>Close</a>
</p>
</div>
</div>         
<div id='container'>
<a href='?a=2' class='click'><h2><b>Click Here to See Popup! </b></h2></a> 
</div>
</body> 

</html> 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 8
© SIRSOFT
현재 페이지 제일 처음으로