<?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>北京php培训讲师方龙 &#187; javascript学习</title>
	<atom:link href="http://www.skyleft.com/index.php/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.skyleft.com</link>
	<description>专注于php培训及相关技术的学习和研究</description>
	<lastBuildDate>Thu, 27 Oct 2011 10:20:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>js去除左右空格函数</title>
		<link>http://www.skyleft.com/index.php/peixun/php-693.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-693.html#comments</comments>
		<pubDate>Fri, 26 Aug 2011 08:26:11 +0000</pubDate>
		<dc:creator>fanglor</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[js去除左右空格]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=693</guid>
		<description><![CDATA[JS自身没有 trim这样的函数 来去除左右空格 ，必须通过自定义函数来实现这样的功能了。 代码如下: function trim&#40;str&#41;&#123; return str.replace&#40;/(^\s*)&#124;(\s*$)/g, &#34;&#34;&#41;; &#125;]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-693.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript怎样去掉字符串左右空格?</title>
		<link>http://www.skyleft.com/index.php/peixun/php-644.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-644.html#comments</comments>
		<pubDate>Fri, 22 Jul 2011 06:53:46 +0000</pubDate>
		<dc:creator>fanglor</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[js去空格]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=644</guid>
		<description><![CDATA[javascript 实现TRIM功能 去掉字符串左右空格函数 &#160; &#60;SCRIPT LANGUAGE=&#34;JavaScript&#34;&#62; // Trim() , Ltrim() , RTrim() String.prototype.Trim = function&#40;&#41; &#123; return this.replace&#40;/(^\s*)&#124;(\s*$)/g, &#34;&#34;&#41;; &#125; String.prototype.LTrim = function&#40;&#41; &#123; return this.replace&#40;/(^\s*)/g, &#34;&#34;&#41;; &#125; String.prototype.RTrim = function&#40;&#41; &#123; return this.replace&#40;/(\s*$)/g, &#34;&#34;&#41;; &#125; &#160; &#60;/SCRIPT&#62; &#160; str = str.replace&#40;/[ ]/g,&#34;&#34;&#41;; //替换所有空格 str.replace&#40;/(^\s*)&#124;(\s*$)/g, &#34;&#34;&#41;; //去掉左右空格 str.replace&#40;/(\s*$)/g, &#34;&#34;&#41;; //去掉右空格 str.replace&#40;/(^\s*)/g, &#34;&#34;&#41;; //去掉左空格]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-644.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>js中怎么判断窗口是否被iframe包含？</title>
		<link>http://www.skyleft.com/index.php/peixun/php-604.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-604.html#comments</comments>
		<pubDate>Fri, 10 Jun 2011 08:32:45 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=604</guid>
		<description><![CDATA[&#60;pre lang=&#8221;javascript&#8221;&#62; if (parent != self) { alert (&#8216;我被iframe包含了，我不干！&#8217;); } &#60;/pre&#62;]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-604.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>js获取地址栏参数</title>
		<link>http://www.skyleft.com/index.php/peixun/php-569.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-569.html#comments</comments>
		<pubDate>Fri, 13 May 2011 07:50:12 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[js获取地址栏参数]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=569</guid>
		<description><![CDATA[怎样用js获取地址栏参数？]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-569.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>smarty中怎么避免与js冲突</title>
		<link>http://www.skyleft.com/index.php/peixun/php-520.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-520.html#comments</comments>
		<pubDate>Sat, 30 Apr 2011 13:47:41 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[smarty]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=520</guid>
		<description><![CDATA[如果 smarty的标签跟js的语法冲突你会怎么办呢？ 一般，冲突的地方注要有两个，一个是 smarty 的定界符 {} 与 js 语法的{}冲突 ，第二个是 jquery 的 $ 与smarty 变量的 $冲突 。 第一个问题 可以把 smarty 的定界符设成 $tpl-&#62;left_delimiter = '&#60;{'; $tpl-&#62;right_delimiter = '}&#62;'; 第二个问题可以用 smarty 的 literal 处理，可以把 JS代码 包含在 {literal}{/literal} 之间就可以了。 &#60;&#123;literal&#125;&#62; $ &#40; function &#40;&#41; &#123; alert &#40;'北京php培训'&#41;&#125; &#41;; &#60;&#123;/literal&#125;&#62;]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-520.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>设为首页，添加到收藏夹JS代码，兼容IE，FF，已测试</title>
		<link>http://www.skyleft.com/index.php/peixun/php-491.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-491.html#comments</comments>
		<pubDate>Sat, 09 Apr 2011 07:00:04 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[JS添加到收藏夹]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=491</guid>
		<description><![CDATA[JS 设为首页代码 ，添加到收藏夹代码 ，已测试！ addFavorite 点击链接下载]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-491.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>javascript IE与FF中的兼容写法</title>
		<link>http://www.skyleft.com/index.php/peixun/php-471.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-471.html#comments</comments>
		<pubDate>Wed, 23 Feb 2011 03:18:37 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[javascript IE与FF中的兼容写法]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=471</guid>
		<description><![CDATA[png透明 AlphaImageLoader filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( enabled=bEnabled,sizingMethod=sSize,src=sURL) enabled：可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true：默认值。滤镜激活。false：滤镜被禁止。 sizingMethod：可选项。字符串(String)。设置或检索滤镜作用的对象的图片在对象容器边界内的显示方式。crop：剪切图片以适应对象尺寸。image：默认值。增大或减小对象的尺寸边界以适应图片的尺寸。scale：缩放图片以适应对象的尺寸边界。 src：必选项。字符串(String)。使用绝对或相对 url 地址指定背景图像。假如忽略此参数，滤镜将不会作用。 firefox不能对innerText支持 firefox支持innerHTML但却不支持innerText，它支持textContent来实现innerText，不过默认把多余的空格也保留了。如果不用textContent，如果字符串里面不包含HTML代码也可以用innerHTML代替。 禁止选取网页内容 在IE中一般用js： obj.onselectstart=function&#40;&#41;&#123;return false;&#125; 而firefox用CSS:-moz-user-select:none 滤镜的支持(例：透明滤镜) IE:filter：alpha(opacity=10); firefox：-moz-opacity:.10; 捕获事件 IE： obj.setCapture&#40;&#41; 、obj.releaseCapture&#40;&#41; Firefox： document.addEventListener&#40;”mousemove”,mousemovefunction,true&#41;; document.removeEventListener&#40;”mousemove”,mousemovefunction,true&#41;; 获取鼠标位置 IE:event.clientX、event.clientY firefox：需要事件函数传递事件对象 obj.onmousemove=function(ev){ X= ev.pageX;Y=ev.pageY; } DIV等元素的边界问题 比如：设置一个div的CSS:：{width:100px;height:100px;border:#000000 1px solid;} IE中：div的宽度（包括边框宽度）：100px，div的高度（包括边框宽度）：100px； 而firefox：div的宽度（包括边框宽度）：102px，div的高度（包括边框宽度）：102px； 判断浏览器类型 var isIE=document.all ? true : false; 我写了一个变量，如果支持document.all语法那么isIE=true，否则isIE=false 在不同浏览器下的CSS处理 一般可以用!important来优先使用css语句（仅firefox支持） 比如：{border-width:0px!important;border-width:1px;} 在firefox下这个元素是没有边框的，在IE下边框宽度是1px document.formName.item(”itemName”) 问题 问题说明：IE下，可以使用 document.formName.item(”itemName”) [...]]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-471.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JS调用打印机</title>
		<link>http://www.skyleft.com/index.php/peixun/php-402.html</link>
		<comments>http://www.skyleft.com/index.php/peixun/php-402.html#comments</comments>
		<pubDate>Sun, 26 Sep 2010 01:13:42 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[北京php培训]]></category>
		<category><![CDATA[JS调用打印机]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=402</guid>
		<description><![CDATA[JS如何调用打印机]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/peixun/php-402.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎么用JS实现动态时钟效果</title>
		<link>http://www.skyleft.com/index.php/javascript/php-234.html</link>
		<comments>http://www.skyleft.com/index.php/javascript/php-234.html#comments</comments>
		<pubDate>Thu, 22 Jul 2010 05:30:48 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[js动态时间]]></category>
		<category><![CDATA[js时钟效果]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=234</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#62; &#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62; &#60;head&#62; &#60;title&#62;JS的动态时间效果 &#60;/title&#62; &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=gbk&#8221; /&#62; &#60;meta name=&#8221;generator&#8221; content=&#8221;editplus&#8221; /&#62; &#60;meta name=&#8221;author&#8221; content=&#8221;fanglor&#8221; /&#62; &#60;meta name=&#8221;keywords&#8221; content=&#8221;js时钟,js动态时间,js时钟效果&#8221; /&#62; &#60;meta name=&#8221;description&#8221; content=&#8221;一个用JS实现的时时变化的动态时钟效果&#8221; /&#62; &#60;/head&#62; &#60;body&#62; &#60;span id=&#8221;time&#8221;&#62;&#60;/span&#62; &#60;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&#62; window.onload=function (){ setInterval(&#8220;document.getElementById(&#8216;time&#8217;).innerHTML=new Date().toLocaleString()+&#8217; 星期&#8217;+'日一二三四五六&#8217;.charAt(new Date().getDay());&#8221;,1000); } &#60;/script&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/javascript/php-234.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FCK常用Js,获取FCK内容,统计FCK字数,向FCK写入指定代码</title>
		<link>http://www.skyleft.com/index.php/javascript/php-176.html</link>
		<comments>http://www.skyleft.com/index.php/javascript/php-176.html#comments</comments>
		<pubDate>Fri, 25 Jun 2010 16:55:44 +0000</pubDate>
		<dc:creator>php培训讲师</dc:creator>
				<category><![CDATA[javascript学习]]></category>
		<category><![CDATA[fck获取编辑内容]]></category>
		<category><![CDATA[北京php培训]]></category>

		<guid isPermaLink="false">http://www.skyleft.com/?p=176</guid>
		<description><![CDATA[content相当于你例子中的FCKeditor1。//获取格式化的编辑器内容 function getEditorContents(){ var oEditor = FCKeditorAPI.GetInstance(&#8220;content&#8221;); alert(oEditor.GetXHTML(true)); } //向编辑器插入指定代码 function insertHTMLToEditor(codeStr){ var oEditor = FCKeditorAPI.GetInstance(&#8220;content&#8221;); if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG){ oEditor.InsertHtml(codeStr); }else{ return false; } } //统计编辑器中内容的字数 function getLength(){ var oEditor = FCKeditorAPI.GetInstance(&#8220;content&#8221;); var oDOM = oEditor.EditorDocument; var iLength ; if(document.all){ iLength = oDOM.body.innerText.length; }else{ var r = oDOM.createRange(); r.selectNodeContents(oDOM.body); iLength = r.toString().length; } alert(iLength); } //执行指定动作 function ExecuteCommand(commandName){ var oEditor = FCKeditorAPI.GetInstance(&#8220;content&#8221;) ; oEditor.Commands.GetCommand(commandName).Execute() ; } //设置编辑器中内容 function SetContents(codeStr){ var oEditor = FCKeditorAPI.GetInstance(&#8220;content&#8221;) ; oEditor.SetHTML(codeStr) ; }]]></description>
		<wfw:commentRss>http://www.skyleft.com/index.php/javascript/php-176.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

