??xml version="1.0" encoding="utf-8" standalone="yes"?>国产亚洲人成网站在线观看不卡 ,亚洲激情中文字幕,亚洲中文字幕无码中文字http://www.tkk7.com/emu/category/31708.htmlzh-cnWed, 11 Jan 2012 23:55:42 GMTWed, 11 Jan 2012 23:55:42 GMT60学习(fn)了一下条件注?/title><link>http://www.tkk7.com/emu/archive/2012/01/11/368358.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Wed, 11 Jan 2012 11:51:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2012/01/11/368358.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/368358.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2012/01/11/368358.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/368358.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/368358.html</trackback:ping><description><![CDATA[以前只知道怎么让一D代?#8220;仅对IE有效”Q一直没研究q怎么“仅对IE无效”或者说“仅对非IE有效”Q今天算搞懂了:(x)<br /><br /><div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; "><!--</span><span style="color: #008000; ">[if IE]> IE才看得到Q非IE看不?nbsp;<![endif]</span><span style="color: #008000; ">--></span><span style="color: #000000; "><br /></span><span style="color: #008000; "><!--</span><span style="color: #008000; ">[if !(IE)]><!</span><span style="color: #008000; ">--></span><span style="color: #000000; "> IE看不刎ͼ非IE才看得到 </span><span style="color: #008000; "><!--</span><span style="color: #008000; "><![endif]</span><span style="color: #008000; ">--></span><span style="color: #000000; "><br /></span></div><img src ="http://www.tkk7.com/emu/aggbug/368358.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2012-01-11 19:51 <a href="http://www.tkk7.com/emu/archive/2012/01/11/368358.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IEq个bug真是q?/title><link>http://www.tkk7.com/emu/archive/2011/08/08/355989.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Mon, 08 Aug 2011 01:54:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2011/08/08/355989.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/355989.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2011/08/08/355989.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/355989.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/355989.html</trackback:ping><description><![CDATA[ <div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">LANGUAGE</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> a</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><!--</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">;<br />alert(a);<br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);">  </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span></div><br />q样一D代码在IE下面居然语法解析错误Q实在是弱到不知道怎么说好了?br />当然Q下面这一D代码,也不出意外的在IE下挂掉了<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">LANGUAGE</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> a</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><!--</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">;<br />alert(a);<br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">LANGUAGE</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> a</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">--></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">;<br />alert(a);<br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span></div><br /><br />l于明白为啥Editplus里面插入script标记的时候L帮我加上 <!-- ?//-->了,q俩货还真不能随便去掉?br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">LANGUAGE</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><!--</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> a</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><!--</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">"</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">;<br />alert(a);<br /></span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">//</span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">--></span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);">  </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">></span></div><br />q个没事?br /> <img src ="http://www.tkk7.com/emu/aggbug/355989.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2011-08-08 09:54 <a href="http://www.tkk7.com/emu/archive/2011/08/08/355989.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>脚本l定回调增强版:(x)备用url可以p|重试http://www.tkk7.com/emu/archive/2011/07/19/354660.htmlemuemuTue, 19 Jul 2011 12:50:00 GMThttp://www.tkk7.com/emu/archive/2011/07/19/354660.htmlhttp://www.tkk7.com/emu/comments/354660.htmlhttp://www.tkk7.com/emu/archive/2011/07/19/354660.html#Feedback0http://www.tkk7.com/emu/comments/commentRss/354660.htmlhttp://www.tkk7.com/emu/services/trackbacks/354660.html《脚本绑定回调?/a>  q行了一些有的试Q这些尝试现在在一些web产品中已l应用了好几q了。这两年随着外用户的增多,用户情况的复杂化Q我们的服务部v也开始复杂化了,有一些用戯问A域名p|Q访问B域名可能很畅顺Q另一些用户则相反。而且很多时候这q不是gslbq样的调度可以及(qing)时检到和快速调整的Q不由得xQ能不能q行p|重试呢?其实也很单把4q前的代码改了一改,做了一个原理性的实验Q?br />
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var isIE = !!window.ActiveXObject;
var useFragment=false;
function loadjs(url,callback,errcallback,url2,url3){
    
if(isIE){
        
if(useFragment){
           
var df = document.createDocumentFragment();    
            df.visitCountCallBack 
= function(data){
                s.onreadystatechange
=null;
                df
=null;
                callback(data);
            }
            
var s = df.createElement("SCRIPT");
            df.appendChild(s);
            s.onreadystatechange
=function (ec,cb,u2,u3){
                
return function(){
                    
if(s.readyState=="loaded") {
                        s.onreadystatechange
=null;
                        df
=null;
                        
if(!u2){
                            ec();
                        }
else{
                            loadjs(u2,cb,ec,u3)
                        }
                    }
                }
            }(errcallback,callback,url2,url3)
            s.src 
= url;
        }
else{
            
var i=new ActiveXObject("htmlfile");
            i.open();
            i.parentWindow.visitCountCallBack
=function(i){
                
return function(d){
                    i.parentWindow.errcallback
=null;
                    i
=null;
                    callback(d);
                }
            }(i);
            i.parentWindow.errcallback
=function(ec,cb,u2,u3){
                
return function(){
                    i.parentWindow.errcallback
=null;
                    i
=null;
                    
if(!u2){
                        ec();
                    }
else{
                        loadjs(u2,cb,ec,u3)
                    }
                }
            }(errcallback,callback,url2,url3)
            i.write(
"<script src=\""+url+"\"><\/script><script defer>setTimeout(\"errcallback()\",0)<\/script>")
            
if(i)i.close();//如果数据被cacheQ运行到q一行的时候有可能回调已经完成,H口已经关闭?/span>
        }
    }
else{
        
var i = document.createElement("IFRAME");    
        i.style.display
="none";
        i.callback
=function(o){
            callback(o);
            i.contentWindow.callback
=null;
            i.src
="about:blank"
            i.parentNode.removeChild(i);
            i 
= null;
        };
        i.errcallback 
= function(ec,cb,u2,u3){
            
return function(){
                    
if(!u2){
                        ec();
                    }
else{
                        loadjs(u2,cb,ec,u3)
                    }
            }
        }(errcallback,callback,url2,url3);
        i.src
="javascript:\"<script>function visitCountCallBack(data){frameElement.callback(data)};<\/script><script src='"+url+"'><\/script><script>setTimeout('frameElement.errcallback()',0)<\/script>\"";
        document.body.appendChild(i);
    }
}

