không cho cik chuột phải code1 <SCRIPT language=JavaScript1.1> function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert('Chuc Mot Ngay Vui ve - Gui Wedsite Cho Ban Be Cua Minh Nha !'); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; </SCRIPT> CODE 2 <SCRIPT language=JavaScript> document.onmousedown=click var times=0 var times2=10 function click() { if ((event.button==2) || (event.button==3)) { if (times>=1) { earthquake() } alert(Nguyen Hung - Ko muon ban Click Chuot Phai); times++ } } function earthquake() { alert("Nguyen Hung - Ko muon ban Click Chuot Phai"); window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) alert("Giat Nhu Fiml Nha??!") tremmors() } function tremmors() { window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(11, 11) window.moveTo(12, 12) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) tremmors() } </SCRIPT> TIÊU ĐỀ CHẠY <script language=JavaScript> var txt="TRUONG TH PHUOC TIEN B Nguyen Hung"; var expert=200; // speed of roll var refresh=null; function marquee_title(){ document.title=txt; txt=txt.substring(1,txt.lenghth)+txt.charAt(0); refresh=setTimeout("marquee_title()",expert); } marquee_title(); </script> Tạo 1 Button Giờ Trên Website <SCRIPT language=JavaScript> <! Begin day = new Date(); miVisit = day.getTime(); function clock() { dayTwo = new Date(); hrNow = dayTwo.getHours(); mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); miNow = dayTwo.getTime(); if (hrNow == 0) { hour = 12; ap = " AM"; } else if(hrNow <= 11) { ap = " AM"; hour = hrNow; } else if(hrNow == 12) { ap = " PM"; hour = 12; } else if (hrNow >= 13) { hour = (hrNow - 12); ap = " PM"; } if (hrNow >= 13) { hour = hrNow - 12; } if (mnNow <= 9) { min = "0" + mnNow; } else (min = mnNow) if (scNow <= 9) { secs = "0" + scNow; } else { secs = scNow; } time = hour + ":" + min + ":" + secs + ap; document.form.button.value = time; self.status = time; setTimeout('clock()', 1000); } function timeInfo() { milliSince = miNow; milliNow = miNow - miVisit; secsVisit = Math.round(milliNow / 1000); minsVisit = Math.round((milliNow / 1000) / 60); alert("There have been " + milliSince + " milliseconds since midnight, January 1, 1970. " + "You have spent " + milliNow + " of those milliseconds on this page. " + " About " + minsVisit + " minutes, and " + secsVisit + " seconds."); } document.write("<center><form name=\"form\">" + "<input type=button value=\"Click for info!\"" + " name=button onClick=\"timeInfo()\"></form></center>"); onError = null; clock(); // End > Bộ Đếm 10 , 9 0 <! NOJ DUNG > <META http-equiv=Content-Type content="text/html; charset=utf-8"> <! Thanh Trượt > <STYLE>BODY A:link { COLOR: #253d59; TEXT-DECORATION: none } A:visited { COLOR: #253d59; TEXT-DECORATION: none } A:hover { padding:0px; BACKGROUND: #ffffff; MARGIN: 0px; COLOR: #253d59; tahoma: } A:active { padding:0px; BACKGROUND: #ffffff; MARGIN: 0px; COLOR: #253d59; tahoma: } HTML { SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR- SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW- COLOR: #8b8b8b; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW- COLOR: #7a7a7a } BODY { SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR- SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW- COLOR: #8b8b8b; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW- COLOR: #7a7a7a } </STYLE> <! Kieu Chu > <META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD> <BODY> <CENTER><B><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#ffff00>[</FONT><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#ff3333> <A href="http://www.kyniemb2.top1.vn/">w</A></FONT><A href="http://www.kyniemb2.top1.vn/"><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#cc00ff>W</FONT><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#ff3333>w.</FONT><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS">K<FONT color=#00ff00>y</FONT><FONT color=#ff0000>Ni</FONT>e<FONT color=#ffff00>m</FONT><FONT color=#cc00ff>B2</FONT>.T<FONT color=#00ff00>o</FONT>p<FONT color=#ff3399>1</FONT>.V<FONT color=#ff0000>n</FONT></FONT></A><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#ff3333> </FONT><FONT style="FONT-SIZE: 40pt" face="Comic Sans MS" color=#ffff00>]<BR></FONT><FONT face="Comic Sans MS" color=#ff3399 size=6>Thay Đôi? Tên Miê`n Chính Thú*c </FONT></B> <DIV id=txt align=center></DIV><! Doạn CODE > <SCRIPT type=text/javascript> var c=10; var t; var theDate = new Date(); s=theDate.getSeconds(); function ChangeUrl(site){ document.getElementById("txt").innerHTML='<br><br> <br><h3><a href="http://www.NHOOI.KISS.TO" target=Index><font face="Comic Sans MS" color=3366CC></a><br><a href="'+site+'" target=Index><font color=FF00FF><big>Click vào đây đê? vào Trang Chu? </big></font></font></a></h3><br><br><br><p align="center"><FONT face="Tahoma">Trình duyệt sẽ tự động chuyển sang <b><font color=blue>'+site+'</font></b> trong vòng <b><font color=red>'+c+'</font></b> giây nữa.<br></Font>'; document.getElementById("txt").innerHTML+='<strong ><a href="'+site+'" target="_top" onClick="this.style.behavior=\'url(#default#homepa ge)\';this.setHomePage(\'http://nhooi.kiss.to\');"><Font Face="Tahoma">Click vào đây nếu bạn chờ quá lâu [ Click ] Vao Day Cung Duoc !^^.</a></strong><br></span></p></Font>'; c-=1; url=site; t=setTimeout("ChangeUrl(url)",1000); stopCount(c,url); } function stopCount(c,link){ if(c==-1) {clearTimeout(t); location.href=link;} } </SCRIPT> <SCRIPT> ChangeUrl('Http://KyNiemB2.Top1.Vn'); </SCRIPT> <! Chu 2 > <FONT face="Comic Sans MS" size=6><B><FONT color=#ff0000>Design</FONT></B><B><FONT color=#00ff00> </FONT><FONT color=#cc00ff>:</FONT><FONT color=#00ff00> </FONT><FONT color=#ffff00>Hô`</FONT><FONT color=#00ff00> Ho</FONT>àng<FONT color=#00ff00> </FONT><FONT color=#0000ff>Vũ</FONT><FONT color=#00ff00> </FONT><FONT color=#cc00ff>®</FONT><FONT color=#00ff00><BR></FONT></B><FONT color=#ffff00>Website</FONT><FONT color=#00ff00> :wWw.KyNiemB2.Top1.Vn</FONT></FONT><FONT color=#00ff00 size=6><BR></FONT></CENTER> </TEXTAREA></P></BODY></HTML> chữ hiện ẩn và thay dỗi chữ <script LANGUAGE="JavaScript"> <! This script and many more are available free online at > <! The JavaScript Source!! http://violet.vn/th-phuoctien-ninhthuan/ > <! NguyenHung, NguyenHung@NguyenHung.zzn.com. > <! Begin // add as many or as few messages as you would like var msg=new Array() msg[0]="<CENTER>Chao mung cac ban den voi Trường Th Phước Tiến B!</CENTER>"; msg[1]="<CENTER> Chuc cac ban luon thanh dat va vui ve.</CENTER>"; msg[2]="<CENTER>Just type in \"<A href='http://violet.vn/th-phuoctien- ninhthuan/'>NguyenHung.sg.st</A>\"</CENTER>"; msg[3]="<CENTER>Cam on cac ban da ghe tham !</CENTER>"; // set your first set of colors. Use as many or as few as you wish. var colors1=new Array("ffffff", "eeeeff", "ddddff", "ccccff", "bbbbff", "aaaaff", "9999ff", "8888ff", "7777ff", "6666ff", "5555ff", "4444ff", "3333ff","2222ff", "1111ff", "0000ff") //set your second set of colors // *** must have exactly the same number of colors as the array above *** var colors2=new Array("ffffff", "ffeeee", "ffdddd", "ffcccc", "ffbbbb", "ffaaaa", "ff9999", "ff8888", "ff7777", "ff6666", "ff5555", "ff4444", "ff3333", "ff2222", "ff1111", "ff0000") //set the height of the display in pixels high=60; //set the width of the display in pixels wide=350; //set the pixel coordinates for the upper left hand corner of the display Xpos=220; Ypos=180; // move the display away from the edges of the background pad=15; // set the background color of the display bgcol="ffffff"; //add a background image if you want. // *** for no image, just leave empty quotes (ex. cellbg=""; ) *** cellbg="faderbg.jpg"; // set the font fntFam="verdana,helvetica,arial"; fntSize=14; // set how how many seconds you want the message to stay remain at totality. pause=2.5; // Do not edit these values below!!! icolor=0; mcolor=1; imsg=0; spWidth=wide-(2*pad); totality=false; glowing=true; var theMsg=""; var cellcontent=""; pause=pause*1000; if(cellbg.length>4){cellbg=" background="+cellbg} else{cellbg="";} function doPause(){ totality=false; t=setTimeout("changecolor()",pause); } function initiate(){ getContentColor(); getMsg(); getCellContent(); if(document.all){ msgbg.innerHTML=cellcontent; msgfade.innerHTML=theMsg; msgbg.style.posLeft=Xpos; msgbg.style.posTop=Ypos; msgfade.style.posLeft=Xpos+pad; msgfade.style.posTop=Ypos+pad; t=setTimeout("changecolor()",50);} if(document.layers){ document.msgbg.document.write(cellcontent); document.msgbg.document.close(); document.msgfade.document.write(theMsg); document.msgfade.document.close(); document.msgbg.left=Xpos; document.msgbg.top=Ypos; document.msgfade.left=Xpos+pad; document.msgfade.top=Ypos+pad; t=setTimeout("changecolor()",100);} } function changecolor(){ if(totality==true){doPause();} else{ getMsg(); getContentColor(); if(document.all){ msgfade.innerHTML=theMsg; t=setTimeout("changecolor()",50);} if(document.layers){ document.msgfade.document.write(theMsg); document.msgfade.document.close(); t=setTimeout("changecolor()",70);} } } function getFadeColor(){ icolor=icolor-1; if(mcolor==1){contentcolor=colors1[icolo r];} else{contentcolor=colors2[icolor];} } function getGlowColor(){ icolor=icolor+1; if(mcolor==1){contentcolor=colors1[icolo r];} else{contentcolor=colors2[icolor];} } function changemsg(){ if(imsg==msg.length-1){imsg=0; mcolor=1;} else if(imsg != msg.lenght-1 && mcolor==1){imsg=imsg+1; mcolor=0;} else{imsg=imsg+1; mcolor=1;} } function getContentColor(){ if(icolor==colors1.length-1 && glowing==true){ getFadeColor(); glowing=false; totality=true;} else if(icolor < colors1.length && glowing==true){ getGlowColor();} else if(icolor < 1 && glowing==false){changemsg(); getGlowColor(); glowing=true;} else{getFadeColor();} } function getMsg() { theMsg="<span style='font-size:"+fntSize+"pt; font-family:"+fntFam+"; width:"+spWidth+";'>" theMsg+="<B><font color="+contentcolor+">"+msg[imsg]+"</font></B> " theMsg+="</span>" } function getCellContent(){ cellcontent="<TABLE height="+high+ " width="+wide+" bgcolor="+bgcol+" cellpadding=0 cellspacing=0><TR><TD"+cellbg+"> </TD></TR></TABLE>"} // End > </script> </HEAD> <! STEP TWO: Insert the onLoad event handler into your BODY tag > <BODY onLoad="initiate()"> <! STEP THREE: Copy this code into the BODY of your HTML document > <DIV id=msgbg style="position: absolute;"></DIV> <DIV id=msgfade style="position: absolute;"></DIV> <! Script Size: 5.17 KB > CHỮ VÒNG QUANH THEO TRỎ 1 <script LANGUAGE="JavaScript"> <! Original: NguyenHung (thangbom_bh@yahoo.com) > <! Web Site: http://violet.vn/th-phuoctien-ninhthuan/ > <! This script and many more are available free online at > <! The JavaScript Source!! http://violet.vn/th-phuoctien-ninhthuan/ > <! Begin if (document.all) { //Things you can alter yourLogo = "Welcome to NguyenHung Homepages !"; //Not less than 2 letters! logoFont = "Arial"; logoColor = "000000"; //Nothing needs altering below! yourLogo = yourLogo.split(''); L = yourLogo.length; TrigSplit = 360 / L; Sz = new Array() logoWidth = 100; logoHeight = -30; ypos = 0; xpos = 0; step = 0.03; currStep = 0; document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < L; i++) { document.write('<div id="ie" style=& quot;position:absolute;top:0px;left:0px; ' +'width:10px;height:10px;font-family:'+logoFont+';font-size:12px;' +'color:'+logoColor+';text-align:center">'+yourLogo[i]+'</div>'); } document.write('</div></div>'); function Mouse() { ypos = event.y; xpos = event.x - 5; } document.onmousemove=Mouse; function animateLogo() { outer.style.pixelTop = document.body.scrollTop; for (i = 0; i < L; i++) { ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180); ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180); Sz[i] = ie[i].style.pixelTop - ypos; if (Sz[i] < 5) Sz[i] = 5; ie[i].style.fontSize = Sz[i] / 1.7; } currStep -= step; setTimeout('animateLogo()', 20); } window.onload = animateLogo; } // End > </script> <! Script Size: 1.93 KB > CHỮ VÒNG QUANH THEO TRỎ 2 <script LANGUAGE="JavaScript"> <! Original: NguyenHung (thangbom_bh@yahoo.com) > <! Web Site: http://violet.vn/th-phuoctien-ninhthuan/ > <! This script and many more are available free online at > <! The JavaScript Source!! http://violet.vn/th-phuoctien-ninhthuan/ > <! Begin message = 'Welcome to NguyenHung Homepages !'; FonT = 'Verdana'; ColoR = '999999'; SizE = 3; //1 to 7 only! var amount = 5, ypos =- 50, xpos = 0, Ay = 0, Ax = 0, By = 0, Bx = 0, Cy = 0, Cx = 0, Dy = 0, Dx = 0, Ey = 0, Ex = 0; if (document.layers) { for (i = 0; i < amount; i++) { document.write('<layer name=nsl'+i+' top=0 left=0><font face='+FonT+' size='+SizE+' color='+ColoR+'>'+message+'</font></layer>'); } window.captureEvents(Event.MOUSEMOVE); function nsmouse(evnt) { xpos = evnt.pageX + 20; ypos = evnt.pageY + 20; } window.onMouseMove = nsmouse; } else if (document.all) { document.write("<div id='outer' style='position:absolute;top:0px;left:0px'>"); document.write("<div style='position:relative'>"); [...]... #trailsprite1 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 1px; VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 0 } #trailsprite2 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 } #trailsprite3 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 } #trailsprite4 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute;... VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 } #trailsprite5 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 } #trailsprite6 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; WIDTH: 10 px; ZINDEX: 10 } if (version > 3) 1 và thứ tự tiếp theo ứng với mỗi images bao gồm chiều cao, viền, tên, Id > document.write(' // > =1; x < 7; x++) { ///////////////Image Preload eval("trailSpriteFrame" + x + "=new Image (10 ,10 );"); eval("trailSpriteFrame" + x + ".src='images/trailgif"+x+".gif';");... charset=x-user-defined"> -1) version = 5; else if (navigator.userAgent.indexOf("MSIE 3") != -1) version = 1; else if (navigator.userAgent.indexOf("Mozilla/4")... Math.random() /10 ; // tập hợp những thay đổi bước sty[i] = 0.7 + Math.random(); //tập hợp những thay đổi bước if (ns4up) { // những lớp tập hợp if (i == 0) { document.write(""); } else { document.write(""); } } else if (ie4up) { if (i == 0) { document.write(" ; // Số càng nhỏ tuyết di chuyển(rơi) càng nhanh var snowflake = "http://www.vn-zoom.com/images/idcs.gif"; // Nơi đây chèn hình bông tuyết var ns4up = (document.layers) ? 1 : 0; // Bộ duyệt tìm nạp vào var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // tọa độ và những vị trí thay đổi var am, stx, sty; // Độ rộng . changemsg(){ if(imsg==msg.length -1) {imsg=0; mcolor =1; } else if(imsg != msg.lenght -1 && mcolor= =1) {imsg=imsg +1; mcolor=0;} else{imsg=imsg +1; mcolor =1; } } function getContentColor(){ if(icolor==colors1.length -1 &&. 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo (10 , 10 ) window.moveTo (11 , 11 ) window.moveTo (12 , 12 ) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6,. POSITION: absolute; TOP: 1px; VISIBILITY: visible; WIDTH: 10 px; Z- INDEX: 10 0 } #trailsprite2 { HEIGHT: 10 px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; WIDTH: 10 px; Z- INDEX: 10 } #trailsprite3