屏幕右上角的“显示弹出窗口" [英] Display Popup window in Right-Hand Corner of the Screen

查看:64
本文介绍了屏幕右上角的“显示弹出窗口"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

如何在屏幕右侧显示弹出窗口.
示例代码:

Hi!

how to display popup window at the right hand side of the screen.
Sample Code:

function ShowCallSummary()
			{
			    var program = "<%= hidFkProgramGlCode.ClientID.ToString()%>"; 
				var phase = '<%= hidPhaseNo.ClientID %>';
				var agent = '<%= hidAgentGlCode.ClientID %>';
				
				var myWindow = window.self;
				var WinSettings = "center:no; resizable:no; dialogHeight:190px; dialogWidth:120px; edge:Raised; help:No; status:No;"
				var programCode = document.getElementById(program).value;
				var phaseNo = document.getElementById(phase).value;
				var agentCode = document.getElementById(agent).value;
				var myArg = new Array(programCode, phaseNo, agentCode);
				window.showModalDialog("CallSummary.aspx?program=" + programCode + "&phase=" + phaseNo + "&agent=" + agentCode, myWindow, WinSettings);
			}



请尽快给我答复.

谢谢&问候,
Minal Shah.



Pls reply me as soon as possible.

Thanks & Regards,
Minal Shah.

推荐答案

您需要使用:
dialogLeft:sXPos
设置对话框窗口相对于桌面左上角的左侧位置.
dialogTop:sYPos
设置对话框窗口相对于桌面左上角的顶部位置

在这里阅读更多详细信息:
http://msdn.microsoft.com/en-us/library/ms536759(VS .85).aspx [ ^ ]

现在,我想在这里向您介绍有关Code Project的三件事:
1.不要写这样的东西:请尽快回复我"-看起来很粗鲁,这里的人会在他们方便的时候提供帮助.
2.不要用文字说话.使用完整的单词.它看起来并不专业.
3.如果答案可以帮助您并解决您的疑问,请养成将其作为已接受答案的习惯.
You need to use:
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

Read here for more details:
http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx[^]

Now 3 things I would like to convey you about Code Project here:
1. Don''t write something like:"Pls reply me as soon possible" - It looks rude and people here help at their convenience.
2. Don''t use text speak. Use full words. It does not look professional.
3. If an answer helps you and resolves your doubt, make a habit of making it as Accepted Answer.


这篇关于屏幕右上角的“显示弹出窗口"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