<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/js-javascript-mask-layer/</link>
<title><![CDATA[js javascript弹出遮罩层,弹出半透明的遮罩层并显示注册文本框内容]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[前端开发]]></category>
<pubDate>Fri, 10 Sep 2010 07:53:46 +0000</pubDate> 
<guid>https://www.heckjj.com/js-javascript-mask-layer/</guid> 
<description>
<![CDATA[ 
	<textarea name="code" class="html" rows="15" cols="100">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;
&lt;title&gt;弹出提示&lt;/title&gt;
&lt;style&gt;
* &#123;margin:0;padding:0;font-size:12px;&#125;
html,body &#123;height:100%;width:100%;&#125;
#content &#123;background:#FFFFFF;padding:30px;height:100%;&#125;
#content a &#123;font-size:30px;color:#369;font-weight:700;&#125;
#alert &#123;border:1px solid #369;width:300px;height:150px;background:#e2ecf5;z-index:1000;position:absolute;display:none;&#125;
#alert h4 &#123;height:20px;background:#369;color:#fff;padding:5px 0 0 5px;&#125;
#alert h4 span &#123;float:left;&#125;
#alert h4 span#close &#123;margin-left:210px;font-weight:500;cursor:pointer;&#125;
#alert p &#123;padding:12px 0 0 30px;&#125;
#alert p input &#123;width:120px;margin-left:20px;&#125;
#alert p input.myinp &#123;border:1px solid #ccc;height:16px;&#125;
#alert p input.sub &#123;width:60px;margin-left:30px;&#125;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&nbsp;&nbsp; &gt;
&lt;div id=&quot;content&quot;&gt;
&lt;a href=&quot;#&quot;&gt;注册&lt;/a&gt;
&lt;/div&gt;
&lt;div id=&quot;alert&quot;&gt;
&lt;h4&gt;&lt;span&gt;现在注册&lt;/span&gt;&lt;span id=&quot;close&quot;&gt;关闭&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;label&gt; 用户名&lt;/label&gt;&lt;input type=&quot;text&quot; class=&quot;myinp&quot; onmouseover=&quot;this.style.border=&#039;1px solid #f60&#039;&quot; onfoucs=&quot;this.style.border=&#039;1px solid #f60&#039;&quot; onblur=&quot;this.style.border=&#039;1px solid #ccc&#039;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;label&gt; 密　码&lt;/label&gt;&lt;input type=&quot;password&quot; class=&quot;myinp&quot; onmouseover=&quot;this.style.border=&#039;1px solid #f60&#039;&quot; onfoucs=&quot;this.style.border=&#039;1px solid #f60&#039;&quot; onblur=&quot;this.style.border=&#039;1px solid #ccc&#039;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;注册&quot; class=&quot;sub&quot; /&gt;&lt;input type=&quot;reset&quot; value=&quot;重置&quot; class=&quot;sub&quot; /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var myAlert = document.getElementById(&quot;alert&quot;);
var reg = document.getElementById(&quot;content&quot;).getElementsByTagName(&quot;a&quot;)[0];
var mClose = document.getElementById(&quot;close&quot;);
reg.onclick = function()
&#123;
myAlert.style.display = &quot;block&quot;;
myAlert.style.position = &quot;absolute&quot;;
myAlert.style.top = &quot;50%&quot;;
myAlert.style.left = &quot;50%&quot;;
myAlert.style.marginTop = &quot;-75px&quot;;
myAlert.style.marginLeft = &quot;-150px&quot;;

mybg = document.createElement(&quot;div&quot;);
mybg.setAttribute(&quot;id&quot;,&quot;mybg&quot;);
mybg.style.background = &quot;#000&quot;;
mybg.style.width = &quot;100%&quot;;
mybg.style.height = &quot;100%&quot;;
mybg.style.position = &quot;absolute&quot;;
mybg.style.top = &quot;0&quot;;
mybg.style.left = &quot;0&quot;;
mybg.style.zIndex = &quot;500&quot;;
mybg.style.opacity = &quot;0.3&quot;;
mybg.style.filter = &quot;Alpha(opacity=30)&quot;;
document.body.appendChild(mybg);

document.body.style.overflow = &quot;hidden&quot;;
&#125;

mClose.onclick = function()
&#123;
myAlert.style.display = &quot;none&quot;;
mybg.style.display = &quot;none&quot;;
&#125;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea><br/>Tags - <a href="https://www.heckjj.com/tags/js/" rel="tag">js</a> , <a href="https://www.heckjj.com/tags/javascript/" rel="tag">javascript</a> , <a href="https://www.heckjj.com/tags/%25E5%25BC%25B9%25E5%2587%25BA%25E9%2581%25AE%25E7%25BD%25A9%25E5%25B1%2582/" rel="tag">弹出遮罩层</a> , <a href="https://www.heckjj.com/tags/%25E5%25BC%25B9%25E5%2587%25BA%25E5%258D%258A%25E9%2580%258F%25E6%2598%258E%25E7%259A%2584%25E9%2581%25AE%25E7%25BD%25A9%25E5%25B1%2582/" rel="tag">弹出半透明的遮罩层</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/js-javascript-mask-layer/#blogcomment</link>
<title><![CDATA[[评论] js javascript弹出遮罩层,弹出半透明的遮罩层并显示注册文本框内容]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/js-javascript-mask-layer/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>