<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Chương 4 – Hiệu ứng</title>
	<atom:link href="http://www.izwebz.com/jquery/chuong-4-hieu-ung/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/</link>
	<description>You aren&#039;t just a visitor</description>
	<lastBuildDate>Fri, 24 May 2013 04:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Pirates Pirates</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-22874</link>
		<dc:creator>Pirates Pirates</dc:creator>
		<pubDate>Tue, 11 Dec 2012 03:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-22874</guid>
		<description><![CDATA[Anh DW cho e hỏi vẫn đoạn code :
$(document).ready(function() {
        var $speech = $(&#039;div.speech&#039;);
        var defaultSize = $speech.css(&#039;fontSize&#039;);
        $(&#039;#switcher button&#039;).click(function() {
        var num = parseFloat($speech.css(&#039;fontSize&#039;) , 10 );
        switch (this.id) {
        case &#039;switcher-large&#039;:
        num *= 1.4;
        break;
        case &#039;switcher-small&#039;:
        num /= 1.4;
        break;
        default:
        num = parseFloat(defaultSize, 10);
        }
        $speech.css(&#039;fontSize&#039;, num + &#039;px&#039;);
        });
        });

E sửa lại thành :
$(document).ready(function() {
        var $speech = $(&#039;div.speech&#039;);
        var defaultSize = $speech.css(&#039;fontSize&#039;);
        $(&#039;#switcher button&#039;).click(function() {
        var num = parseFloat(defaultSize , 10 );
        switch (this.id) {
        case &#039;switcher-large&#039;:
        num *= 1.4;
        break;
        case &#039;switcher-small&#039;:
        num /= 1.4;
        break;
        default:
        num = parseFloat(defaultSize, 10);
        }
        $speech.css(&#039;fontSize&#039;, num + &#039;px&#039;);
        });
        });

Tại sao khi ấn vào button - ví dụ Large - nó chỉ tăng kích thước lên 1.4 - Chỉ có tác dụng lần click đầu tiên !]]></description>
		<content:encoded><![CDATA[<p>Anh DW cho e hỏi vẫn đoạn code :<br />
$(document).ready(function() {<br />
        var $speech = $(&#8216;div.speech&#8217;);<br />
        var defaultSize = $speech.css(&#8216;fontSize&#8217;);<br />
        $(&#8216;#switcher button&#8217;).click(function() {<br />
        var num = parseFloat($speech.css(&#8216;fontSize&#8217;) , 10 );<br />
        switch (this.id) {<br />
        case &#8216;switcher-large&#8217;:<br />
        num *= 1.4;<br />
        break;<br />
        case &#8216;switcher-small&#8217;:<br />
        num /= 1.4;<br />
        break;<br />
        default:<br />
        num = parseFloat(defaultSize, 10);<br />
        }<br />
        $speech.css(&#8216;fontSize&#8217;, num + &#8216;px&#8217;);<br />
        });<br />
        });</p>
<p>E sửa lại thành :<br />
$(document).ready(function() {<br />
        var $speech = $(&#8216;div.speech&#8217;);<br />
        var defaultSize = $speech.css(&#8216;fontSize&#8217;);<br />
        $(&#8216;#switcher button&#8217;).click(function() {<br />
        var num = parseFloat(defaultSize , 10 );<br />
        switch (this.id) {<br />
        case &#8216;switcher-large&#8217;:<br />
        num *= 1.4;<br />
        break;<br />
        case &#8216;switcher-small&#8217;:<br />
        num /= 1.4;<br />
        break;<br />
        default:<br />
        num = parseFloat(defaultSize, 10);<br />
        }<br />
        $speech.css(&#8216;fontSize&#8217;, num + &#8216;px&#8217;);<br />
        });<br />
        });</p>
<p>Tại sao khi ấn vào button &#8211; ví dụ Large &#8211; nó chỉ tăng kích thước lên 1.4 &#8211; Chỉ có tác dụng lần click đầu tiên !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sang</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-21676</link>
		<dc:creator>Sang</dc:creator>
		<pubDate>Mon, 10 Sep 2012 08:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-21676</guid>
		<description><![CDATA[anh ơi. anh cho em xin cái css của chương 4 được hok anh.thân anh.mong chờ phản hồi.:))]]></description>
		<content:encoded><![CDATA[<p>anh ơi. anh cho em xin cái css của chương 4 được hok anh.thân anh.mong chờ phản hồi.:))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teoee</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-21488</link>
		<dc:creator>teoee</dc:creator>
		<pubDate>Sun, 19 Aug 2012 10:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-21488</guid>
		<description><![CDATA[cái này:var $link = $(this); 
if ( $link.text() == &quot;read more&quot; ) { 
$link.text(&#039;read less&#039;); 
} else {
$link.text(&#039;read more&#039;);
}
có t/d gì vậy sao em bỏ đi nó vẫn chạy bt]]></description>
		<content:encoded><![CDATA[<p>cái này:var $link = $(this);<br />
if ( $link.text() == &#8220;read more&#8221; ) {<br />
$link.text(&#8216;read less&#8217;);<br />
} else {<br />
$link.text(&#8216;read more&#8217;);<br />
}<br />
có t/d gì vậy sao em bỏ đi nó vẫn chạy bt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trung</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-20708</link>
		<dc:creator>Trung</dc:creator>
		<pubDate>Sat, 02 Jun 2012 14:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-20708</guid>
		<description><![CDATA[Dùng ajax để load, bạn tìm hiểu jquery ajax đi nha]]></description>
		<content:encoded><![CDATA[<p>Dùng ajax để load, bạn tìm hiểu jquery ajax đi nha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bao hoa</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-20120</link>
		<dc:creator>bao hoa</dc:creator>
		<pubDate>Sat, 21 Apr 2012 03:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-20120</guid>
		<description><![CDATA[num = parseFloat(def,10);

cho e hỏi số 10 ở đây có nghĩa la j vậy]]></description>
		<content:encoded><![CDATA[<p>num = parseFloat(def,10);</p>
<p>cho e hỏi số 10 ở đây có nghĩa la j vậy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr Tri</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-19856</link>
		<dc:creator>Mr Tri</dc:creator>
		<pubDate>Fri, 06 Apr 2012 04:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-19856</guid>
		<description><![CDATA[Trong Jquery cái nào cho loop nhỉ, chẳng hạn như làm 1 cái wiget cho nó hiện ra các bài viết nhưng được 50s nó sẽ tự động slideUp các bài viết khác, cứ mỗi 50s thì hiện ra 1 list các bài viết khác, DW hướng dẫn dùm, dùng cái nào có event timer interval 50s vậy?]]></description>
		<content:encoded><![CDATA[<p>Trong Jquery cái nào cho loop nhỉ, chẳng hạn như làm 1 cái wiget cho nó hiện ra các bài viết nhưng được 50s nó sẽ tự động slideUp các bài viết khác, cứ mỗi 50s thì hiện ra 1 list các bài viết khác, DW hướng dẫn dùm, dùng cái nào có event timer interval 50s vậy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chie</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-19315</link>
		<dc:creator>Chie</dc:creator>
		<pubDate>Fri, 24 Feb 2012 15:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-19315</guid>
		<description><![CDATA[Bài viết chi tiết quá , cám ơn anh đã bỏ công sức để trình bày]]></description>
		<content:encoded><![CDATA[<p>Bài viết chi tiết quá , cám ơn anh đã bỏ công sức để trình bày</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonoop</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-17217</link>
		<dc:creator>sonoop</dc:creator>
		<pubDate>Sat, 25 Jun 2011 10:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-17217</guid>
		<description><![CDATA[$(document).ready(function(){
    var $increa = $(&#039;.speech&#039;);
    var def = parseFloat($increa.css(&#039;fontSize&#039;), 10);
    $(&#039;#switcher button&#039;).click(function() {
        var num = parseFloat($increa.css(&#039;fontSize&#039;), 10);
        if(this.id == &#039;large&#039;) {
           num += 1;
        }else if (this.id == &#039;small&#039;){
           num -= 1;
        }
        else if (this.id == &#039;default&#039;){
           num = def;
        }
        $increa.animate({fontSize: num + &#039;px&#039;}, 1);
    });

    $(&#039;p:eq(1)&#039;).hide();
    $(&#039;a.more&#039;).toggle(function(){
        $(&#039;p:eq(1)&#039;).show(1000);
        $(this).text(&#039;Hide Now&#039;);
        return false;
    }, function(){
        $(&#039;p:eq(1)&#039;).hide(1000);
        $(this).text(&#039;Show Now&#039;);
        return false;
    });

    $(&#039;#show a&#039;).click(function(){
        $(&#039;div#login&#039;).animate({opacity: &#039;toggle&#039;}, &#039;1000&#039;);
        return false;
    });
    
    $(&#039;div.label&#039;).click(function(){
        var paraWidth = $(&#039;div.speech p&#039;).outerWidth();
        var switchWidth = $(this).parent().outerWidth();
        $(this).parent().animate({height: &#039;+=20&#039;}, &#039;1000&#039;)
                        .animate({left: &#039;+=5px&#039;}, {duration: &#039;100&#039;, queue: false})
                        .fadeTo(&#039;slow&#039;,0.5)
                        .slideUp(&#039;slow&#039;)
                        .fadeTo(&#039;slow&#039;,1, function(){
                            $(this).css(&#039;backgroundColor&#039;, &#039;#f00&#039;);
                        })                        
                        .slideDown(&#039;slow&#039;);

    });

    $(&#039;p:eq(2)&#039;).css(&#039;border&#039;, &#039;1px solid #333&#039;)
                .click(function() {
                    $(this).slideUp(&#039;slow&#039;)
                           .next().slideDown(&#039;slow&#039;);
    });
    $(&#039;p:eq(3)&#039;).css(&#039;backgroundColor&#039;, &#039;#ccc&#039;).hide();

    $(&#039;p:eq(3)&#039;).click(function() {
        $(this).slideUp(&#039;flow&#039;);
        $(&#039;p:eq(2)&#039;).slideDown(&#039;flow&#039;);
    });
});


Code em chơi 1 lèo vậy có sao hem anh nhỉ?]]></description>
		<content:encoded><![CDATA[<p>$(document).ready(function(){<br />
    var $increa = $(&#8216;.speech&#8217;);<br />
    var def = parseFloat($increa.css(&#8216;fontSize&#8217;), 10);<br />
    $(&#8216;#switcher button&#8217;).click(function() {<br />
        var num = parseFloat($increa.css(&#8216;fontSize&#8217;), 10);<br />
        if(this.id == &#8216;large&#8217;) {<br />
           num += 1;<br />
        }else if (this.id == &#8216;small&#8217;){<br />
           num -= 1;<br />
        }<br />
        else if (this.id == &#8216;default&#8217;){<br />
           num = def;<br />
        }<br />
        $increa.animate({fontSize: num + &#8216;px&#8217;}, 1);<br />
    });</p>
<p>    $(&#8216;p:eq(1)&#8217;).hide();<br />
    $(&#8216;a.more&#8217;).toggle(function(){<br />
        $(&#8216;p:eq(1)&#8217;).show(1000);<br />
        $(this).text(&#8216;Hide Now&#8217;);<br />
        return false;<br />
    }, function(){<br />
        $(&#8216;p:eq(1)&#8217;).hide(1000);<br />
        $(this).text(&#8216;Show Now&#8217;);<br />
        return false;<br />
    });</p>
<p>    $(&#8216;#show a&#8217;).click(function(){<br />
        $(&#8216;div#login&#8217;).animate({opacity: &#8216;toggle&#8217;}, &#8217;1000&#8242;);<br />
        return false;<br />
    });</p>
<p>    $(&#8216;div.label&#8217;).click(function(){<br />
        var paraWidth = $(&#8216;div.speech p&#8217;).outerWidth();<br />
        var switchWidth = $(this).parent().outerWidth();<br />
        $(this).parent().animate({height: &#8216;+=20&#8242;}, &#8217;1000&#8242;)<br />
                        .animate({left: &#8216;+=5px&#8217;}, {duration: &#8217;100&#8242;, queue: false})<br />
                        .fadeTo(&#8216;slow&#8217;,0.5)<br />
                        .slideUp(&#8216;slow&#8217;)<br />
                        .fadeTo(&#8216;slow&#8217;,1, function(){<br />
                            $(this).css(&#8216;backgroundColor&#8217;, &#8216;#f00&#8242;);<br />
                        })<br />
                        .slideDown(&#8216;slow&#8217;);</p>
<p>    });</p>
<p>    $(&#8216;p:eq(2)&#8217;).css(&#8216;border&#8217;, &#8217;1px solid #333&#8242;)<br />
                .click(function() {<br />
                    $(this).slideUp(&#8216;slow&#8217;)<br />
                           .next().slideDown(&#8216;slow&#8217;);<br />
    });<br />
    $(&#8216;p:eq(3)&#8217;).css(&#8216;backgroundColor&#8217;, &#8216;#ccc&#8217;).hide();</p>
<p>    $(&#8216;p:eq(3)&#8217;).click(function() {<br />
        $(this).slideUp(&#8216;flow&#8217;);<br />
        $(&#8216;p:eq(2)&#8217;).slideDown(&#8216;flow&#8217;);<br />
    });<br />
});</p>
<p>Code em chơi 1 lèo vậy có sao hem anh nhỉ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonoop</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-17216</link>
		<dc:creator>sonoop</dc:creator>
		<pubDate>Sat, 25 Jun 2011 10:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-17216</guid>
		<description><![CDATA[Thanks anh DW, bài viết của anh có hệ thống đi theo một hướng từng tự rất dể hiểu.]]></description>
		<content:encoded><![CDATA[<p>Thanks anh DW, bài viết của anh có hệ thống đi theo một hướng từng tự rất dể hiểu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zhaolong</title>
		<link>http://www.izwebz.com/jquery/chuong-4-hieu-ung/comment-page-1/#comment-17020</link>
		<dc:creator>zhaolong</dc:creator>
		<pubDate>Sun, 05 Jun 2011 08:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.izwebz.com/?p=2562#comment-17020</guid>
		<description><![CDATA[Anh DW làm thêm cái video hướng dẫn nữa thì thật tuyệt. Mình đang học JQuery của anh. Chắc rùi sẽ có ajax thui :D. 

Thanks anh DW nhìu nhiu.]]></description>
		<content:encoded><![CDATA[<p>Anh DW làm thêm cái video hướng dẫn nữa thì thật tuyệt. Mình đang học JQuery của anh. Chắc rùi sẽ có ajax thui <img src='http://www.izwebz.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . </p>
<p>Thanks anh DW nhìu nhiu.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
