나는 두 개의 라디오 버튼 : radiobutton1과 radiobutton2를 가지고 있는데, 그 위에 마우스를 가져 가면 jquery-ui 대화 창을 보여주었습니다 ... 현재 대화를 너무 멀리 보여주고 있습니다. 오른쪽 ... 라디오 버튼 바로 아래에 대화창을 보여주고 싶습니다. 두 번째 이미지에 나와 있습니다.라디오 버튼 아래에 JQuery-UI 대화 상자 창을 표시하는 방법
$(document).ready(function() {
$('#div_').dialog({
autoOpen: false,
});
$(".radiobutton1").hover(
function(){
$('#div_').dialog({title: "Iamge Left)"});
$('#div_').removeClass("radiobutton1_1 radiobutton2").dialog('open');
var target = $(this);
$("#div_").dialog("wid").position({
my: 'center top',
at: 'center bottom'//,
//of: target
});
},
function(){
$('#div_').dialog('close');
});
$(".radiobutton2").hover(
function(){
$('#div_').dialog({title: "Images Right"});
$('#div_').removeClass("radiobutton1_1 radiobutton2").addClass("radiobutton2").dialog('open');
$("#div_").dialog("wid").position({
my: 'center top',
at: 'center bottom'//,
//of: target
});
},
function(){
$('#div_').dialog('close');
});
});
http://stackoverflow.com/questions/744554/jquery-ui-dialog-positioning – Evan