function init(){
    
var spans = document.getElementsByTagName("span");
    
for(var i=0;i<spans.length;i++){
        
var id = spans[i].id;
        
var url = "http://g.qzone.qq.com/fcg-bin/cgi_emotion_list.fcg?uin=a"+id;//故意刉错误引发重?/span>
        var url2 = "http://g.qzone.qq.com/fcg-bin/cgi_emotion_list.fcg?uin=b"+id;//故意再次刉错误引发重?/span>
        var url3 = "http://g.qzone.qq.com/fcg-bin/cgi_emotion_list.fcg?uin="+id;
        
var callback = function(id){ return function(data){
            document.getElementById(id).innerHTML 
= data.visitcount;
            }
        }(id);
        
var errcallback = function(id){ return function(){
            document.getElementById(id).innerHTML 
= "无法q接到服务器";
            }
        }(id);
        loadjs(url,callback,errcallback,url2,url3);
    }
}
</SCRIPT>
</HEAD>
<BODY onload="init()">
12345(非法帐号)的访问量Q?/span><span id="12345"></span><BR>
123456 的访问量Q?/span><span id="123456"></span><BR>
20050606 的访问量Q?/span><span id="20050606"></span><BR>
</BODY>
</HTML>

故意在前两次h中制造了错误Q尝试到W三个url的时候才成功?img src ="http://www.tkk7.com/emu/aggbug/354660.html" width = "1" height = "1" />

