弹出窗口居中

[ 2006-06-06 09:45:10 | 作者: admin ]
字号: | |

<script language=javascript>
function winOpen(Url,width,height,scrollbar,resize)
{
// Url
// widht
// height
// scrollbar 0 yes 1 no
// resize 0 true 1 false

ow = width;
oh = height;
os = scrollbar;
or = resize;
var xposition=0;
var yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
     {
         xposition = (screen.width - width) / 2;
         yposition = (screen.height - height-25) / 2;
     }
     window.open (Url,"","width ="+ow+",height="+oh+",scrollbars = "+os+",resizable="+or+",left="+xposition+",top="+yposition );
}
    </script>
[最后修改由 admin, 于 2006-06-06 09:45:43]
评论Feed 评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=634

这篇日志没有评论。

此日志不可发表评论。