在我的 JavaScript 下面。我想当我点击然后覆盖背景和窗口将是中心位置。
function openPopupManager(url)
{
var url;
url = "child_upload_gallery_images.php?make_id="+$('#make_id').val()+"&model_id="+$('#model_id').val()+"&model_sub_cat_id="+$('#model_sub_cat_id').val()+"&gallery_id="+$('#gallery_id').val()+"&wheel_id="+$('#wheel_id').val();
mywindow = window.open (url,"Gallery Images.","location=0,status=0,scrollbars=1,width=800,height=600");
mywindow.moveTo(0,0);
return false;
}
这是html
<input type="submit" name="<?php echo $button;?>" id="upload_gallery_img" value="Upload Selected Gallery Image" class="subtn" onclick="javascript:openPopupManager();" />
我正在尝试,但还无法弄清楚..仍在尝试。弹出窗口打开但覆盖和居中如何?