emu 2011-07-19 20:50 发表评论
]]>
把css和js写到一个文仉面的增强?/title><link>http://www.tkk7.com/emu/archive/2011/07/19/354642.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Tue, 19 Jul 2011 08:12:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2011/07/19/354642.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/354642.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2011/07/19/354642.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/354642.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/354642.html</trackback:ping><description><![CDATA[ <a href="http://www.tkk7.com/emu/archive/2011/07/19/354642.html"><font color="#336699">原文链接</font></a><br /> <br /> 最早的Ҏ(gu)发表在msdn上:(x)<a ><br /> http://blogs.msdn.com/b/shivap/archive/2007/05/01/combine-css-with-js-and-make-it-into-a-single-download.aspx</a><br /> <br /> 代码是像q样子的Q?br /> <div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);"><!--</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"><br /> function test(){}<br /> <!-- </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);"><!--</span><span style="color: rgb(0, 0, 0);"> body { background</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">color: Aqua; }</span></div> <br /> 可是q样css必要全部攑ֈ一行里面了。我做了一点点修Ҏ(gu)试图可以合ƈ多行的css或者多个css的内容进去:(x)<br /> <div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);"><!--</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"><br /> setTimeout('document.body.innerHTML="<span>Hello World</span>"',0);<br /> <!-- </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);"><!--</span><span style="color: rgb(0, 0, 0);"> emu{emu:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\<br /> /*</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">}<br /> span { background</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">color: #f00; }<br /> span { color: #0ff; }<br /> </span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"> </span><span style="color: rgb(0, 128, 0);">*/</span></div> <br /> q样对于css来说Q只是多了一个无用的规则 <font color="red">emu:{emu:"/*"}</font><br /> 而对于js来说Q多了一行内容ؓ(f) <font color="red"><!-- emu{emu:"\</font> 的注释,以及(qing)一大块/*开始的Q包含了所有css内容的注释?br /> IE9、Firefox5、safari5、chrome14下通过。没装operaQ不是太兛_q货?br />   <img src ="http://www.tkk7.com/emu/aggbug/354642.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2011-07-19 16:12 <a href="http://www.tkk7.com/emu/archive/2011/07/19/354642.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>怎么知道面被放大羃?yu)?/title><link>http://www.tkk7.com/emu/archive/2011/06/23/352894.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Thu, 23 Jun 2011 11:20:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2011/06/23/352894.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/352894.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2011/06/23/352894.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/352894.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/352894.html</trackback:ping><description><![CDATA[有个投诉说页面变形了Q一问才知道面被用户不心zoom了,q个情况最好是能对用户有个提示。写了个IE和firefox下检zoom的demoQ?br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><!</span><span style="color: #FF00FF; ">DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "><</span><span style="color: #800000; ">HTML</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "><</span><span style="color: #800000; ">BODY</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "><</span><span style="color: #800000; ">div </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="output"</span><span style="color: #0000FF; ">></</span><span style="color: #800000; ">div</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "><</span><span style="color: #800000; ">SCRIPT </span><span style="color: #FF0000; ">LANGUAGE</span><span style="color: #0000FF; ">="JavaScript"</span><span style="color: #0000FF; ">></span><span style="background-color: #F5F5F5; color: #000000; "><br /></span><span style="background-color: #F5F5F5; color: #000000; "><!--</span><span style="background-color: #F5F5F5; color: #000000; "><br />(</span><span style="background-color: #F5F5F5; color: #0000FF; ">function</span><span style="background-color: #F5F5F5; color: #000000; ">(){<br />    window.onresize</span><span style="background-color: #F5F5F5; color: #000000; ">=</span><span style="background-color: #F5F5F5; color: #000000; ">testZoom;<br />    </span><span style="background-color: #F5F5F5; color: #0000FF; ">var</span><span style="background-color: #F5F5F5; color: #000000; "> _screenOriginalWidth</span><span style="background-color: #F5F5F5; color: #000000; ">=</span><span style="background-color: #F5F5F5; color: #000000; ">window.screen.width<br />    </span><span style="background-color: #F5F5F5; color: #0000FF; ">function</span><span style="background-color: #F5F5F5; color: #000000; "> testZoom(){<br />        </span><span style="background-color: #F5F5F5; color: #0000FF; ">if</span><span style="background-color: #F5F5F5; color: #000000; ">(window.screen.width</span><span style="background-color: #F5F5F5; color: #000000; "><</span><span style="background-color: #F5F5F5; color: #000000; ">_screenOriginalWidth){<br />            document.getElementById(</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">output</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">).innerHTML</span><span style="background-color: #F5F5F5; color: #000000; ">=</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; "><br>攑֤?/span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">;<br />        }<br />        </span><span style="background-color: #F5F5F5; color: #0000FF; ">if</span><span style="background-color: #F5F5F5; color: #000000; ">(window.screen.width</span><span style="background-color: #F5F5F5; color: #000000; ">></span><span style="background-color: #F5F5F5; color: #000000; ">_screenOriginalWidth){<br />            document.getElementById(</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">output</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">).innerHTML</span><span style="background-color: #F5F5F5; color: #000000; ">=</span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; "><br>~小?/span><span style="background-color: #F5F5F5; color: #000000; ">"</span><span style="background-color: #F5F5F5; color: #000000; ">;<br />        }<br />        _screenOriginalWidth</span><span style="background-color: #F5F5F5; color: #000000; ">=</span><span style="background-color: #F5F5F5; color: #000000; ">window.screen.width<br />    }<br />})()<br /></span><span style="background-color: #F5F5F5; color: #008000; ">//</span><span style="background-color: #F5F5F5; color: #008000; ">--></span><span style="background-color: #F5F5F5; color: #008000; "><br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">SCRIPT</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">BODY</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span><span style="color: #0000FF; "></</span><span style="color: #800000; ">HTML</span><span style="color: #0000FF; ">></span><span style="color: #000000; "><br /></span></div><img src ="http://www.tkk7.com/emu/aggbug/352894.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2011-06-23 19:20 <a href="http://www.tkk7.com/emu/archive/2011/06/23/352894.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何分析js代码的运行\径?http://www.tkk7.com/emu/archive/2011/06/16/352445.htmlemuemuThu, 16 Jun 2011 09:38:00 GMThttp://www.tkk7.com/emu/archive/2011/06/16/352445.htmlhttp://www.tkk7.com/emu/comments/352445.htmlhttp://www.tkk7.com/emu/archive/2011/06/16/352445.html#Feedback0http://www.tkk7.com/emu/comments/commentRss/352445.htmlhttp://www.tkk7.com/emu/services/trackbacks/352445.html1 如果script是用src引入的,q要用xhr或者json方式来获得textQ可能还需要搭个后C理?br />2 如果function是在命名I间的,可以直接递归for in命名I间L里面的public函数出来?br />3 private的函数我看就了Q私有函数应该对自己负责Q我们没有必要非L人家的私货?br />

<HTML>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
function a(x,y,z){return b(x,y)*c(z)};
function b(x,y){return c(x)*c(y)};
function c(x){return x+x};


