<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[弹出窗口位置]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Thu, 02 Nov 2006 02:43:16 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	第一步：把如下代码加入到&lt;head&gt;区域中<br/><br/>&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br/>&lt;!-- Begin<br/>function popupPage(l, t, w, h) {<br/>var windowprops = &quot;location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes&quot; +<br/>&quot;,left=&quot; + l + &quot;,top=&quot; + t + &quot;,width=&quot; + w + &quot;,height=&quot; + h;<br/><br/>var URL = &quot;link.htm&quot;;<br/>popup = window.open(URL,&quot;MenuPopup&quot;,windowprops);<br/>}<br/>// &nbsp;End --&gt;<br/>&lt;/script&gt;<br/><br/><br/>第二步：把如下代码加入到&lt;body&gt;区域中<br/><br/>&lt;center&gt;<br/>&lt;table&gt;<br/>&lt;tr&gt;<br/><br/>&lt;td&gt;<br/>&lt;form name=popupform&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pre&gt;自己设定弹出窗口的大小及位置&lt;br&gt;<br/>左边距: &nbsp;&lt;input type=text name=left size=2 maxlength=4&gt; 象素<br/>石边距: &nbsp;&lt;input type=text name=top size=2 maxlength=4&gt; 象素<br/><br/>窗口宽: &nbsp;&lt;input type=text name=width size=2 maxlength=4&gt; 象素<br/>窗口高: &nbsp;&lt;input type=text name=height size=2 maxlength=4&gt; 象素<br/>&lt;/pre&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;center&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=button value=&quot;打开窗口&quot; onClick=&quot;popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)&quot;&gt;<br/>&lt;/center&gt;<br/>&lt;/form&gt;<br/>&lt;/td&gt;<br/><br/>&lt;/tr&gt;<br/>&lt;/table&gt;<br/>&lt;/center&gt;<br/><br/><br/><br/><br/><br/><br/><br/><br/>另<br/><br/><br/>&lt;input type=button onclick=&quot;PopWindow()&quot; id=&quot;PopButton&quot;&gt;<br/>&lt;script&gt;<br/>function PopWindow()<br/>{<br/> window.open(&quot;about:blank&quot;,&quot;&quot;,&quot;top=&quot;+GetDefineY(PopButton)+&quot; left=&quot;+GetDefineX(PopButton)+&quot; width=100 height=100&quot;);<br/>}<br/>function GetDefineX(ObjectID)<br/>{<br/> var iPositionX=ObjectID.offsetLeft;<br/> while(ObjectID=ObjectID.offsetParent)<br/> {<br/> &nbsp;iPositionX+=ObjectID.offsetLeft;<br/> }<br/> return iPositionX;<br/>}<br/>function GetDefineY(ObjectID)<br/>{<br/> var iPositionY=ObjectID.offsetTop;<br/> while(ObjectID=ObjectID.offsetParent)<br/> {<br/> &nbsp; &nbsp; iPositionY+=ObjectID.offsetTop;<br/> }<br/> return iPositionY;<br/>}<br/>&lt;/script&gt;<br/><br/><br/>×××××××××××××××××××××××××××××××××××××××××××<br/><br/>或者<br/>&lt;body onLoad=&quot;MM_openBrWindow(&#039;pop.asp&#039;,&#039;短消息&#039;,&#039;scrollbars=yes,resizable=yes,width=250,height=342,left=100,top=100&#039;)&quot;&gt; <br/><br/>修改left和top为你想要的位置即可!<br/><br/>Tags - <a href="http://www.dzhope.com/tags/%25E5%25BC%25B9%25E5%2587%25BA%25E7%25AA%2597%25E5%258F%25A3/" rel="tag">弹出窗口</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 弹出窗口位置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>