以上问题已经解决,回答出下面问题给分!在showModalDialog弹出的窗口中可以翻页吗,怎样实现?
解决方案 »
- 关于js文件调试
- 超级郁闷!!!FireFox里面没有innerHTML ...................
- 如何使用JS页面验证
- 怎样传递数组?
- 如何实现下拉框动态显示与隐藏<span>...</span>
- 强烈需要牛人支持下~
- 写下拉菜单利用iframe来解决下拉菜单被dropdownlist挡住的问题,我的iframe竟然也把菜单挡住了。
- 简单的问题-如果鼠标点击div以外,如何让div hidden
- to llrock(百乐宝) 问题还没解决呢?
- 请高手帮一下忙!谢谢!
- 哪里有JavaScript中文手册下载?
- frames[0].document.execCommand('InsertImage', false, src);成功插入后怎么把光标移到图片之后?
specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited values:
dialogHeight:sHeight
Sets the height of the dialog window (see Res for default unit of measure).
dialogLeft:sXPos
Sets the left position of the dialog window relative to the upper-left corner of the desktop.
dialogTop:sYPos
Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogWidth:sWidth
Sets the width of the dialog window (see Res for default unit of measure).
center:{ yes | no | 1 | 0 | on | off }
Specifies whether to center the dialog window within the desktop. The default is yes.
dialogHide:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window is hidden when printing or using print preview. This feature is only available when a dialog box is opened from a trusted application. The default is no.
edge:{ sunken | raised }
Specifies the edge style of the dialog window. The default is raised.
help:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes.
resizable:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window has fixed dimensions. The default is no.
scroll:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window displays scrollbars. The default is yes.
status:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows.
unadorned:{ yes | no | 1 | 0 | on | off }
Specifies whether the dialog window displays the border window chrome. This feature is only available when a dialog box is opened from a trusted application. The default is no.As of Microsoft® Internet Explorer 4.0, you can eliminate scroll bars on dialog boxes. To turn off the scroll bar, set the SCROLL attribute to false in the body element for the dialog window, or call the modal dialog box from a trusted application.Microsoft® Internet Explorer 5 allows further control over modal dialog boxes through the status and resizable values in the varOptions parameter of the IHTMLWindow2::showModalDialog method. Turn off the status bar by calling the dialog box from a trusted application, such as Microsoft® Visual Basic® or an HTML Application (HTA), or from a trusted window, such as a trusted modal dialog box. These applications are considered to be trusted because they use Microsoft® Internet Explorer interfaces instead of the browser. Any dialog box generated from a trusted source has the status bar turned off by default. Resizing is turned off by default, but you can turn it on by specifying resizable=yes in the varOptions string of the IHTMLWindow2::showModalDialog method.You can set the default font settings the same way you set Cascading Style Sheets (CSS) attributes (for example, "font:3;font-size:4"). To define multiple font values, use multiple font attributes.The default unit of measure for dialogHeight and dialogWidth in Internet Explorer 4.0 is the em; in Internet Explorer 5 it is the pixel. The value can be an integer or floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For consistent results, specify the dialogHeight and dialogWidth in pixels when designing modal dialog boxes.Although a user can manually adjust the height of a dialog box to a smaller value —provided the dialog box is resizable —the minimum dialogHeight you can specify is 100 pixels.To override center, even though the default for center is yes, you can specify either dialogLeft and/or dialogTop.
oRs.AbsolutePage = page
for recordNo = 1 to oRs.PageSize
注意大小写。
不过有补救办法:
childWindow = window.open(...),可以实现与模态对话框同样的功能(也就是说对父窗口的onfocus事件进行响应).同时也可以在父窗口中得到子窗口中的数据.
仔细想想吧!
<script language=javascript>
var B = null
function windowOpener()
{
if (! B || B.closed)
{
B = window.open (url,"title",...);
}else
{
B.focus();
}
}
function tofocus()
{
if (!B || B.closed)
{
window.focus();
return;
}else
{
B.focus();
}
}
</script>
在A中加入对focus的响应:
<body onfocus="javascript:tofocus()"...>
这样,如果有子窗口B , 则B总被 focus, 这样就实现了模态对话框的功能。
关于返回值的问题可以这样实现:
在B中加入:
A = window.opener; //get reference of the parent window
然后可以把你的返回值记录到A中的某一个对象中:
A.document.all("text").value = returnValue;Over!
<base target="_self" />
这样翻页就不会弹出新页面了