setTimeout(
"alert(a(1,2,3))",0)
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
(
function (){
    window._log
=[];
    
function obj2str(o){
        
var r = [];
        
if(typeof o =="string"return "\""+o.replace(/([\'\"\\])/g,"\\$1").replace(/(\n)/g,"\\n").replace(/(\r)/g,"\\r").replace(/(\t)/g,"\\t")+"\"";
        if(typeof o ==
"undefined") return "undefined";
        if(typeof o == 
"object"){
            if(o===null) return 
"null";
            else if(!o.length){
                for(var i in o)
                    r.push(i+
":"+obj2str(o[i]))
                r=
"{"+r.join()+"}"
            }else{
                for(var i =0;i<o.length;i++)
                    r.push(obj2str(o[i]))
                r=
"["+r.join()+"]"
            }
            return r;
        }
        return o.toString();
    }

    function log(s){
        _log.push(s);
    }
    var s=document.getElementsByTagName(
"SCRIPT")[0].text;
    var r=/function (\w+)\(/g;
    var fns=s.match(r);
    for(var i=0;i<fns.length;i++){
        fn=fns[i].replace(r,
"$1")
        if (typeof window[fn]==
"function"){
            window[fn]=(function(org,fn){
                return function(){
                    log(
"q入:"+fn+"\n调用参数Q?/span>"+obj2str(arguments));
                    var r=org.apply(null,arguments);
                    log(
"退?"+fn+"\nq回?/span>"+obj2str(r));
                    return r
                }
            })(window[fn],fn)
        }
    }
})()
setTimeout(
"alert(window._log.join('\\n\\n'))",100)
//-->
</SCRIPT>
</BODY>
</HTML>


emu 2011-06-16 17:38 发表评论
]]>
p用户看到我们的页面是像这L(fng)http://www.tkk7.com/emu/archive/2010/06/22/324139.htmlemuemuTue, 22 Jun 2010 03:33:00 GMThttp://www.tkk7.com/emu/archive/2010/06/22/324139.htmlhttp://www.tkk7.com/emu/comments/324139.htmlhttp://www.tkk7.com/emu/archive/2010/06/22/324139.html#Feedback4http://www.tkk7.com/emu/comments/commentRss/324139.htmlhttp://www.tkk7.com/emu/services/trackbacks/324139.html看了Ҏ(gu)WWDC的无障碍设计部分Q他们的开发h员就是这h体验p用户的品体验的Q我们也来体验一下别人的痛苦吧。我们的面有办法设计得让这h也感受好一点吗Q就像苹果正在做?script>with(document.body.style)if("\v"=="v")filter="blur(add)";else textShadow="black 0 0 3px";



emu 2010-06-22 11:33 发表评论
]]>
不可忽略?cache-read time(~存d延迟旉) 瓉http://www.tkk7.com/emu/archive/2010/04/09/317898.htmlemuemuFri, 09 Apr 2010 14:58:00 GMThttp://www.tkk7.com/emu/archive/2010/04/09/317898.htmlhttp://www.tkk7.com/emu/comments/317898.htmlhttp://www.tkk7.com/emu/archive/2010/04/09/317898.html#Feedback2http://www.tkk7.com/emu/comments/commentRss/317898.htmlhttp://www.tkk7.com/emu/services/trackbacks/317898.html小和rizen试q定位一个cache-read耗费旉随机的变得很长的诡异问题Q排除过了文件内宏V文件类型、文件头{各U媄响,但是很遗憾没有最l结论。emu那天看知道这个事情后猜测Q会(x)不会(x)是很简单的多个cache-read操作怺竞争堵塞D的呢Q这个其实很Ҏ(gu)验证了。写了一个简单的页面应用了一l图片,然后抓包重新打开面Q就看到下面q个图了Q?/p>




W一个cache-read耗时0.2U多Q第二个Qƈ行发P0.3U多Q第三个0.4U多Q接下去每个囄的耗时差不多都比上一个慢0.1U以上。结论很明显了,q发的cache-read?x)相互堵塞,非常严重的相互堵塞?br /> 以上抓包是在IE6下完成的。在IE7和IE8下面情况要好一些,但是问题性质是相同的?br /> 很多我们曄以ؓ(f)cache的非常好速度应该非常快的web应用Q也许其实存在着严重的cache-read速度瓉而不为我们所知?br /> |上没有搜到太多关于cache-read旉的文章,看来真是个盲炏V?br />
解决Ҏ(gu)和网lgq是cM的,减少cache-readhQ把多个文件和图片合q成大文件和大图片(而不要一厢情愿的以ؓ(f)文件被览器缓存后?x)有很好的速度表现Q,区分优先U引用资源。还有一个可能有用的Q交错的发v不可避免的异步动态网l请求和cache-readhQ让|络延迟和cache-read延迟旉叠加在一P来节省用户实际要{待的时间?/p>

emu 2010-04-09 22:58 发表评论
]]>
IE6不能用gzip压羃脚本Q一个流毒甚q的谣言http://www.tkk7.com/emu/archive/2010/03/31/317027.htmlemuemuWed, 31 Mar 2010 03:37:00 GMThttp://www.tkk7.com/emu/archive/2010/03/31/317027.htmlhttp://www.tkk7.com/emu/comments/317027.htmlhttp://www.tkk7.com/emu/archive/2010/03/31/317027.html#Feedback0http://www.tkk7.com/emu/comments/commentRss/317027.htmlhttp://www.tkk7.com/emu/services/trackbacks/317027.html  

文章作者说“跑到微Y那一?l的{复让我吐血:Do not enable HTTP compression for the script files 请不要对脚本文g开启http压羃 只好在服务器端增加对览器的识别代码,如果是ie6,׃压羃脚本文g?虽然脚本能运行了,可是用户体验?..  ?我恨ie 6”

唉,说啥好呢Q?/p>

真相是,微Y的答?http://support.microsoft.com/kb/327286/en-us?sid=64&spid=2073) 里面提供了两个解x案,其中W一个描q的E微啰嗦了一点,被这个作者直接忽略掉了。第二个解决Ҏ(gu)只有一句话Q显然更Ҏ(gu)被读懂:(x)

To work around this problem, you can do either of the following:

If you use a Cache-Control: no-cache HTTP header to prevent the files from caching, remove that header. In some situations, if you substitute an Expires HTTP header, you do not trigger the problem.

-or-

Do not enable HTTP compression for the script files.


Emu虽然英文比较烂,四老考不q,Z方便大家q是译一下吧Q不然又该有不下M?br />

  要规避此问题Q你可以在下面两个方案中选一U:(x)

    1.如果你用了Cache-Control: no-cache q个 HTTP 头来防止文g被缓存,U除q个头就好了。有些情况下Q如果你用一个Expires头来代替Q前面这个出问题的http_(d)Q(也可以v到相同作用而)不会(x)触发q个问题?/em>

    或?/p>     2.不要压羃脚本文g?/em>


个hq是考虑W一Ҏ(gu)?br />
本文作ؓ(f)前面一翻译文章?a href="http://www.tkk7.com/emu/archive/2010/02/18/313398.html">压羃Q让|络更快》的补充?

emu 2010-03-31 11:37 发表评论
]]>
[译]加速JavascriptQDOM操作优化http://www.tkk7.com/emu/archive/2010/03/01/314185.htmlemuemuMon, 01 Mar 2010 09:20:00 GMThttp://www.tkk7.com/emu/archive/2010/03/01/314185.htmlhttp://www.tkk7.com/emu/comments/314185.htmlhttp://www.tkk7.com/emu/archive/2010/03/01/314185.html#Feedback4http://www.tkk7.com/emu/comments/commentRss/314185.htmlhttp://www.tkk7.com/emu/services/trackbacks/314185.html原文Q《Speeding up JavaScript: Working with the DOM?/p>

