<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Văn Nam Blog's]]></title> 
<link>http://vannamdl.net/blog/index.php</link> 
<description><![CDATA[Tin học cho bạn và cho tôi! - FOR YOU AND FOR ME!]]></description> 
<language>vi</language> 
<copyright><![CDATA[Văn Nam Blog's]]></copyright>
<item>
<link>http://vannamdl.net/blog/read.php?294</link>
<title><![CDATA[ Featured Content Slider Using jQuery - Slide bằng jquery cực đẹp ]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Thu, 29 Jul 2010 00:20:24 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?294</guid> 
<description>
<![CDATA[ 
	Demo<br/><p align="center"><a href="http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/07/29/07/50181280362647.jpg" class="highslide" onclick="return hs.expand(this)"><img src="http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/07/29/07/50181280362647.jpg" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="Bấm xem ảnh ở cửa sổ mới" title="Bấm xem ảnh ở cửa sổ mới" border="0"/></a></p><br/>Tệp tin này chỉ tải được sau khi bạn đăng nhập. Hãy <a href="http://vannamdl.net/blog/login.php?job=register">Đăng ký</a>  hoặc  <a href="http://vannamdl.net/blog/login.php">Đăng nhập</a><br/><br/>Tags - <a href="http://vannamdl.net/blog/tag.php?tag=java" rel="tag">java</a>
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?248</link>
<title><![CDATA[Hiệu ứng lá rơi, tuyết rơi cho blog]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Sun, 07 Mar 2010 01:22:36 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?248</guid> 
<description>
<![CDATA[ 
	Các bạn tải file tuyetroi ờ file đính kèm về rồi up lên host vào thư mục <strong>images </strong>của blog<br/>sau đó chèn đoạn mã sau vào &lt;head&gt;mã thêm bên ngoài của blog<br/><div class="quote"><div class="quote-title">Trích dẫn</div><div class="quote-content">&lt;script type=&quot;text/javascript&quot; src=&quot;images/tuyetroi.js&quot;&gt;&lt;/script&gt;</div></div>Hoặc edit elemen.php của skin đang sài<br/>thêm vào &lt;head&gt; &lt;/head&gt; đoạn code dưới<br/><div class="quote"><div class="quote-title">Trích dẫn</div><div class="quote-content">&lt;script type=&quot;text/javascript&quot; src=&quot;images/tuyetroi.js&quot;&gt;&lt;/script&gt;</div></div><br/>Muốn thay tuyết rơi thành lá rơi thì bạn edit file tuyeroi.js<br/>tìm<div class="quote"><div class="quote-title">Trích dẫn</div><div class="quote-content"><a href="http://vannamdl.net/blog/images/snow.gif" target="_blank">http://vannamdl.net/blog/images/snow.gif</a></div></div>Rồi thay cái ảnh đó bằng hình chiếc lá chẳng hạn.<br/><br/>Máy cái hình lá và tuyết đây<br/><br/><a href="http://daugia247.com/auction/images/snow3.gif" class="highslide" onclick="return hs.expand(this)"><img src="http://daugia247.com/auction/images/snow3.gif" class="insertimage" alt="Highslide JS" title="点击图片放大" border="0" class="insertimage" alt="Bấm xem ảnh ở cửa sổ mới" title="Bấm xem ảnh ở cửa sổ mới" border="0"/></a><br/><a href="http://www.mediafire.com/?jy2nznuanlg" target="_blank">Bấm vào đây tải về</a><br/>demo : <a href="http://vannamdl.net/blog/index.php" target="_blank">http://vannamdl.net/blog/index.php</a><br/>Tags - <a href="http://vannamdl.net/blog/tag.php?tag=ma-java" rel="tag">ma-java</a>
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?210</link>
<title><![CDATA[code chống click phải 100%]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 11 Sep 2009 07:10:30 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?210</guid> 
<description>
<![CDATA[ 
	<div class="quote"><div class="quote-title">Trích dẫn</div><div class="quote-content">&lt;SCRIPT language=JavaScript&gt;<br/>document.onmousedown=click<br/>var times=0<br/>var times2=10<br/>function click() &#123;<br/>if ((event.button==2) &amp;#124;&amp;#124; (event.button==3)) &#123;<br/>if (times&gt;=1) &#123; earthquake() &#125;<br/>alert(&quot;™† No †™&quot;);<br/>alert(&quot;™† thay vao day†™&quot;);<br/>alert(&quot;™† Cấm Kích Phải†™&quot;);<br/>alert(&quot;™† Cấm Kích Phải†™&quot;);<br/>alert(&quot;™† Cấm Kích Phải †™&quot;);<br/>times++ &#125; &#125;<br/>function earthquake() &#123;<br/>alert(&quot;™† Sao lì vậy †™&quot;);<br/>window.moveTo(0, 0)<br/>window.moveTo(1, 1)<br/>window.moveTo(2, 2)<br/>window.moveTo(3, 3)<br/>window.moveTo(4, 4)<br/>window.moveTo(5, 5)<br/>window.moveTo(6, 6)<br/>window.moveTo(7, 7)<br/>window.moveTo(8, 8)<br/>window.moveTo(9, 9)<br/>window.moveTo(10, 10)<br/>window.moveTo(9, 9)<br/>window.moveTo(8, 8)<br/>window.moveTo(7, 7)<br/>window.moveTo(6, 6)<br/>window.moveTo(5, 5)<br/>window.moveTo(4, 4)<br/>window.moveTo(3, 3)<br/>window.moveTo(2, 2)<br/>window.moveTo(1, 1)<br/>alert(&quot;™† Nói Không Nghe Ah™†&quot;)<br/>alert(&quot;™† Lì Quá Trời™†&quot;)<br/>tremmors()<br/>&#125;<br/>function tremmors() &#123;<br/>window.moveTo(0, 0)<br/>window.moveTo(1, 1)<br/>window.moveTo(2, 2)<br/>window.moveTo(3, 3)<br/>window.moveTo(4, 4)<br/>window.moveTo(5, 5)<br/>window.moveTo(6, 6)<br/>window.moveTo(7, 7)<br/>window.moveTo(8, 8)<br/>window.moveTo(9, 9)<br/>window.moveTo(10, 10)<br/>window.moveTo(11, 11)<br/>window.moveTo(12, 12)<br/>window.moveTo(9, 9)<br/>window.moveTo(8, 8)<br/>window.moveTo(7, 7)<br/>window.moveTo(6, 6)<br/>window.moveTo(5, 5)<br/>window.moveTo(4, 4)<br/>window.moveTo(3, 3)<br/>window.moveTo(2, 2)<br/>window.moveTo(1, 1)<br/>tremmors()<br/>&#125;<br/>&lt;/SCRIPT&gt; </div></div><br/>Tags - <a href="http://vannamdl.net/blog/tag.php?tag=java" rel="tag">java</a>
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?176</link>
<title><![CDATA[Code ngày tháng có thêm lời chào thú vị bằng JavaScript]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Sun, 12 Jul 2009 02:33:26 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?176</guid> 
<description>
<![CDATA[ 
	từ 1 đến < 5 giờ sáng sẽ có hiện ngày tháng năm và thêm một lời chào : Bạn dậy sớm quá vậy?Hại sức khỏe lắm.Chúc một ngày vui vẻ<br/><br/>từ 5 - 10 có lời chào : Chào buổi sáng và chúc một ngày tốt lành<br/><br/>từ 11 - 12 có lời chào : Chào buổi trưa - Bạn ăn cơm chưa vậy ?<br/><br/>từ 13 đến <17 giờ có lời chào : Chào buổi chiều<br/><br/>từ 17 đến <18 giờ có lời chào : Chào buổi chiều - Chắc là bạn ăn cơm rồi nhỉ ?<br/><br/>từ 18 đến <21 giờ có lời chào : Chào buổi tối<br/><br/>từ 21 đến 24 có lời chào : Chúc bạn ngủ ngon và có giấc mơ đẹp<br/><br/><div class="code">&lt;script language=&quot;JavaScript&quot;&gt;&lt;!--// Store the date In avarlabled = new Date()dateText = &quot;&quot;// Get the cuurent day and convert it to the name of the daydayValue = d.getDay()if(dayValue == 0)dateText += &quot;Chủ Nhật&quot;else if (dayValue == 1)dateText += &quot;Thứ hai&quot;else if (dayValue == 2)dateText += &quot;Thứ Ba&quot;else if (dayValue == 3)dateText += &quot;Thứ Tư&quot;else if (dayValue == 4)dateText += &quot;Thứ Năm&quot;else if (dayValue == 5)dateText += &quot;Thứ Sáu&quot;else if (dayValue == 6)dateText += &quot;Thứ Bảy&quot;// Get the current date; if it&#039;s before 2000,add 1900dateText += &quot;, Ngày &quot; + d.getDate()// lấy tháng hiện tại và chuyển nó sang tháng theo tiếng Việt NammonthValue = d.getMonth()dateText += &quot; &quot;if (monthValue == 0)dateText += &quot;Tháng 1&quot;if (monthValue == 1)dateText += &quot;Tháng 2&quot;if (monthValue == 2)dateText += &quot;Tháng 3&quot;if (monthValue == 3)dateText += &quot;Tháng 4if (monthValue == 4)dateText += &quot;Tháng 5&quot;if (monthValue == 5)dateText += &quot;Tháng 6&quot;if (monthValue == 6)dateText += &quot;Tháng 7&quot;if (monthValue == 7)dateText += &quot;Tháng 8&quot;if (monthValue ==&nbsp;&nbsp;dateText += &quot;Tháng 9&quot;if (monthValue == 9)dateText += &quot;Tháng 10&quot;if (monthValue == 10)dateText += &quot;Tháng 11&quot;if (monthValue == 11)dateText += &quot;Tháng 12&quot;// Get the current year; if it&#039;s before 2000, add 1900if (d.getYear() &lt; 2000)dateText += &quot;, Năm &quot; + (1900 + d.getYear())elsedateText += &quot;, Năm &quot; + (d.getYear())// Get the current minutesminuteValue = d.getMinutes()if (minuteValue &lt; 10)minuteValue = &quot;0&quot; + minuteValue// Get the current hourshourValue = d.getHours()// Customize the greeting based on the current hoursif (hourValue &gt;=5 &amp;&amp; hourValue &lt;= 10)&#123;<br/><br/>timeText =&nbsp;&nbsp;&quot; Chào buổi sáng và chúc một ngày tốt lành&quot;&#125;else if (hourValue &gt; 10 &amp;&amp; hourValue &lt;= 12)&#123;<br/><br/>timeText =&nbsp;&nbsp;&quot; Chào buổi trưa - Bạn ăn cơm chưa vậy ?&quot;&#125;else if (hourValue &gt;= 13 &amp;&amp; hourValue &lt;17)&#123;<br/><br/>timeText = &quot; Chào buổi chiều &quot;&#125;else if (hourValue &gt;=17 &amp;&amp; hourValue &lt;18)&#123;timeText = &quot; Chào buổi chiều - Chắc là bạn ăn cơm rồi nhỉ ?&quot;&#125;else if (hourValue &gt;=18 &amp;&amp; hourValue&lt;21)&#123;<br/><br/>timeText =&nbsp;&nbsp;&quot; Chào buổi tối&quot;&#125;else if( hourValue &gt;=21 &amp;&amp; hourValue &lt;=24)&#123;timeText =&nbsp;&nbsp;&quot;&nbsp;&nbsp;Chúc bạn ngủ ngon và có giấc mơ đẹp&quot;&#125;else if(hourValue &gt;=1 &amp;&amp; hourValue &lt;5 )&#123;timeText = &quot;Bạn dậy sớm quá vậy?Hại sức khỏe lắm.Chúc một ngày vui vẻ&quot;&#125;<br/><br/>// Write the greeting, the date, and the time to the pagedocument.write(&nbsp;&nbsp;dateText + &quot;.&quot; + timeText + &quot;.&quot;)//http://vannamdl.net--&gt;&lt;/script&gt;</div><br/><br/>Tags - <a href="http://vannamdl.net/blog/tag.php?tag=java" rel="tag">java</a>
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?170</link>
<title><![CDATA[Set homepage trên firefox]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Wed, 01 Jul 2009 13:03:48 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?170</guid> 
<description>
<![CDATA[ 
	Nếu bạn dùng các kiểu sethome thông thường thì nó chỉ hoạt động trên IE còn firefox lại ko, script sau sẽ giải quyết việc đó !<br/><div class="code">&lt;script language=&quot;javascript&quot;&gt;&nbsp;&nbsp; function setHomepage()&nbsp;&nbsp; &#123;&nbsp;&nbsp;&nbsp;&nbsp;if (document.all)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.body.style.behavior=&#039;url(#default#homepage)&#039;;&nbsp;&nbsp;&nbsp;&nbsp; document.body.setHomePage(&#039;http://vannamdl.net&#039;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (window.sidebar)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(window.netscape)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netscape.security.PrivilegeManager.enablePrivilege(&quot;UniversalXPConnect&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(e)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;&nbsp;&nbsp;&nbsp;&nbsp; alert(&quot;this action was aviod by your browser，if you want to enable，please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var prefs = Components.classes&#91;&#039;@mozilla.org/preferences-service;1&#039;&#93;.getService(Components. interfaces.nsIPrefBranch);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prefs.setCharPref(&#039;browser.startup.homepage&#039;,&#039;http://vannamdl.net&#039;);&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp; &#125;&nbsp;&nbsp;&lt;/script&gt;</div><br/>Sau đó chèn code này vào ở đâu muốn hiển thị<br/><div class="code">&lt;a href=&quot;javascript:setHomepage()&quot;&gt;Set homepage&lt;/a&gt;</div><br/>Tags - <a href="http://vannamdl.net/blog/tag.php?tag=java" rel="tag">java</a>
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?112</link>
<title><![CDATA[Pháo hoa đẹp với mã JavaScript]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 20 Feb 2009 18:04:58 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?112</guid> 
<description>
<![CDATA[ 
	&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;Background Fireworks&lt;/title&gt;<br/>&lt;!--[if IE ]&gt;<br/>&lt;style type=&quot;text/css&quot;&gt;<br/>body &#123; overflow: hidden; &#125;<br/>v&#92;:* &#123; behavior: url(#default#VML); &#125;<br/>&lt;/style&gt;<br/>&lt;![endif]--&gt;<br/>&lt;/head&gt;<br/><br/>&lt;body&gt;<br/>&lt;!--[if IE ]&gt;<br/>&lt;script language=&quot;JavaScript&quot;&gt;<br/>colors = new Array()<br/>// Define your own color combinations<br/>colors[0] = new Array(&#039;yellow&#039;, &#039;lime&#039;);<br/>colors[1] = new Array(&#039;silver&#039;, &#039;green&#039;)<br/>colors[2] = new Array(&#039;silver&#039;, &#039;blue&#039;);<br/>colors[3] = new Array(&#039;silver&#039;, &#039;purple&#039;);<br/>colors[4] = new Array(&#039;purple&#039;, &#039;white&#039;);<br/>colors[5] = new Array(&#039;blue&#039;, &#039;silver&#039;);<br/>colors[6] = new Array(&#039;red&#039;, &#039;fuchsia&#039;);<br/>colors[7] = new Array(&#039;yellow&#039;, &#039;red&#039;);<br/>// Define the maximum number of fire arrows<br/>maximum = 1000;<br/>vmlobj=&#039;&#039;;<br/>for(i = 0; i &lt; 12; i++)&#123;<br/>vmlobj += &#039;&lt;div id=&quot;ster&#039;+i+&#039;&quot; style=&quot;position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;&quot;&gt;&#039;;<br/>vmlobj += &#039;&lt;v:shape style=&quot;width:15px; height:15px;&quot; fillcolor=&quot;yellow&quot; coordorigin=&quot;0,0&quot; coordsize=&quot;200 200&quot;&gt;&#039;;<br/>vmlobj += &#039;&lt;v:path v=&quot;m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e&quot;/&gt;&#039;;<br/>vmlobj += &#039;&lt;v:stroke on=&quot;false&quot; /&gt;&lt;/v:shape&gt;&lt;/div&gt;&#039;;<br/>&#125;<br/>document.write(vmlobj); vmlobj = null;<br/>aantal = 0;<br/>function begin()<br/>&#123;<br/>try &#123;<br/>if(aantal == maximum)&#123; return;&#125;<br/>kleurschema = Math.floor(Math.random() * colors.length);<br/>posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180));<br/>posLinks = (posLinks &lt; 170)? 170: posLinks;<br/>posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180));<br/>posBoven = (posBoven &lt; 170)? 170: posBoven;<br/>straal = 0; uiteen = true; teller = 1; flikkereffect = false;<br/>for(var i = 0; i &lt; 12; i++)&#123;<br/>document.getElementsByTagName(&#039;shape&#039;)[i].setAttribute(&#039;fillcolor&#039;, colors[kleurschema][0]);<br/>document.getElementById(&#039;ster&#039;+i).style.visibility = &#039;hidden&#039;; // 5.0 fix<br/>document.getElementById(&#039;ster&#039;+i).style.left = posLinks;<br/>document.getElementById(&#039;ster&#039;+i).style.top = posBoven;<br/>&#125;<br/>document.getElementById(&#039;ster0&#039;).style.top = (document.body.clientHeight - 20);<br/>document.getElementById(&#039;ster0&#039;).style.visibility = &#039;visible&#039;;<br/>omhoog();<br/>&#125; catch(e)&#123;&#125;<br/>&#125;<br/>function omhoog()<br/>&#123;<br/>try &#123;<br/>positie = parseInt(document.getElementById(&#039;ster0&#039;).style.to p);<br/>if(positie &gt; posBoven)&#123;<br/>document.getElementById(&#039;ster0&#039;).style.top = (positie - 25);<br/>setTimeout(&#039;omhoog()&#039;, 50);<br/>&#125; else &#123;<br/>for(i = 1; i &lt; 12; i++)&#123;<br/>document.getElementById(&#039;ster&#039;+i).style.top = positie;<br/>document.getElementById(&#039;ster&#039;+i).style.visibility = &#039;visible&#039;;<br/>&#125;<br/>uiteenspatten();<br/>&#125;<br/>&#125; catch(e)&#123;&#125;<br/>&#125;<br/>function uiteenspatten()<br/>&#123;<br/>try &#123;<br/>if(straal &gt; 120 &amp;&amp; straal % 10 == 0)&#123;<br/>flikkereffect = true;<br/>teller = (teller == colors[kleurschema].length)? 0: (teller+1);<br/>&#125;<br/>for(var i = 0; i &lt; 12; i++)&#123;<br/>var hoek = i * 30;<br/>var piHoek = Math.PI - Math.PI / 180 * hoek;<br/>var links = posLinks + Math.round(straal * Math.sin(piHoek));<br/>var boven = positie + Math.round(straal * Math.cos(piHoek));<br/>document.getElementById(&#039;ster&#039;+i).style.left = links;<br/>document.getElementById(&#039;ster&#039;+i).style.top = boven;<br/>if(flikkereffect)&#123;<br/>document.getElementsByTagName(&#039;shape&#039;)[i].setAttribute(&#039;fillcolor&#039;, colors[kleurschema][teller]);<br/>&#125;<br/>&#125;<br/>if(straal &lt; 160 &amp;&amp; uiteen)&#123;<br/>straal += (straal &lt; 120)? 10: 5;<br/>setTimeout(&#039;uiteenspatten()&#039;, 50);<br/>&#125;<br/>else if(straal &gt; 120)&#123;<br/>uiteen = false; straal -= 5;<br/>setTimeout(&#039;uiteenspatten()&#039;, 50);<br/>&#125;<br/>else if(straal &lt;= 120)&#123;<br/>for(var i = 0; i &lt; 12; i++)&#123;<br/>document.getElementById(&#039;ster&#039;+i).style.visibility = &#039;hidden&#039;;<br/>&#125;<br/>aantal++;<br/>setTimeout(&#039;begin()&#039;, 500);<br/>&#125;<br/>&#125; catch(e) &#123;&#125;<br/>&#125;<br/><br/>window.onload=begin;<br/><br/>&lt;/script&gt;<br/>&lt;![endif]--&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?111</link>
<title><![CDATA[Hiệu ứng Java với Menu trượt đa năng]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 20 Feb 2009 18:03:17 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?111</guid> 
<description>
<![CDATA[ 
	CODE<br/>&lt;style&gt;<br/>&lt;!--<br/>#slidemenubar, #slidemenubar2&#123;<br/>position:absolute;<br/>border:2.5px solid gray;<br/>font: 12px Arial;<br/>line-height:20px;<br/>html &#123; overflow-x: hidden; overflow-y: auto; &#125;<br/>a:link, a:visited, a:active &#123; text-decoration: none; color: gray &#125;<br/>a:hover &#123;cursor: crosshair; color: black; text-decoration:none &#125;<br/>&lt;/style&gt;<br/>&lt;script language=&quot;JavaScript1.2&quot;&gt;<br/>var slidemenu_width=150 //specify width of menu (in pixels)<br/>var slidemenu_reveal=12 //specify amount that menu should protrude initially<br/>var slidemenu_top=170 //specify vertical offset of menu on page<br/><br/>var ns4=document.layers?1:0<br/>var ie4=document.all&amp;&amp;navigator.userAgent.indexOf(&quot;Opera&quot;)==-1<br/>var ns6=document.getElementById&amp;&amp;!document.all?1:0<br/>// Redistributed for Vn communities by all4elva.com<br/>if (ie4&#124;&#124;ns6)<br/>document.write(&#039;&lt;div id=&quot;slidemenubar2&quot; style=&quot;left:&#039;+((slidemenu_width-slidemenu_reveal)*-1)+&#039;; top:&#039;+slidemenu_top+&#039;; width:&#039;+slidemenu_width+&#039;&quot; onMouseover=&quot;pull()&quot; onMouseout=&quot;draw()&quot;&gt;&#039;)<br/>else if (ns4)&#123;<br/>document.write(&#039;&lt;style&gt;&#92;n#slidemenubar&#123;&#92;nwidth:&#039;+slidemenu_width+&#039;;&#125;&#92;n&lt;&#92;/style&gt;&#92;n&#039;)<br/>document.write(&#039;&lt;layer id=&quot;slidemenubar&quot; left=0 top=&#039;+slidemenu_top+&#039; width=&#039;+slidemenu_width+&#039; onMouseover=&quot;pull()&quot; onMouseout=&quot;draw()&quot; visibility=hide&gt;&#039;)<br/>&#125;<br/><br/>var sitems=new Array()<br/><br/>///////////bạn hãy thay cái link dưới cho phù hợp/////////////////////////////////<br/>sitems[0]=[&quot;&lt;big&gt;&lt;font face=&#039;Arial&#039;&gt;&lt;b&gt;Menu&lt;/b&gt;&lt;/font&gt;&lt;/big&gt;&quot;, &quot;&quot;]<br/>sitems[1]=[&quot;Home&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/index.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/index.htm&quot;</a>]<br/>sitems[2]=[&quot;Guest Book&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/guestbook.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/guestbook.htm&qu...</a>]<br/>sitems[3]=[&quot;My Profile&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/myprofile.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/myprofile.htm&qu...</a>]<br/>sitems[4]=[&quot;Preferences&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/preferences.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/preferences.htm&...</a>]<br/>sitems[5]=[&quot;My websites&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/mywebsites.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/mywebsites.htm&q...</a>]<br/>sitems[6]=[&quot;Contact Me&quot;,&quot;<a href="http://www.freewebs.com/lamdairex/contactme.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/contactme.htm&qu...</a>]<br/>sitems[7]=[&quot;Friends Link&quot;, &quot;<a href="http://www.freewebs.com/lamdairex/friendslink.htm&quot;" target="_blank">http://www.freewebs.com/lamdairex/friendslink.htm&...</a>]<br/>//If you want the links to load in another frame/window, specify name of target (ie: target=&quot;_new&quot;)<br/>var target=&quot;&quot;<br/><br/>/////////////////////////////////////////////////////////<br/><br/>if (ie4&#124;&#124;ns4&#124;&#124;ns6)&#123;<br/>for (i=0;i&lt;sitems.length;i++)&#123;<br/>if (sitems[i][1])<br/>document.write(&#039;&lt;a href=&quot;&#039;+sitems[i][1]+&#039;&quot; target=&quot;&#039;+target+&#039;&quot;&gt;&#039;)<br/>document.write(sitems[i][0])<br/>if (sitems[i][1])<br/>document.write(&#039;&lt;/a&gt;&#039;)<br/>document.write(&#039;&lt;br&gt;&#92;n&#039;)<br/>&#125;<br/>&#125;<br/><br/>function regenerate()&#123;<br/>window.location.reload()<br/>&#125;<br/>function regenerate2()&#123;<br/>if (ns4)&#123;<br/>document.slidemenubar.left=((slidemenu_width-slidemenu_reveal)*-1)<br/>document.slidemenubar.visibility=&quot;show&quot;<br/>setTimeout(&quot;window.onresize=regenerate&quot;,400)<br/>&#125;<br/>&#125;<br/>window.onload=regenerate2<br/><br/>rightboundary=0<br/>leftboundary=(slidemenu_width-slidemenu_reveal)*-1<br/><br/>if (ie4&#124;&#124;ns6)&#123;<br/>document.write(&#039;&lt;/div&gt;&#039;)<br/>themenu=(ns6)? document.getElementById(&quot;slidemenubar2&quot;).style : document.all.slidemenubar2.style<br/>&#125;<br/>else if (ns4)&#123;<br/>document.write(&#039;&lt;/layer&gt;&#039;)<br/>themenu=document.layers.slidemenubar<br/>&#125;<br/><br/>function pull()&#123;<br/>if (window.drawit)<br/>clearInterval(drawit)<br/><br/>pullit=setInterval(&quot;pullengine()&quot;,10)<br/>&#125;<br/>function draw()&#123;<br/>clearInterval(pullit)<br/>drawit=setInterval(&quot;drawengine()&quot;,10)<br/>&#125;<br/>function pullengine()&#123;<br/>if ((ie4&#124;&#124;ns6)&amp;&amp;parseInt(themenu.left)&lt;rightboundary)<br/>themenu.left=parseInt(themenu.left)+10<br/>else if(ns4&amp;&amp;themenu.left&lt;rightboundary)<br/>themenu.left+=10<br/>else if (window.pullit)&#123;<br/>themenu.left=0<br/>clearInterval(pullit)<br/>&#125;<br/>&#125;<br/><br/>function drawengine()&#123;<br/>if ((ie4&#124;&#124;ns6)&amp;&amp;parseInt(themenu.left)&gt;leftboundary)<br/>themenu.left=parseInt(themenu.left)-10<br/>else if(ns4&amp;&amp;themenu.left&gt;leftboundary)<br/>themenu.left-=10<br/>else if (window.drawit)&#123;<br/>themenu.left=leftboundary<br/>clearInterval(drawit)<br/>&#125;<br/>&#125;<br/>&lt;/script&gt;
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?110</link>
<title><![CDATA[Mã Java với hiệu ứng Chờ giây lát trong lúc tải]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 20 Feb 2009 17:59:29 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?110</guid> 
<description>
<![CDATA[ 
	CODE<br/>&lt;div id=&quot;waitDiv&quot; style=&quot;position:absolute; left:40%; top:50%; visibility:hidden; text-align:center;&quot;&gt;<br/>&lt;!-- HTML CODE --&gt;<br/>&lt;table cellpadding=&quot;3&quot; cellspacing=&quot;3&quot; class=&quot;waitbox&quot;&gt;&lt;tr&gt;<br/>&lt;td align=&quot;center&quot;&gt;<br/>&lt;b&gt;&lt;big&gt;Đang Nạp Dữ Liệu ....&lt;/big&gt;&lt;/b&gt;&lt;br /&gt;<br/>&lt;img src=&quot;<a href="http://n.1asphost.com/tongthongvn/diendan/await.gif&quot;" target="_blank">http://n.1asphost.com/tongthongvn/diendan/await.gi...</a> alt=&quot;&quot; /&gt;<br/>&lt;br /&gt;Xin vui lòng đợi.&lt;/td&gt;&lt;/tr&gt;<br/>&lt;/table&gt;<br/>&lt;!-- HTML CODE --&gt;<br/>&lt;/div&gt;<br/><br/>&lt;script type=&quot;text/javascript&quot;&gt;<br/>&lt;!--<br/>var DHTML = (document.getElementById &#124;&#124; document.all &#124;&#124; document.layers);<br/><br/>function ap_getObj(name) &#123;<br/>if (document.getElementById) &#123;<br/>return document.getElementById(name).style;<br/>&#125; else if (document.all) &#123;<br/>return document.all[name].style;<br/>&#125; else if (document.layers) &#123;<br/>return document.layers[name];<br/>&#125;<br/>&#125;<br/><br/>function ap_showWaitMessage(div, flag) &#123;<br/>if (!DHTML) return;<br/><br/>var x = ap_getObj(div);<br/>x.visibility = (flag) ? &#039;visible&#039;:&#039;hidden&#039;<br/><br/>if (!document.getElementById)<br/><br/>if (document.layers) x.left=280/2;<br/>return true;<br/>&#125;<br/><br/>ap_showWaitMessage(&quot;waitDiv&quot;, 1);<br/>//--&gt;<br/>&lt;/script&gt;
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?109</link>
<title><![CDATA[JAVASCRIPT Phần 4]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 20 Feb 2009 17:57:48 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?109</guid> 
<description>
<![CDATA[ 
	SỰ KIỆN TRONG JAVASCRIPT<br/>Các sự kiện cung cấp các tương tác với cửa sổ trình duyệt và tài liệu hiện hành đang được load<br/>trong trang web, các hành động của user khi nhập dữ liệu vào form và khi click vào các button<br/>trong form.<br/>Khi sử dụng bộ quản lý sự kiện bạn có thể viết các hàm để biểu diễn cho các hành động dựa vào<br/>các sự kiện đựoc chọn<br/>Bảng sự kiện trong Javascript<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 16<br/>Tên sự kiện Mô tả<br/>blur Xãy ra khi điểm tập trungcủa ngõ vào được di chuyển ra<br/>khỏi một thành phần của Form (Khi user click ra ngoài một<br/>trường)<br/>click Khi user Click vào 1 link hoặc thành phần của Form.<br/>change Xãy ra khi giá trị của Form Field bị thay đổi bởi user.<br/>focus Xãy ra khi ngõ vào tập trung vào thành phần của Form<br/>load Xãy ra khi một trang được Load vào trong bộ duyệt.<br/>mouseover Xãy ra khi User di chuyển mouse qua một Hyperlink.<br/>select Xãy ra khi User chọn 1 trường của thành phần Form.<br/>submit Xãy ra khi User xác nhận đã nhập xong dữ liệu.<br/>unload Xãy ra khi User rời khỏi trang Web.<br/>Bộ quản lý sự kiện (Event Handler)<br/>Để quản lý các sự kiện trong javascript ta dùng các bộ quản lý sự kiện.<br/>Cú pháp của một bộ quản lý sự kiện:<br/>&lt;HTML_TAG OTHER_ATTRIBUTES eventHandler=”JavaScript Program”&gt;<br/>Ví dụ:<br/>&lt;INPUT TYPE=”text” onChange=”checkField(this)”&gt;<br/>Ví dụ:<br/>&lt;INPUT TYPE=”text” onChange=”<br/>if (parseInt(this.value) &lt;= 5) &#123;<br/>alert(‘Please enter a number greater than 5.’);<br/>&#125;<br/>“&gt;<br/>Ví dụ:<br/>&lt;INPUT TYPE=”text” onChange=”<br/>alert(‘Thanks for the entry.’);<br/>confirm(‘Do you want to continue?’);<br/>“&gt;<br/>Từ khóa this: quy cho đối tượng hiện hành.Trong Javascript Form là mộ đối tượng.Các thành<br/>phần của Form bao gồm text fields, checkboxes, radio buttons, buttons, và selection lists.<br/>Ví dụ:<br/>&lt;INPUT TYPE=”text” onChange=”checkField(this)”&gt;<br/>Các bộ quản lý sự kiện trong Javascript<br/>Đối tượng Bộ quản lý sự kiện tương ứng.<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 17<br/>Selection list onBlur, onChange, onFocus<br/>Text element onBlur, onChange, onFocus, onSelect<br/>Textarea element onBlur, onChange, onFocus, onSelect<br/>Button element OnClick<br/>Checkbox onClick<br/>Radio button OnClick<br/>Hypertext link onClick, onMouseOver<br/>Reset button OnClick<br/>Submit button OnClick<br/>Document onLoad, onUnload<br/>Window onLoad, onUnload<br/>Form onSubmit<br/>5<br/>Cách dùng bộ quản lý sự kiện onLoad &amp; onUnload<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Example 5.1&lt;/TITLE&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY onLoad=”alert(‘Welcome to my page!’);”<br/>onUnload=”alert(‘Goodbye! Sorry to see you go!’);”&gt;<br/>&lt;IMG SRC=”title.gif”&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>MTWRFSS<br/>Vi du:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Example 5.1&lt;/TITLE&gt;<br/>&lt;script LANGUAGE=”JavaScript”&gt;<br/>&lt;!-- HIDE FROM OTHER BROWSERS<br/>var name = “”;<br/>// STOP HIDING FROM OTHER BROWSERS --&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY onLoad=”<br/>name = prompt(‘Enter Your Name:’,’Name’);<br/>alert(‘Greetings ‘ + name + ‘, welcome to my page!’);”<br/>onUnload=” alert(Goodbye ‘ + name + ‘, sorry to see you go!’);”&gt;<br/>&lt;IMG SRC=”title.gif”&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Vi du<br/>MTWRFSS<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 18<br/>&lt;TITLE&gt;Example 5.1&lt;/TITLE&gt;<br/>&lt;script LANGUAGE=”JavaScript”&gt;<br/>&lt;!-- HIDE FROM OTHER BROWSERS<br/>// DEFINE GLOBAL VARIABLE<br/>var name = “”;<br/>function hello() &#123;<br/>name = prompt(‘Enter Your Name:’,’Name’);<br/>alert(‘Greetings ‘ + name + ‘, welcome to my page!’);<br/>&#125;<br/>function goodbye() &#123;<br/>alert(Goodbye ‘ + name + ‘, sorry to see you go!’);<br/>&#125;<br/>// STOP HIDING FROM OTHER BROWSERS --&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY onLoad=”hello();” onUnload=”goodbye();”&gt;<br/>&lt;IMG SRC=”title.gif”&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Các sự kiện và Form<br/>Cac sự kiện được sử dụng để truy xuất Form như:<br/>OnClick, onSubmit, onFocus, onBlur, và onChange.<br/>Ví dụ:<br/>&lt;INPUT TYPE=text NAME=”test” VALUE=”test”<br/>onBlur=”alert(‘Thank You!’);”<br/>onChange=”check(this);”&gt;<br/>Khi giá trị thay đổi function check() sẽ được gọi. Ta dùng từ khóa this để chuyển đối tượng của<br/>trường hiện hành đến hàm check()<br/>Bạn cũng có thể dựa vào các phương pháp và các thuộc tính của đối tượng bằng phát biểu sau:<br/>this.methodName() &amp; this.propertyName.<br/>Ví dụ:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Example 5.3&lt;/TITLE&gt;<br/>&lt;script LANGUAGE=”JavaScript”&gt;<br/>&lt;!-- HIDE FROM OTHER BROWSERS<br/>function calculate(form) &#123;<br/>form.results.value =<br/>eval(form.entry.value);<br/>&#125;<br/>function getExpression(form) &#123;<br/>form.entry.blur();<br/>form.entry.value = prompt(“Please<br/>enter a JavaScript mathematical<br/>expression”,””);<br/>calculate(form);<br/>&#125;<br/>//STOP HIDING FROM OTHER BROWSERS --&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY&gt;<br/>&lt;FORM METHOD=POST&gt;<br/>Enter a JavaScript mathematical<br/>expression:<br/>&lt;INPUT TYPE=text NAME=”entry”<br/>VALUE=””<br/>onFocus=”getExpression(this.form);”&gt;<br/><br/><br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 19<br/>The result of this expression is:<br/>&lt;INPUT TYPE=text NAME=”results”<br/>VALUE=””<br/>onFocus=”this.blur();”&gt;<br/>&lt;/FORM&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>MTWRFSS<br/>formObjectName.fieldnameùng để chỉ tên trường của hiện hành trong Form.<br/>formObjectName.fieldname.value: dùng lấy giá trị của trường form hiện hành.<br/>Sử dụng vòng lặp trong JavaScript<br/>1 . Vòng lặp for :<br/>Cú pháp :<br/>for ( init value ; condition ; update expression )<br/>Ví dụ :<br/>for (i = 0 ; i &lt; 5 ; i++)<br/>&#123;<br/>lệnh ;<br/>&#125;<br/>Ví dụ:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt; for loop Examle &lt;/TITLE&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY&gt;<br/>&lt;script LANGUAGE=&quot;JavaScript&quot;&gt;<br/>&lt;!- -<br/>var name=prompt(&quot;What is your name?&quot; ,&quot;name&quot;);<br/>var query= &quot; &quot; ;<br/>document.write(&quot;&lt;H1&gt;&quot; + name + &quot; &#039;s 10 favorite foods &lt;/H1&gt; &quot;);<br/>for (var i=1 ;i&lt;=10;i++)<br/>&#123;<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 20<br/>document.write(i + &quot; &quot; + prompt(&#039;Enter food number &#039; + i, &#039;food&#039; ) +<br/>&#039;<br/>&#039;);<br/>&#125;<br/>- -&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>2 . Vòng lặp while :<br/>Cú pháp:<br/>While ( điều kiện)<br/>&#123;<br/>lệnh JavaScript ;<br/>&#125;<br/>Ví dụ:<br/>var num=1;<br/>while(num&lt;=10)<br/>&#123;<br/>document.writeln(num);<br/>num++;<br/>&#125;<br/>Ví dụ:<br/>var answer=” “ ;<br/>var correc=100;<br/>var question=” what is 10*10 ?” ;<br/>while(answer!=correct)<br/>&#123;<br/>answer=prompt(question,”0”);<br/>&#125;<br/>3. Tạo mảng với vòng lặp for:<br/>function createArray(num)<br/>&#123;<br/>this.length=num;<br/>for ( var j=0 ; j&lt;num; j++)<br/>this[j]=0;<br/>&#125;<br/>Hàm sẽ tạo một mảng có giá trị index bắt đầu là 0 và gán tất cả các giá trị của mảng về 0 .<br/>Để sử dụng đối tượng mảng ta có thể làm như sau:<br/>newArray= new createArray(4)<br/>Sẽ tạo ra một mảng gồm 4 thành phần newArray[0] … NewArray[3]<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 21<br/>Sử dụng đối tượng Windows<br/>Window là đối tượng của môi trường Navigator,ngoài các thuộc tính Window đối tượng window<br/>còn giữ các đối tượng khác mà có thể được xem như là các thành phần (member) của window,<br/>các đối tượng đó là:<br/>• Các frame đã được tạo<br/>• Các đối tượng location và histtory<br/>• Đối tượng document<br/>Đối tượng document chứa (encompasses) tất cả các thành phần trong trang HTML.Đây là một đối<br/>tượng hoàn hảo có các đối tượng khác của JavaScript gán (attached) vào nó (như là<br/>anchor,form,history,link).Hầu như mọi chương trình JavaScript đều có sử dụng đối tượng này để<br/>tham khảo đến các thành phần trong trang HTML.<br/>1) Các thuộc tính (properties) của đối tượng document<br/>a . alink<br/>b . anchor<br/>c . bgColor<br/>d . cookies<br/>e . fgColor<br/>f . form<br/>g . lastModified<br/>h . linkColor<br/>i . links<br/>j . location<br/>k . referrer<br/>l . title<br/>m . vlinkColor<br/>2) Các hành vi (Methods) của đối tượng document<br/>a . clear()<br/>b . close()<br/>c . open()<br/>d . write()<br/>e . writeln()<br/>3) Các thuộc tính của đối tượng Window<br/>a . defaultStatus : Giá trị mặt nhiên được hiển thị ở thanh trạng thái<br/>b . frames : Mảng các đối tượng chứa đựng một mục cho mỗi frame con trong một frame tài liệu<br/>c . parent : Được sử dụng trong FRAMSET<br/>d . self : Cửa sổ hiện hành , dùng để phân biệt giữa các cửa sổ hiện hành và các forms có cùng<br/>tên .<br/>e . status : Giá trị của chuỗi văn bản được hiển thị tại thanh status bar.Dùng để hiển thi các thông<br/>báo cho người sử dụng .<br/>f . top : Đỉnh cao nhất của cửa sổ cha<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 22<br/>g . window<br/>4) Các hành vi (Methods) của đối tượng window<br/>a . alert() : Hiện 1 thông báo trong hộp thoại với OK button.<br/>b . close() : Đóng cửa sổ hiện hành.<br/>c . open() : Mở một cửa sổ mới với 1 tài liệu được chỉ ra hoặc mở một tài liệu trong một tên cửa<br/>sổ được chỉ định.<br/>d . prompt() : Hiện một hộp thông báo<br/>e . setTimeout() :<br/>f . clearTimeout() :<br/>Hành vi này cung cấp cách gọi phát biểu JavaScript sau một khoảng thời gian trôi qua .Ngoài<br/>ra đối tượng window có thể thực hiện event handler : onLoad=statement<br/>Làm việc với status bar<br/>Khi user di chuyển qua một hyperlink ta có thể hiện ra một thông báo tại thanh status bar của<br/>bowser dựa vào event handler onMouseOver và bằng cách đặt self.status là một chuổi (hoặc<br/>window.status).<br/>Ví dụ:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Status Example&lt;/TITLE&gt;<br/>&lt;BODY&gt;<br/>Lop chuyen dề PLC<br/>Thiet Ke Web<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Mở và đóng các cửa sổ<br/>Sử dụng phương pháp open() và close() ta có thể điều khiển việc mở và đóng cửa sổ chứa tài<br/>liệu.<br/>open (“URL” , “WindowName” , “featureList”) ;<br/>Các đặc điểm trong phương pháp open() gồm có:<br/>• toolbar : tạo một toolbar chuẩn<br/>• location: tạo một vùng location<br/>• directories: tạo các button thư mục chuẩn<br/>• status: tạo thanh trạng thái.<br/>• menubar : tạo thanh menu tại đỉnh của cửa sổ<br/>• scrollbars: tạo thanh scroll bar<br/>• resizable: cho phép user thay đổi kích thước cửa sổ<br/>• width : chỉ định chiều rộng cửa sổ theo đơn vị pixel<br/>• height : chỉ định chiều cao cửa sổ theo đơn vị pixel<br/>Ví dụ:<br/>window.open( “plc.htm”,”newWindow”,”toolbar=yes,locat ion=1,directories=yes,status=yes,<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 23<br/>menubar=1,scroolbar=yes,resizable=0,copyhistory=1, width=200,height=200”);<br/>Ví dụ:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;WINDOWS&lt;/TITLE&gt;<br/>&lt;script LANGUAGE=&quot;JavaScript&quot;&gt;<br/>&lt;!--<br/>function openWindow(url,name) &#123;<br/>popupWin = window.open(url, name, &quot;scrollbars=yes,width=800, heigth=200 &quot;);<br/>&#125;<br/>--&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY&gt;<br/>PLC,<br/>Sua chua,<br/>Thiet ke web<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Để đóng cửa sổ ta có thể dùng phương pháp close()<br/>Ví dụ:<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Close Example&lt;/TITLE&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY &gt;<br/><br/>Close This Sample<br/>&lt;/BODY &gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Sử dụng đối tượng string<br/>String là một đối tượng của JavaScript,khi dùng đối tượng string chúng ta không cần các phát<br/>biểu để tạo một instance (thể nghiệm) của đối tượng ,bất kỳ lúc nào ta đặt text giữa hai dấu<br/>ngoặc kép và gán nó đến một biến hoặc một thuộc tính thì ta đã tạo một đối tượng string.<br/>1. Các thuộc tính của đối tượng string<br/>Thuộc tính length giữ số kí tự của string.<br/>2. Các hành vi (Methods) của đối tượng string<br/>a . Anchor (nameAttribute)<br/>b . big()<br/>c . blink()<br/>d . bold()<br/>e . charAt(index)<br/>f . fixed()<br/>g . fontcolor(color)<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 24<br/>h . fontsize(size)<br/>i . indexOf(character,[fromIndex])<br/>j . italics()<br/>k . lastIndexOf(character,[fromIndex])<br/>l . link(URL)<br/>m . small()<br/>n . strike()<br/>o . sub()<br/>p . substring(startIndex,endIndex)<br/>q . sup()<br/>r . toLowerCase()<br/>s . toUpperCase()
]]>
</description>
</item><item>
<link>http://vannamdl.net/blog/read.php?108</link>
<title><![CDATA[JAVASCRIPT Phần 3]]></title> 
<author>Admincòi &lt;admin@vietboblog.com&gt;</author>
<category><![CDATA[Mã Java]]></category>
<pubDate>Fri, 20 Feb 2009 17:55:58 +0000</pubDate> 
<guid>http://vannamdl.net/blog/read.php?108</guid> 
<description>
<![CDATA[ 
	TẠO ĐỐI TƯỢNG TRONG JAVASCRIPT<br/>1. Định nghĩa thuộc tính của đối tượng:<br/>function student(name,age, grade) &#123;<br/>this.name = name;<br/>this.age = age;<br/>this.grade = grade;<br/>&#125;<br/>Để tạo một Object ta sử dụng phát biểu new.Ví dụ để tạo đối tượng student1<br/>student1 = new student(“Bob”,10,75);<br/>3 thuộc tính của đối tượng student1 là :<br/>student1.name<br/>student1.age<br/>student1.grade<br/>Ví dụ để tạo đối tượng student2<br/>student2 = new student(“Jane”,9,82);<br/>Để thêm thuộc tính cho student1 bạn có thể làm như sau:<br/>student1.mother = “Susan”; hoặc bạn có thể định nghĩa lại hàm student<br/>MTWRFSS 4<br/>function student(name, age, grade, mother) &#123;<br/>this.name = name;<br/>this.age = age;<br/>this.grade = grade;<br/>this.mother = mother;<br/>&#125;<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 13<br/>Đối tượng là thuộc tính của đối tượng khác<br/>Ví dụ:<br/>function grade (math, english, science) &#123;<br/>this.math = math;<br/>this.english = english;<br/>this.science = science;<br/>&#125;<br/>bobGrade = new grade(75,80,77);<br/>janeGrade = new grade(82,88,75);<br/>student1 = new student(“Bob”,10,bobGrade);<br/>student2 = new student(“Jane”,9,janeGrade);<br/>student1.grade.math:dùng để lấy điểm Toán của student1<br/>student2.grade.science: dùng lấy điểm môn Khoa học của student2<br/>2. Thêm phương pháp cho đối tượng:<br/>function displayProfile() &#123;<br/>document.write(“Name: “ + this.name + “<br/>”);<br/>document.write(“Age: “ + this.age + “<br/>”);<br/>document.write(“Mother’s Name: “ + this.mother + “<br/>”);<br/>document.write(“Math Grade: “ + this.grade.math + “<br/>”);<br/>document.write(“English Grade: “ + this.grade.english + “<br/>”);<br/>document.write(“Science Grade: “ + this.grade.science + “<br/>”);<br/>&#125;<br/>function student(name,age, grade) &#123;<br/>this.name = name;<br/>this.age = age;<br/>this.grade = grade;<br/>this.mother = mother;<br/>this.displayProfile = displayProfile;<br/>&#125;<br/>student1.displayProfile();<br/>Ví du:<br/>4<br/>&lt;HTML&gt;<br/>&lt;HEAD&gt;<br/>&lt;TITLE&gt;Example 4.3&lt;/TITLE&gt;<br/>&lt;script LANGUAGE=”JavaScript”&gt;<br/>&lt;!-- HIDE FROM OTHER BROWSERS<br/>//DEFINE METHOD<br/>function displayInfo() &#123;<br/>document.write(“&lt;H1&gt;Employee Profile:<br/>“ + this.name + “&lt;/H1&gt;&lt;HR&gt;&lt;PRE&gt;”);<br/>document.writeln(“Employee Number: “<br/>+ this.number);<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 14<br/>document.writeln(“Social Security<br/>Number: “ + this.socsec);<br/>document.writeln(“Annual Salary: “ +<br/>this.salary);<br/>document.write(“&lt;/PRE&gt;”);<br/>&#125;<br/>//DEFINE OBJECT<br/>function employee() &#123;<br/>this.name=prompt(“Enter Employee’s<br/>Name”,”Name”);<br/>this.number=prompt(“Enter Employee<br/>Number for “ + this.name,”000-000&quot;);<br/>this.socsec=prompt(“Enter Social<br/>Security Number for “ +<br/>this.name,”000-00-0000&quot;);<br/>this.salary=prompt(“Enter Annual<br/>Salary for “ + this.name,”$00,000&quot;);<br/>this.displayInfo=displayInfo;<br/>&#125;<br/>newEmployee=new employee();<br/>// STOP HIDING FROM OTHER BROWSERS --<br/>&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/HEAD&gt;<br/>&lt;BODY&gt;<br/>&lt;script LANGUAGE=”JavaScript”&gt;<br/>&lt;!-- HIDE FROM OTHER BROWSERS<br/>newEmployee.displayInfo();<br/>// STOP HIDING FROM OTHER BROWSERS --<br/>&gt;<br/>&lt;/SCRIPT&gt;<br/>&lt;/BODY&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;<br/>&lt;/HTML&gt;<br/>Vi du:<br/>&lt;script LANGUAGE=&quot;JavaScript&quot;&gt;<br/>&lt;!-- Begin<br/>var day=&quot;&quot;;<br/>var month=&quot;&quot;;<br/>var ampm=&quot;&quot;;<br/>var ampmhour=&quot;&quot;;<br/>var myweekday=&quot;&quot;;<br/>var year=&quot;&quot;;<br/>mydate = new Date();<br/>myday = mydate.getDay();<br/>mymonth = mydate.getMonth();<br/>myweekday= mydate.getDate();<br/>weekday= myweekday;<br/>myyear= mydate.getYear();<br/>year = myyear;<br/>myhours = mydate.getHours();<br/>ampmhour = (myhours &gt; 12) ? myhours -<br/>12 : myhours;<br/>ampm = (myhours &gt;= 12) ? &#039;Buổ i Chiề u &#039;<br/>: &#039; Buổ i Sá ng &#039;;<br/>mytime = mydate.getMinutes();<br/>myminutes = ((mytime &lt; 10) ? &#039;:0&#039; :<br/>&#039;:&#039;) + mytime;<br/>if(myday == 0)<br/>day = &quot; Chủ Nhậ t , &quot;;<br/>else if(myday == 1)<br/>day = &quot; Thứ hai, &quot;;<br/>else if(myday == 2)<br/>day = &quot; Thứ ba, &quot;;<br/>else if(myday == 3)<br/>JAVASCRIPT MEDIASPACE CLUB (HTD) PAGE: 15<br/>day = &quot; Thứ tư, &quot;;<br/>else if(myday == 4)<br/>day = &quot; Thứ nă m, &quot;;<br/>else if(myday == 5)<br/>day = &quot; Thứ sá u , &quot;;<br/>else if(myday == 6)<br/>day = &quot; Thứ bả y , &quot;;<br/>if(mymonth == 0) &#123;<br/>month = &quot;thá ng mộ t &quot;;&#125;<br/>else if(mymonth ==1)<br/>month = &quot;thá ng hai &quot;;<br/>else if(mymonth ==2)<br/>month = &quot;thá ng ba &quot;;<br/>else if(mymonth ==3)<br/>month = &quot;thá ng tư &quot;;<br/>else if(mymonth ==4)<br/>month = &quot;thá ng nă m, &quot;;<br/>else if(mymonth ==5)<br/>month = &quot;thá ng sá u &quot;;<br/>else if(mymonth ==6)<br/>month = &quot;thá ng bả y &quot;;<br/>else if(mymonth ==7)<br/>month = &quot;thá ng tá m &quot;;<br/>else if(mymonth ==8)<br/>month = &quot;thá ng chín &quot;;<br/>else if(mymonth ==9)<br/>month = &quot;thá ng mườ i &quot;;<br/>else if(mymonth ==10)<br/>month = &quot;thá ng mườ i mộ t &quot;;<br/>else if(mymonth ==11)<br/>month = &quot;thá ng mườ i hai &quot;;<br/>// End --&gt;<br/>&lt;/script&gt;<br/>Trong phần body bạn có thể xuất ra dạng như sau:<br/>&lt;body &gt;<br/>&lt;script&gt;<br/>document.write(&quot;&lt;font color=#0000ff face=&#039;VNITimes,<br/>helvetica,arial&#039;&gt;&quot; + ampmhour + &quot;&quot; + myminutes + ampm)<br/>document.write(&quot; - &quot; + day + &quot; ngà y &quot; + myweekday +&quot; &quot;);<br/>document.write( month + &quot; , nă m &quot; + year + &quot;&lt;/font&gt;&quot;);<br/>&lt;/script&gt;<br/>&lt;/body&gt;<br/>&lt;/noscript&gt;<br/>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999&quot;&gt;<br/>&lt;div style=&quot;position:fixed; top:0; left:0; background-color:black; width:100%; vertical-align:bottom; horizontal-align:center;&quot;&gt;<br/> &lt;font face=&quot;Tahoma&quot;&gt;<br/> &lt;b&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://12h.us/&quot;&gt;&lt;font" target="_blank">http://12h.us/&quot;&gt;&lt;font</a> size=&quot;1&quot;&gt;&lt;font color=&quot;white&quot;&gt; FREE HOSTING&lt;/font&gt;&lt;font color=&quot;#FFFFFF&quot;&gt;<br/> &lt;/font&gt; &lt;/font&gt;&lt;/a&gt; &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;font size=&quot;1&quot;&gt;&#124; &lt;/span&gt;&lt;/font&gt;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/woFz&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/woFz&quot;...</a><br/> &lt;font color=&quot;white&quot; size=&quot;1&quot;&gt;TIN TỨC &lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;<br/> &lt;font color=&quot;#FFFFFF&quot;&gt; &lt;b&gt;&lt;font size=&quot;1&quot;&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.12h.us/hotest-films/&quot;&gt;" target="_blank">http://www.12h.us/hotest-films/&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; PHIM ONLINE &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vietnamnet/blogviet&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vietnamnet/blogviet&q...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; BLOG VIỆT &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/ThThao&quot;&gt;" target="_blank">http://feeds2.feedburner.com/ThThao&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; THỂ THAO 24H &lt;/font&gt;&lt;/a&gt;&#124; &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/finance&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/finance&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; FINANCE &amp; BANKING &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/sercurities&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/sercurities&quot;&...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CHỨNG KHOÁN &lt;/font&gt;&lt;/a&gt;&#124; <br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/vn/congnghe&quot;&gt;" target="_blank">http://feeds2.feedburner.com/vn/congnghe&quot;&gt;</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt; CÔNG NGHỆ &lt;/font&gt;&lt;/a&gt;&#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://feeds2.feedburner.com/thanhniennews/TpWo&quot;&gt;" target="_blank">http://feeds2.feedburner.com/thanhniennews/TpWo&qu...</a><br/> &lt;font color=&quot;#FFFFFF&quot;&gt;BUSINESS&lt;/font&gt;&lt;/a&gt; &#124;<br/> &lt;a target=&quot;_blank&quot; href=&quot;<a href="http://www.botayvn.com/&quot;&gt;&lt;font" target="_blank">http://www.botayvn.com/&quot;&gt;&lt;font</a> color=&quot;#FFFFFF&quot;&gt;MORE&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;<br/>&lt;/div&gt;&lt;/div&gt;
]]>
</description>
</item>
</channel>
</rss>