子窗体的位置都是依赖父窗口的吗?我想通过弹出子窗体实现自动提醒的功能,但是如果父窗口时最小化的,新的子窗体也是最小化的状态的。怎样才能实现不管父窗口是不是最小化,新的子窗台都能在屏幕中显示出来?
或者能不能实现子窗体的位置可以依赖于显示屏(因为显示屏的位置永远是固定的)。
或者能不能实现子窗体的位置可以依赖于显示屏(因为显示屏的位置永远是固定的)。
解决方案 »
- 运用js达到页面后台自动化操作
- js如何设置对象名称
- 访问网页是如何把鼠标换成想要的图片比如 :
- 关于JS文字滚动代码
- 小妹有一问题,javascript如何获得页面上某一个文本框中选中的文本及选中文本的长度,急!!!
- 怎么获取table 里的tr对象和tr里面的td 对象和td 对象里面的html对象
- javascript 能取到图片下载到本地的路径吗?
- 图片刷屏滚动,,,急!急!十万火急,,在线等。
- 急求文字不间断向左滚动代码全屏。兼容所有浏览器包括ie678
- 求教,静态html加载JavaScript 变量路径!
- js取多个键值问题(高手请进)
- 做个在线考试,怎么取得多个单项选择题被选中的项的值?
var yposition = 0;
var oh = 0;
var ow = 0; var ohOffset = 70;//高度偏移量
var owOffset = 25; //宽度偏移量
var xPosOffset = 3; //距左偏移量
var yPosOffset = 30;//距顶偏移量 //判断浏览器版本,不同的版本不同的偏移量!
ver = navigator.appVersion;
vNumber = parseFloat(ver.substring(ver.indexOf("MSIE") + 5, ver.lastIndexOf("Windows")));
if (vNumber > 6.0) {
ohOffset= 70;
owOffset = 25;
xPosOffset = 3;
yPosOffset = 30;
}
else {
ohOffset = 38;
owOffset = 18;
xPosOffset = 3;
yPosOffset = 30;
} //alert(vNumber); oh = document.body.clientHeight - ohOffset;
ow = document.body.clientWidth - owOffset;
xposition = window.screenLeft + xPosOffset;
yposition = window.screenTop + yPosOffset;window.parent.window.open("url", "windowName", "height=" + oh + ", width=" + ow + ", left=" + xposition + ",top=" + yposition + ", toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>20091210_02_dhtml.parentWin.html</title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head> <body>
<h3>3 秒后弹出子窗口!</h3>
<script type="text/javascript">
<!--
function OpenAlertWin() {
window.showModelessDialog("20091210_02_dhtml.childWin.html", null,"dialogWidth:300px;dialogHeight:300px;dialogTop:0px;dialogLeft:0px;status:no");
}setInterval(OpenAlertWin, 3000);
//-->
</script>
</body>
</html>
20091210_02_dhtml.childWin.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>20091210_02_dhtml.childWin.html</title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head> <body>
<h3>左上角的提示子窗口!</h3>
<script type="text/javascript">
<!--
window.focus();
window.onblur = function() {
this.focus();
};
//-->
</script>
</body>
</html>
http://download.csdn.net/source/308916DHTML参考手册.rar
http://download.csdn.net/source/308913样式表中文手册.chm
http://download.csdn.net/source/304124
js调用ActiveX