作者:(x) KeeKim Heng, Google Web Developer

在我们开发互联网富应用(RIAQ时Q我们经常写一些javascript脚本来修Ҏ(gu)者增加页面元素,q些工作最l是DOM——或者说文档对象模型——来完成的,而我们的实现方式?x)媄响到应用的响应速度?/p>

DOM操作?x)导致浏览器重解?reflow)Q这是浏览器的一个决定页面元素如何展现的计算q程。直接修改DOMQ修改元素的CSS样式Q修Ҏ(gu)览器的窗口大,都会(x)触发重解析。读取元素的布局属性比如offsetHeithe或者offsetWidth也会(x)触发重解析。重解析需要花费计时_(d)因此重解析触发的少Q应用就?x)越快?/p>

DOM操作通常要不是修改已经存在的页面上的元素,要不是创徏新的面元素。下面的4U优化方案覆盖了修改和创建DOM节点两种方式Q帮助你减少触发览器重解析的次数?br />

Ҏ(gu)一Q通过CSScd切换来修改DOM 

q个Ҏ(gu)让我们可以一ơ性修改一个元素和它的子元素的多个样式属性而只触发一ơ重解析?/p>

需求:(x)

Qemu注:(x)原文作者写到这里的时候脑子显然短路了一下,把后面的Out-of-the-flow DOM Manipulation模式要解决的问题l摆到这里来了,不过从示范代码中很容易明白作者真正想描述的问题,因此emu׃照翻原文了)

我们现在需要写一个函数来修改一个超链接的几个样式规则。要实现很简单,把这几个规则对应的属性逐一改了好了。但是带来的问题是,每修改一个样式属性,都会(x)D一ơ页面的重解析?br />

function selectAnchor(element) {
  element.style.fontWeight 
= 'bold';
  element.style.textDecoration 
= 'none';
  element.style.color 
= '#000';
}

 

解决Ҏ(gu)

要解册个问题,我们可以先创Z个样式名Qƈ且把要修改的样式规则都放到这个类名上Q然后我们给链接添加上q个新类名,可以实现添加几个样式规则而只触发一ơ重解析了。这个模式还有个好处是也实现了表现和逻辑相分R?/p>


 

.selectedAnchor {
  font
-weight: bold;
  text
-decoration: none;
  color: #
000;
}

function selectAnchor(element) {
  element.className 
= 'selectedAnchor';
}

Ҏ(gu)二:(x)在非渲染Z改DOM

Qemu注:(x)作者在q里再次脑子短\Q把DocumentFragment DOM Generation模式的介l提前到q里来了Qemu只好再次发挥一下)
上一个方案解决的是修改一个超链接的问题,当一ơ需要对很多个超链接q行相同修改的时候,q个Ҏ(gu)可以大显n手了?/p>

需?/strong>

需求是q样的,我们要写一个函数来修改一个指定元素的子元素中所有的链接的样式名(classNameQ属性。要实现很简单,我们可以通过遍历每个链接ƈ且修改它们的样式名来完成d。但是带来的问题是Q每修改一个超链接都会(x)D一ơ重解析?/p>

function updateAllAnchors(element, anchorClass) {
  
var anchors = element.getElementsByTagName('a');
  
for (var i = 0, length = anchors.length; i < length; i ++) {
    anchors[i].className 
= anchorClass;
  }
}

解决Ҏ(gu)

要解册个问题,我们可以把被修改的指定元素从DOM里面U除Q再修改所有的链接,然后在把q个元素插入回到它原来的位置上。ؓ(f)了完成这个复杂的操作Q我们可以先写一个可重用的函敎ͼ它不但移除了q个DOM节点Q还q回了一个把元素插回到原来的位置的函数?/p>

/**
 * Remove an element and provide a function that inserts it into its original position
 * @param element {Element} The element to be temporarily removed
 * @return {Function} A function that inserts the element into its original position
 *
*/
function removeToInsertLater(element) {
  
var parentNode = element.parentNode;
  
var nextSibling = element.nextSibling;
  parentNode.removeChild(element);
  
return function() {
    
if (nextSibling) {
      parentNode.insertBefore(element, nextSibling);
    } 
else {
      parentNode.appendChild(element);
    }
  };
}

有了上面q个函数Q现在我们就可以在一个不需要解析渲染的元素上面修改那些链接了。这样只在移除和插入元素的时候各触发一ơ重解析?br />
function updateAllAnchors(element, anchorClass) {
  
var insertFunction = removeToInsertLater(element);
  
var anchors = element.getElementsByTagName('a');
  
for (var i = 0, length = anchors.length; i < length; i ++) {
    anchors[i].className 
= anchorClass;
  }
  insertFunction();
}

Ҏ(gu)三:(x)一ơ性的DOM元素生成

q个Ҏ(gu)让我们创Z个元素的q程只触发一ơ重解析。在创徏完元素以后,先进行所有需要的修改Q最后才把它插入到DOM里面d可以?/p>

需?/strong>

需求是q样的,实现一个函敎ͼ往一个指定的父元素上插入一个超链接元素。这个函数要同时可以讄q个链接的昄文字和样式类。我们可以这样做Q创建元素,插入到DOM里面Q然后设|相应的属性。这p触发3ơ重解析?/p>

function addAnchor(parentElement, anchorText, anchorClass) {
  
var element = document.createElement('a');
  parentElement.appendChild(element);
  element.innerHTML 
= anchorText;
  element.className 
= anchorClass;
}

解决Ҏ(gu)

很简单,我们只要把插入元素这个操作放到最后做Q就可以只进行一ơ重解析了?/p>

function addAnchor(parentElement, anchorText, anchorClass) {
  
var element = document.createElement('a');
  element.innerHTML 
= anchorText;
  element.className 
= anchorClass;
  parentElement.appendChild(element);
}

不过Q要是我们想要插入很多个链接到一个元素里面的话,那么q个做法q是有问题:(x)每插入一个超链接q是要触发一ơ重解析。下一个方案可以解册个问题?/p>

Ҏ(gu)四:(x)通过文档片段对象QDocumentFragmentQ创Zl元?/strong>

q个Ҏ(gu)允许我们创徏q插入很多个元素而只触发一ơ重解析。要实现q点需要用到所谓的文档片段对象QDocumentFragmentQ。我们先在DOM之外创徏一个文档片D对象(q样它也׃需要解析和渲染Q,然后我们在文档片D对象中创徏很多个元素,最后我们把q个文档片段对象中所有的元素一ơ性放到DOM里面去,只触发一ơ重解析?/p>

需?/strong>


我们要写一个函敎ͼ往一个指定的元素上面增加10个超链接。如果我们简单的直接插入10个超链接到元素上面,׃(x)触发10ơ重解析?/p>

function addAnchors(element) {
  
var anchor;
  
for (var i = 0; i < 10; i ++) {
    anchor 
= document.createElement('a');
    anchor.innerHTML 
= 'test';
    element.appendChild(anchor);
  }
}

解决Ҏ(gu)

要解册个问题,我们要先创徏一个文档片D对象,然后把每个新创徏的超链接都插入到它里面去。当我们把文档片D对象用appendChild命o(h)插入到指定的节点Ӟq个文档片段对象的所有子节点׃赯插入到指定的元素里面Q而且只需要触发一ơ重解析?br />

function addAnchors(element) {
  
var anchor, fragment = document.createDocumentFragment();
  
for (var i = 0; i < 10; i ++) {
    anchor 
= document.createElement('a');
    anchor.innerHTML 
= 'test';
    fragment.appendChild(anchor);
  }
  element.appendChild(fragment);
}


注意Q如无特别声明,本文中引用的所有程序均不是Google开发,也与Google没有其他什么关pR这些程序引发的责Q均由其开发者或者所有者自己承担,与google无关?/em>

emu 2010-03-01 17:20 发表评论
]]>
[译] 压羃Q让|络更快http://www.tkk7.com/emu/archive/2010/02/18/313398.htmlemuemuThu, 18 Feb 2010 09:00:00 GMThttp://www.tkk7.com/emu/archive/2010/02/18/313398.htmlhttp://www.tkk7.com/emu/comments/313398.htmlhttp://www.tkk7.com/emu/archive/2010/02/18/313398.html#Feedback1http://www.tkk7.com/emu/comments/commentRss/313398.htmlhttp://www.tkk7.com/emu/services/trackbacks/313398.html阅读全文

