posts - 66, comments - 12, trackbacks - 0, articles - 0

showModalDialog(对话窗口)

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;
     }
   }


只有注册用户登录后才能发表评论。


网站导航: