<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>前端之路 &#187; js</title>
	<atom:link href="http://www.simcn.com/tag/js/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simcn.com</link>
	<description>网站开发, 前端开发, 高性能前端开发</description>
	<lastBuildDate>Tue, 27 Mar 2012 04:26:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>延时弹出层控制</title>
		<link>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6</link>
		<comments>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6#comments</comments>
		<pubDate>Tue, 01 Mar 2011 02:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[延时控制]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=390</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html;charset=UTF-8&#34; /&#62; &#60;title&#62;延时弹出层控制&#60;/title&#62; &#60;script type=&#34;text/javascript&#34;&#62; var isPopLayer = false; var time = null; //打开弹出层 function poplay(){ if(!isPopLayer){ //延迟1秒显示层 time = setTimeout(function(){ document.getElementById('poplay').style.display = 'block'; clplay(); isPopLayer = true; }, 1000); } } //鼠标移走时执行 function clplay(){ clearTimeout(time); time = null; } //关闭弹出层 [...]]]></description>
		<wfw:commentRss>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>直接使用网页进行打印</title>
		<link>http://www.simcn.com/web-print_js-print_css-print</link>
		<comments>http://www.simcn.com/web-print_js-print_css-print#comments</comments>
		<pubDate>Tue, 14 Sep 2010 08:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=311</guid>
		<description><![CDATA[网页打印内容有很多便利的地方，而且不需要安装其他软件 会打印机页眉与页脚并且在有些在程序中不好去掉. &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html;charset=UTF-8&#34; /&#62; &#60;title&#62;&#60;/title&#62; &#60;style type=&#34;text/css&#34; media=&#34;print&#34;&#62; *{margin:0; padding:0;} p{ background-color:#333; color:#fff; margin:1mm;} .page-break-after{page-break-after : always} button{display:none;} &#60;/style&#62; &#60;script type=&#34;text/javascript&#34;&#62; function webprint(){ window.print(); } &#60;/script&#62; &#60;/head&#62; &#60;body&#62; &#60;p&#62;1&#60;/p&#62; &#60;div class=&#34;page-break-after&#34;&#62;&#38;nbsp;&#60;/div&#62; &#60;p&#62;2&#60;/p&#62; &#60;div class=&#34;page-break-after&#34;&#62;&#38;nbsp;&#60;/div&#62; &#60;p&#62;3&#60;/p&#62; &#60;button onclick=&#34;webprint()&#34;&#62;print&#60;/button&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
		<wfw:commentRss>http://www.simcn.com/web-print_js-print_css-print/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用a模拟submit按钮事件</title>
		<link>http://www.simcn.com/a_submit_event</link>
		<comments>http://www.simcn.com/a_submit_event#comments</comments>
		<pubDate>Thu, 02 Sep 2010 08:47:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[模拟]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=306</guid>
		<description><![CDATA[优点：样式可控制性强，可以加不同的状态，兼容ie6. 可扩展性好 缺点: 需要增加js，如果禁用ＪＳ可能不能使用.  需要多增加一个a标签。 提交提交 如果直接隐藏在from 中有多个表单无件时无效，求解 .btn_a_submit{ position:absolute; left:-1000px; top:0px;}]]></description>
		<wfw:commentRss>http://www.simcn.com/a_submit_event/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>js调试函数</title>
		<link>http://www.simcn.com/js_debug</link>
		<comments>http://www.simcn.com/js_debug#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:13:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2010/02/js%e8%b0%83%e8%af%95%e5%87%bd%e6%95%b0/</guid>
		<description><![CDATA[参考php的debug函数修改了一下JS版的。 firebug 下使用控制台 ie使用 alert弹出 /** * 内部调试 **/ function debug(v){ if(window.console &#038;&#038; window.console.log){ window.console.log(v); }else{ alert(v); } }]]></description>
		<wfw:commentRss>http://www.simcn.com/js_debug/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>同事提供的题目(Taobao)</title>
		<link>http://www.simcn.com/javascript-taobao-color-chang</link>
		<comments>http://www.simcn.com/javascript-taobao-color-chang#comments</comments>
		<pubDate>Sat, 10 Oct 2009 08:10:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[转化]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2009/10/%e5%90%8c%e4%ba%8b%e6%8f%90%e4%be%9b%e7%9a%84%e9%a2%98%e7%9b%aetaobao/</guid>
		<description><![CDATA[alert(toRGB("#0000FF")); //返回rgb(0,0,255) alert(toRGB("#00F")); //返回rgb(0,0,255) alert(toRGB("#FF0000")); //返回rgb(255,0,0) alert(toRGB("taobao")); //返回rgb(taobao) alert(toRGB("#G00")); //返回rgb(#G00) function toRGB(color){ //第有一字符有#号 if(color.indexOf('#')==0){ //判断长度 if(color.length==4){ //取出字母 r = color.match(/([\da-z])/ig); }else{ //取出字母 r = color.match(/([\da-z]{2})/ig); } //返回 return 'rgb('+formatHEX(r) +')'; }else{ return 'rgb('+color+')'; } } //转化色彩数组转为10进制 function formatHEX(x){ var html=[]; for(i in x){ html[i] = parseInt(x[i], 16); if(isNaN(html[i])){ return '#'+x.join(''); } } return html.join(','); }]]></description>
		<wfw:commentRss>http://www.simcn.com/javascript-taobao-color-chang/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编码问题导致Javascript报错.</title>
		<link>http://www.simcn.com/js-c-error</link>
		<comments>http://www.simcn.com/js-c-error#comments</comments>
		<pubDate>Thu, 20 Aug 2009 03:31:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=193</guid>
		<description><![CDATA[问题: 报JS标签没有关闭. 原因: JS没有修改过且线上版本也是正常的,但在测试环境下. 解决: 跟踪了很久, 变量, 常量, 数组是正常了. 后来看到页面上JS输出的内容乱码. 这里想到可能是 页面编码 与 JS编码不同导致的问题. 程序的页面是GB2312的, 但我们写的JS都是UTF8的&#8230;]]></description>
		<wfw:commentRss>http://www.simcn.com/js-c-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery 处理表单元素得到焦点与失去焦点</title>
		<link>http://www.simcn.com/jquery-onblur-onfocus</link>
		<comments>http://www.simcn.com/jquery-onblur-onfocus#comments</comments>
		<pubDate>Fri, 19 Jun 2009 05:35:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[onblur]]></category>
		<category><![CDATA[onfocus]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2009/06/jquery-%e5%a4%84%e7%90%86%e8%a1%a8%e5%8d%95%e5%85%83%e7%b4%a0%e5%be%97%e5%88%b0%e7%84%a6%e7%82%b9%e4%b8%8e%e5%a4%b1%e5%8e%bb%e7%84%a6%e7%82%b9/</guid>
		<description><![CDATA[/*处理表单元素得到焦点与失去焦点*/ jQuery('.input_text').focus(function(){ var i = jQuery(this).attr('init_val'); var t = jQuery(this).attr('user_val'); if(i==undefined){ //记录初始值 jQuery(this).attr('init_val',jQuery(this).val()); jQuery(this).val(''); }else if(i==jQuery(this).val()){ jQuery(this).val(''); }else{ jQuery(this).val(t); } jQuery(this).css('color','#333'); }).blur(function(){ i = jQuery(this).attr('init_val'); if(jQuery(this).val()==''&#124;&#124; jQuery(this).val()==i){ jQuery(this).css('color','#bbb'); jQuery(this).val(jQuery(this).attr('init_val')); }else{ jQuery(this).attr('user_val',jQuery(this).val()); jQuery(this).css('color','#333'); } });]]></description>
		<wfw:commentRss>http://www.simcn.com/jquery-onblur-onfocus/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用于解决iframe自适应高度</title>
		<link>http://www.simcn.com/iframe-auto-height</link>
		<comments>http://www.simcn.com/iframe-auto-height#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:43:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2009/06/%e7%94%a8%e4%ba%8e%e8%a7%a3%e5%86%b3iframe%e8%87%aa%e9%80%82%e5%ba%94%e9%ab%98%e5%ba%a6/</guid>
		<description><![CDATA[function reinitIframe(){ var iframe = document.getElementById("frame_content"); try{ var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = Math.max(bHeight, dHeight); iframe.height = height; }catch (ex){} } window.setInterval("reinitIframe()", 1000); 在新浪站上看到的不错，收藏下. 目前我们自己常用的 调用页面. 被调用页面 window.onload = function(){ var height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); parent.call_frame(height) }]]></description>
		<wfw:commentRss>http://www.simcn.com/iframe-auto-height/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今天写的一个练习的js类模式</title>
		<link>http://www.simcn.com/oo-javascript</link>
		<comments>http://www.simcn.com/oo-javascript#comments</comments>
		<pubDate>Wed, 10 Jun 2009 11:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[滚动]]></category>

		<guid isPermaLink="false">http://www.simcn.com/2009/06/%e4%bb%8a%e5%a4%a9%e5%86%99%e7%9a%84%e4%b8%80%e4%b8%aa%e7%bb%83%e4%b9%a0%e7%9a%84js%e7%b1%bb%e6%a8%a1%e5%bc%8f/</guid>
		<description><![CDATA[suspendcode="" document.write(suspendcode); var hp = { lastScrollY : 0, byID : function(_id){ return document.getElementById(_id);}, init : function(id){ var st = document.documentElement.scrollTop &#124;&#124; document.body.scrollTop; percent=.1*(st-this.lastScrollY); if(percent>0){ percent=Math.ceil(percent); }else{ percent=Math.floor(percent); } this.byID(id).style.top=parseInt(this.byID(id).style.top)+percent+"px"; this.lastScrollY=this.lastScrollY+percent; return id; }, generate : function(){ }, start : function(id){ window.setInterval("hp.init(’"+id+"’)",1); } }; #hp.start(’lovexin1′);]]></description>
		<wfw:commentRss>http://www.simcn.com/oo-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>强烈推荐：240多个jQuery插件</title>
		<link>http://www.simcn.com/%e5%bc%ba%e7%83%88%e6%8e%a8%e8%8d%90%ef%bc%9a240%e5%a4%9a%e4%b8%aajquery%e6%8f%92%e4%bb%b6</link>
		<comments>http://www.simcn.com/%e5%bc%ba%e7%83%88%e6%8e%a8%e8%8d%90%ef%bc%9a240%e5%a4%9a%e4%b8%aajquery%e6%8f%92%e4%bb%b6#comments</comments>
		<pubDate>Thu, 19 Feb 2009 07:37:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=133</guid>
		<description><![CDATA[概述 jQuery 是继 prototype 之后又一个优秀的 Javascript 框架。其宗旨是—写更少的代码,做更多的事情。它是轻量级的 js 库(压缩后只有21k) ，这是其它的 js 库所不及的，它兼容 CSS3，还兼容各种浏览器（IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+）。 jQuery 是一个快速的，简洁的 javaScript 库，使用户能更方便地处理 HTML documents、events、实现动画效果，并且方便地为网站提供 AJAX 交互。 jQuery 还有一个比较大的优势是，它的文档说明很全，而且各种应用也说得很详细，同时还有许多成熟的插件可供选择。 jQuery 能够使用户的 html 页保持代码和 html 内容分离，也就是说，不用再在 html 里面插入一堆js来调用命令了，只需定义 id 即可。今天在Kollermedia.at上发现了一篇JQuery插件列表的文章，特推荐如下。 文件上传(File upload) Ajax File Upload. jQUploader. Multiple File Upload plugin. jQuery File Style. Styling an [...]]]></description>
		<wfw:commentRss>http://www.simcn.com/%e5%bc%ba%e7%83%88%e6%8e%a8%e8%8d%90%ef%bc%9a240%e5%a4%9a%e4%b8%aajquery%e6%8f%92%e4%bb%b6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