emu 2010-02-18 17:00 发表评论
]]>
IE8下对cookie的限制?/title><link>http://www.tkk7.com/emu/archive/2009/10/29/300227.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Thu, 29 Oct 2009 10:50:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2009/10/29/300227.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/300227.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2009/10/29/300227.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/300227.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/300227.html</trackback:ping><description><![CDATA[<p>emu试了一下IE8Q发现cookie的限制似乎比以前宽松多了。具体限制是Q?br /> * 每个域名下允?0个cookieQ超q了覆盖最早写入的cookieQ或者说队列式管理,过了第一个出队)<br /> * 同一个页面(和从q个面发出的请求)子域、父域和根域各自有自q50个cookie?br /> * 单个cookie的总长度:(x)cookieName+cookieValue+附加信息Q包括等PI格Q分PdomainQexpiresQpath之类的)不能过5kQ最?119bytesQ?br /> * 同一个页面(和从q个面发出的请求)子域、父域和根域的全部cookie的内定w度(cookieName+cookieValue+{号Q空|分号Q不能超q?0kQ否则全部变成httponlyQ无法用脚本讉K</p> * 同一个页面(和从q个面发出的请求)子域、父域和根域的全部cookie的内定w度(cookieName+cookieValue+{号Q空|分号Q不能超q?0k?br /> <br /> 总而言之,cookie不是用来存数据的Q能不用别用?<br /> <br /> 边做试边些博客的后果是Q由于不停的清空cookie把博客的登陆态清掉了Q差Ҏ(gu)章提交失败重新写呵呵 <img src ="http://www.tkk7.com/emu/aggbug/300227.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2009-10-29 18:50 <a href="http://www.tkk7.com/emu/archive/2009/10/29/300227.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IE8里,“aboutQ”又回来?/title><link>http://www.tkk7.com/emu/archive/2009/05/22/277277.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Fri, 22 May 2009 04:32:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2009/05/22/277277.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/277277.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2009/05/22/277277.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/277277.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/277277.html</trackback:ping><description><![CDATA[q记得IE6.0.2600以前的美好日子吗Q那时我们多喜欢搞这U代码来节省一个httph啊:(x)<br /> <br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">iframe </span><span style="color: #ff0000">src</span><span style="color: #0000ff">="about:<b style='color:red'>hello</b><script>alert(123)</script>"</span><span style="color: #0000ff">></</span><span style="color: #800000">iframe</span><span style="color: #0000ff">></span></div> <br /> 当然q有q样?br /> <br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #000000">showModalDialog(</span><span style="color: #000000">"</span><span style="color: #000000">about:<b style='color:red'>hello</b><script>alert(123)</script></span><span style="color: #000000">"</span><span style="color: #000000">)</span></div> <br /> <br /> 在IE6.0.2600以后Q大家就只好转向更兼容的写法了:(x)<br /> <br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #0000ff"><</span><span style="color: #800000">iframe </span><span style="color: #ff0000">src</span><span style="color: #0000ff">="javascript:&quot;<b style='color:red'>hello</b><script>alert(123)</script>&quot;"</span><span style="color: #0000ff">></</span><span style="color: #800000">iframe</span><span style="color: #0000ff">></span></div> <br /> 今天偶然发现QIE8正式版下面,久违?#8220;aboutQ?#8221;又可以显C和执行了呵c(din)? <img src ="http://www.tkk7.com/emu/aggbug/277277.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2009-05-22 12:32 <a href="http://www.tkk7.com/emu/archive/2009/05/22/277277.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Chrome览器第一ơ用google gearsl徏的时候会(x)有问?/title><link>http://www.tkk7.com/emu/archive/2009/01/13/251099.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Tue, 13 Jan 2009 03:46:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2009/01/13/251099.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/251099.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2009/01/13/251099.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/251099.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/251099.html</trackback:ping><description><![CDATA[<a >http://qzone.qq.com/blog/286013388-1231818216</a><br /> <br /> <p>使用h览?chrome)的时候,有的时候脚本程序会(x)捕获?#8220;Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'create' ”q个错误Q在chrome的用戯坛上也有人在问这个问题?/p> <p>q个错误应该是由于最新版的谷歌浏览器没有自带完整的google gearslgD的。看h最新版的chrome览器会(x)在用L(fng)一ơ用gearslg的时候自动下载和安装该组Ӟ而在安装成功以前我们虽然可以成功创徏 application/x-googlegears 对象Q却无法调用它的createҎ(gu)创徏M有用的东ѝ?/p> <p>q个时候其实没有太多的事情可以做,基本上我们我们只能检这个对象的create接口是否存在Q发C存在的时候提C用戯心{待Q过一D|间后再刷斎ͼ或者下回再来看看,希望它已l自己安装好了?br /> </p> <img src ="http://www.tkk7.com/emu/aggbug/251099.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2009-01-13 11:46 <a href="http://www.tkk7.com/emu/archive/2009/01/13/251099.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>打开QQI间速度飞快的方?/title><link>http://www.tkk7.com/emu/archive/2009/01/11/250880.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Sun, 11 Jan 2009 13:07:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2009/01/11/250880.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/250880.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2009/01/11/250880.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/250880.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/250880.html</trackback:ping><description><![CDATA[<a >打开QQI间速度飞快的方?br /> </a><br /> <div style="font-size: 16px" id="blogDetailDiv">假如你是中国?sh)信adsl上网的用P在windowsq_下试用IE览器访问QQI间Q那?br /> 首先呢,是讉K<wbr><a target="_blank" >http://gears.google.com/</a><wbr> 先把google gears装上(最新是0.5?。有一些同学访问不了gears主页或者由于某U原因安装不上google上的最新版gearsQ那么可以试试到<br /> <a >http://down1.tech.sina.com.cn/download/down_contents/1194710400/37265.shtml</a><br /> 上下载稍微旧一点的版本Q?.4版)<br /> |上q有更旧的版本,但是emu没有实验过了?br /> 然后呢,你就可以讉Kq个地址了:(x)<wbr><a target="_blank" >http://imgcache.qq.com/qzone/test/gears/gearsMng.html</a><wbr><br /> 对于|通宽带的朋友Q就要访问这个:(x)<wbr><a target="_blank" >http://cnc.imgcache.qq.com/qzone/test/gears/gearsMng.html</a><wbr><br /> 而对于教育网的朋友,则要讉Kq个Q?wbr><a target="_blank" >http://edu.imgcache.qq.com/qzone/test/gears/gearsMng.html</a><wbr><br /> 点击“启用加?#8221;Q会(x)有个gears提示Q确认以后,{全部进度条走成l色好了,以后讉KQQI间的时候就?x)自动的变得飞快?br /> <br /> 有几点小技巧:(x)<br /> * google gears不是很稳定,有的时候进度条走着走着卡住不CQ这个时候可以多点几?#8220;启用加?#8221;好了。如果还是不行,可能是网l原因,也没有关p,不管它就可以了,google gears?x)在|络好的时候自己把没下载完的文件给补上的?br /> * 如果不大定你的上网环境Q联通?有线宽屏Q铁通?Q,或者笔记本l常抱来抱去上QQI间Q那么不妨把?sh)信、网通和教育|三个页面都讉K一遍,分别启用加速,q样不管在什么环境下都可以确定获得最好的效果?br /> * 如果你用的是FireFox览器,也可以依照上面的操作?br /> * 如果你用的是google的chrome览器,q且?.0正式版以上的版本Q那么它已经自带了一个比较稳定版本的gearsQ蟩q安装gearsq一步。但是chrome下面gearsq是有时不十分稳定,虽然emu已经力做了兼容Q在W一ơ用的时候还是可能有炚w题?br /> * 如果用的不是windowspȝQ那么gearsq有MacOS下的版本Q支持Safari(<a >http://gears.google.com/?platform=mac-safari</a>)和Firefox(<a >http://gears.google.com/?platform=mac-firefox</a>)和linux下的版本(<a >http://gears.google.com/?platform=linux</a> 支持Firefox)Q恭喜恭喜。不q到底用h怎么Pemu也没试过?br /> * 如果你用的居然是operaQ就认命了吧?/div> <img style="position: relative; display: none" id="paperPicArea1" alt="" src="http://qzone.qq.com/ac/b.gif" width="1" height="1" /> <img src ="http://www.tkk7.com/emu/aggbug/250880.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2009-01-11 21:07 <a href="http://www.tkk7.com/emu/archive/2009/01/11/250880.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>分域名优化的时候要考虑备选IP的问?/title><link>http://www.tkk7.com/emu/archive/2008/05/23/202357.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Fri, 23 May 2008 03:36:00 GMT</pubDate><guid>http://www.tkk7.com/emu/archive/2008/05/23/202357.html</guid><wfw:comment>http://www.tkk7.com/emu/comments/202357.html</wfw:comment><comments>http://www.tkk7.com/emu/archive/2008/05/23/202357.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/emu/comments/commentRss/202357.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/emu/services/trackbacks/202357.html</trackback:ping><description><![CDATA[我们在需要下载很多内容的时候,很容易想到做分域名的q发下蝲Q给原来的服务器多分几个域名Q因为分不同的域名可能可以在览器中分到更多的下载进E,提高下蝲速度?br /> 但是在做|络应用的时候,我们的一个域名下面有的时候会(x)有多个ip多台服务器,分布在不同的机房Q这个时候浏览器?x)在可选的ip里面随机的选择一个ip。用nslookup可以看到可选的ipQ用ping可以看到当前正在实用的ip?br /> 在多个ip的情况下Q对具体的一个用P往往是连接到某些ip特别快,而连接到某些ip׃怎么块。比如我现在有一个域名(和它的几个分域名Q,在深圌问的时候有2个ip可以分,其中一个是深圳本地的服务器Q一个是外地的服务器。这个时候如果页面打开需要用到的关键资源依赖于这个域名,那么分域名有可能寚w度不是提高而是有反作用?br /> 因ؓ(f)q种情况下,慢的资源成ؓ(f)了瓶颈,变成是速度的决定因素。我本来有一半的Z(x)是快的,一半的Z(x)是慢的,如果现在分两个域名去下蝲关键资源Q变成有1/4的机?x)是两个域名都分到深圳的服务器,可以有提高,?/4的机?x)是有一个以上的域名分到外地的服务器Q反而变慢了Q这h高的是少部分人的感受Q而多Ch的感受没有提升或者变的更差。如果简单的按照yahoo的优化徏议分散到4个域名上Q那么这个比例就变成1Q?5Q更差了?br /> 因此分域名下载不能简单的l对化的看待Q要看实际应用场景做军_? <img src ="http://www.tkk7.com/emu/aggbug/202357.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/emu/" target="_blank">emu</a> 2008-05-23 11:36 <a href="http://www.tkk7.com/emu/archive/2008/05/23/202357.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://www-774220.com" target="_blank">ɫĻ߲</a>| <a href="http://sdhuamo.com" target="_blank">ŷ޹˾Ʒ</a>| <a href="http://hndsfwl.com" target="_blank">Ʒ޸һ</a>| <a href="http://okbala.com" target="_blank">ƬAëƬ鴤ɫ</a>| <a href="http://xf002.com" target="_blank">þþþ޾Ʒվ</a>| <a href="http://ybcin.com" target="_blank">xxxxxƬƵ</a>| <a href="http://www-715111.com" target="_blank">޳aƬ߹ۿ</a>| <a href="http://xxxxnii.com" target="_blank">һƵѸ</a>| <a href="http://vod8090.com" target="_blank">ۺɫɫ</a>| <a href="http://dagongxing.com" target="_blank">AV߲</a>| <a href="http://qulu999.com" target="_blank">avַ</a>| <a href="http://j3223.com" target="_blank">þѵľƷV</a>| <a href="http://www876444.com" target="_blank">޶ɫۺɫž</a>| <a href="http://51wdn.com" target="_blank">99re6߾ƷƵѲ </a>| <a href="http://33a55.com" target="_blank">޹ƷƵ</a>| <a href="http://cjsyw123.com" target="_blank">þ99Ƶ</a>| <a href="http://8mav938.com" target="_blank">ƬĻӰ</a>| <a href="http://binz132.com" target="_blank">Ʒþþþa </a>| <a href="http://lh726.com" target="_blank">Ļ</a>| <a href="http://079566.com" target="_blank">ij˾þþþӰԺѹۿ</a>| <a href="http://wwwff113.com" target="_blank">av뾫Ʒ </a>| <a href="http://www66susu.com" target="_blank">ڵƵ</a>| <a href="http://fsweicheng.com" target="_blank">avרԭ</a>| <a href="http://0102008.com" target="_blank">ѹ߹ۿӰԺ</a>| <a href="http://500308k.com" target="_blank">ƷŮþþ</a>| <a href="http://wuhhz.com" target="_blank">þþþþ޾Ʒ</a>| <a href="http://600c28.com" target="_blank">Ƶ</a>| <a href="http://bjbf99.com" target="_blank">˳wwwӰ</a>| <a href="http://333uy.com" target="_blank">Ƶһ</a>| <a href="http://www003924.com" target="_blank">岻Ƶ</a>| <a href="http://3hc88.com" target="_blank">޸һƷ</a>| <a href="http://8654123.com" target="_blank">һõþۺ</a>| <a href="http://3y0r.com" target="_blank">þþþѾƷ</a>| <a href="http://htsp777.com" target="_blank">Ļ</a>| <a href="http://137499.com" target="_blank">AVһþ</a>| <a href="http://xyxpx.com" target="_blank">91ѹۿ</a>| <a href="http://ebanyou.com" target="_blank">av뾫Ʒ</a>| <a href="http://4eeyy.com" target="_blank">޾Ʒվ߹ۿ</a>| <a href="http://lswqn.com" target="_blank">þþƵ</a>| <a href="http://xxxxcccc.com" target="_blank">ƵѲ</a>| <a href="http://mqiuxia66.com" target="_blank">߹ۿ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>