<?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; javascript</title>
	<atom:link href="http://webdesign.guoshuang.com/archives/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://webdesign.guoshuang.com</link>
	<description>没有样式就是最好的样式</description>
	<lastBuildDate>Sat, 28 Mar 2009 01:25:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>动态嵌入 javascript 和 css</title>
		<link>http://webdesign.guoshuang.com/archives/6165</link>
		<comments>http://webdesign.guoshuang.com/archives/6165#comments</comments>
		<pubDate>Tue, 26 Feb 2008 02:22:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://webdesign.guoshuang.com/archives/2008-02-26-6165.html</guid>
		<description><![CDATA[动态嵌入 css 代码
var headID = document.getElementsByTagName(&#8220;head&#8221;)[0];
var cssNode = document.createElement(&#8216;link&#8217;);
cssNode.type = &#8216;text/css&#8217;;
cssNode.rel = &#8217;stylesheet&#8217;;
cssNode.href = &#8216;FireFox.css&#8217;;
cssNode.media = &#8217;screen&#8217;;
headID.appendChild(cssNode);
动态嵌入 javascript 代码
var headID = document.getElementsByTagName(&#8220;head&#8221;)[0];
var newScript = document.createElement(&#8217;script&#8217;);
newScript.type = &#8216;text/javascript&#8217;;
newScript.src = &#8216;http://www.somedomain.com/somescript.js&#8217;;
headID.appendChild(newScript);
Ajax 就加入 javascript
function ajaxObject(url, callbackFunction) {
var that=this;
this.updating = false;
this.update = function(passData,postMethod) {
if (that.updating==true) { return false; }
that.updating=true;
var AJAX = null;
if (window.XMLHttpRequest) {
AJAX=new XMLHttpRequest();
} else {
AJAX=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);
}
if (AJAX==null) {
return false;
} else {
AJAX.onreadystatechange [...]]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/6165/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 个 javascript 滑动菜单效果及代码</title>
		<link>http://webdesign.guoshuang.com/archives/5770</link>
		<comments>http://webdesign.guoshuang.com/archives/5770#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5770</guid>
		<description><![CDATA[都是些不错的javascript 滑动菜单效果，还有源代码可供下载。
Deziner Folio
Moofx
Stickman Labs 
Chris Esler
Aariadne 
Artviper
Nyokiglitter 
Portalzine
jQuery
 Solutoire
 点击这里打开新窗口浏览此网页 
]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5770/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash form</title>
		<link>http://webdesign.guoshuang.com/archives/5754</link>
		<comments>http://webdesign.guoshuang.com/archives/5754#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5754</guid>
		<description><![CDATA[// ===============================================
// Augment TextField Class
// ===============================================
TextField.prototype.onKeyDown = function () {
  if (Key.getCode() == Key.ENTER
      &#038;&#038; this.pressedOnce == undefined
      &#038;&#038; this.isFocused()) {
    this.onSubmit();
    this.pressedOnce = true;
  }
};
TextField.prototype.onKeyUp = function () {
  if (Key.getCode() == Key.ENTER) {
  [...]]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5754/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash xml 方法、属性</title>
		<link>http://webdesign.guoshuang.com/archives/5722</link>
		<comments>http://webdesign.guoshuang.com/archives/5722#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5722</guid>
		<description><![CDATA[flash 真变态，拿文字节点的时候还需要多走一次DOM。比如 


 
  hhh
 

这样的xml内容。用
myXML.firstChild.firstChild.firstChild.nodeName 可以得到 item
但要得到 hhh，则要再多写一个 firstChild！真变态，害我折腾了十几分钟
myXML.firstChild.firstChild.firstChild.firstChild.nodeValue 
方法比javascript要少一些，但还够用，就是罗嗦一些。

appendChild（XMLNode.appendChild 方法），attributes（XMLNode.attributes 属性），childNodes（XMLNode.childNodes 属性），cloneNode（XMLNode.cloneNode 方法），firstChild（XMLNode.firstChild 属性），hasChildNodes（XMLNode.hasChildNodes 方法），insertBefore（XMLNode.insertBefore 方法），lastChild（XMLNode.lastChild 属性），nextSibling（XMLNode.nextSibling 属性），nodeName（XMLNode.nodeName 属性），nodeType（XMLNode.nodeType 属性），nodeValue（XMLNode.nodeValue 属性），parentNode（XMLNode.parentNode 属性），previousSibling（XMLNode.previousSibling 属性），removeNode（XMLNode.removeNode 方法），toString（XMLNode.toString 方法）
]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5722/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript 颜色选择器</title>
		<link>http://webdesign.guoshuang.com/archives/5691</link>
		<comments>http://webdesign.guoshuang.com/archives/5691#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5691</guid>
		<description><![CDATA[ 点击这里打开新窗口浏览此网页 
代码很干净，来自 http://blog.inlet-media.de/colorpicker/
]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5691/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>定制自己的opera显示信息</title>
		<link>http://webdesign.guoshuang.com/archives/5674</link>
		<comments>http://webdesign.guoshuang.com/archives/5674#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5674</guid>
		<description><![CDATA[opera 地址栏，opera:config ，搜索 Language File，察看语言文件的地址。打开后可编辑。比如
-2061349988=&#8221;Welcome to Opera&#8221;
启动欢迎信息就可以改成
-2061349988=&#8221;欢迎使用郭爽的opera浏览器&#8221;

再比如修改
-1713924769=&#8221;Size&#8221;
为

-1713924769=&#8221;Sizedocument.addEventListener('load',function() {for(var i=0; document.links[i]; i++){document.links[i].target = '_blank'};var l = document.getElementsByTagName('tr');var sf=document.createElement('input'); sf.type = 'text';sf.defaultValue='Search';sf.style='margin:0 4px;float:right;'; sf.addEventListener('focus',function(){if(this.value==this.defaultValue){this.value='';}},false);sf.addEventListener('blur',function(){if(!this.value){this.value=this.defaultValue;}},false);sf.addEventListener('keyup',function(){var v=this.value;for(var i=0, li; li=l[i]; i++){var p=li.lastChild.firstChild.innerText;if(p &#038;&#038; p.indexOf(v)==-1){li.style='display: none'} else{li.style='display: table-row'}; }},false); var inp=document.createElement('input'); inp.type='button'; inp.value='Thumbnails';inp.style='float:right;';inp.addEventListener('click', function(){var b=/.(jpe?g&#124;bmp&#124;gif&#124;png&#124;ico&#124;swf&#124;flv)$/i;var f=/.(swf&#124;flv)$/i;for(var i=0, li; li=l[i]; i++){var p=li.lastChild.firstChild;var c=li.firstChild.innerText;if(li.offsetHeight!=0 &#038;&#038; p.childNodes.length100){image.height='100'};if(!image.width &#124;&#124; image.width>100){image.width='100'};image.setAttribute('style', stl);p.appendChild(image);}}}};}, false);var th=document.getElementsByTagName('th')[2];th.appendChild(inp);th.appendChild(sf); },false)&#8220;
可以为 [...]]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5674/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>opera 9.5 改动</title>
		<link>http://webdesign.guoshuang.com/archives/5644</link>
		<comments>http://webdesign.guoshuang.com/archives/5644#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5644</guid>
		<description><![CDATA[即将在2007-09-04推出的opera 9.5 改进如下：
    * New ECMAscript (i.e JavaScript) engine, which is faster and less-memory intensive. The new ECMAscript engine uses fewer resources than anything we’ve done previously.
    * Fixed thousands of bugs in Opera’s rendering engine, thus improving Opera’s compatibility with many sites.
    * Added support [...]]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5644/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>奇怪的 video sina 代码</title>
		<link>http://webdesign.guoshuang.com/archives/5640</link>
		<comments>http://webdesign.guoshuang.com/archives/5640#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5640</guid>
		<description><![CDATA[从 you.video.sina.com.cn 看到的代码


if("1"=="0")
{
	window.moveTo(0, 0);
	window.resizeTo(window.screen.availWidth, window.screen.availHeight);
}


是不是受了什么刺激了&#8230;
]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5640/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flickr 2 guoshuang maps</title>
		<link>http://webdesign.guoshuang.com/archives/5639</link>
		<comments>http://webdesign.guoshuang.com/archives/5639#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5639</guid>
		<description><![CDATA[折腾了一个下午，研究了一下51ditu的 API，大家也可以把自己的flickr照片发到地图上。
flickr 2 guoshuang maps
打开flickr 某个照片的页面，使用下面的 bookmarklet 
]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5639/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash 版本检测代码</title>
		<link>http://webdesign.guoshuang.com/archives/5565</link>
		<comments>http://webdesign.guoshuang.com/archives/5565#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>guoshuang</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.guoshuang.com/showlog.asp?log_id=5565</guid>
		<description><![CDATA[
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&#038;&#038;document.all&#038;&#038;this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&#038;&#038;navigator.mimeTypes&#038;&#038;navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var [...]]]></description>
		<wfw:commentRss>http://webdesign.guoshuang.com/archives/5565/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
