Posted on 2008-06-24 13:22
cyantide 阅读(228)
评论(0) 编辑 收藏 所属分类:
html、script
function selectIp(index) {
var width = 600;
var height = 500;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2 - 40;
var style = 'status=yes,resizable=no,width=' +
width + ',height=' + height + ',top=' + top + ',left=' + left;
v = showModalDialog('getIpAddress.asp', '',
'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;dialogLeft:' + left +
'px;dialogTop:' + top + 'px;center:yes;help:no;resizable:no;status:no;scroll:no');
if(v) {
document.getElementById('ip'+index).value = v;
}
}