Ông thầy cho bài tập là viết một cái script như sau: sau một khoảng thời gian thì tự động thêm một kí tự vào address rồi tự động enter, ví dụ: http://abc.com/a => http://abc.com/aa Nhờ các cao thủ giúp dùm ạ :beauty:
Mã: <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="refresh" content="0;url=http://sinhvienvt.com/forum/forum.php"> <title>DIEN DAN SINH VIEN VIEN THONG ....</title> </head> <body> <p align="center"><img border="0" src="[URL="http://5giay.vn/view-source:http://sinhvienvt.com/loading.gif"]http://sinhvienvt.com/loading.gif[/URL]"></p> </body> </html> Mình nghĩ nó cũng tương tự cái này Khi nhập URL : sinhvienvt.com thì sau 1 khoảng thời gian nó tự động chuyển về sinhvienvt.com/forum/forum.php Ko phải dân IT nên ko đúng thì chủ topic thông cảm Mã: <meta name="DESCRIPTION" content="Diễn đàn sinh viên Ngân hàng TP.HCM, we are here we are good freinds - Diễn đàn sinh viên chuyên ngành tài chính ngân hàng"> <meta name="ROBOTS" content="ALL"> <meta name="REVISIT-AFTER" content="1 DAYS"> <meta name="RATING" content="search engine optimization"> <meta name="copyright" content="Copyright (c) 2008 [I]am[Min]!."> <meta name="distribution" content="global"> <meta name="classification" content="seo"> <meta http-equiv="expires" content="0"> </head><body><p> </p> <br><br><br><br><br><br> <p style="font-family: Comic Sans MS; font-weight: bold; font-size: 30px; color: rgb(255, 255, 255);" align="center"> Welcome to SinhVienNganHang.Com<br> <br> N.. O. W. L. O. A. D.. I. N.G....<br></p> <form name="loading"> <div align="center"> <p> <input name="chart" size="46" style="border-style: none; padding: 0px; font-family: Arial; font-size: 30px; font-weight: bolder; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);" type="text"> <br> <input name="percent" style="border-style: none; padding: 0px; font-family: Comic Sans MS; font-size: 35px; font-weight: bolder; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); text-align: center;" type="text"> </p><p style="font-family: Comic Sans MS; font-weight: bold; font-size: 30px; color: rgb(255, 255, 255);" align="center"> Diễn đàn dành cho tòan thể sinh viên ngân hàng<br></p> <a href="[URL="http://5giay.vn/view-source:http://sinhviennganhang.com/"]http://sinhviennganhang.com[/URL]"><font color="white">http://sinhviennganhang.com</font></a> | <a href="[URL="http://5giay.vn/view-source:http://sinhviennganhang.org/"]http://sinhviennganhang.org[/URL]"><font color="white">http://sinhviennganhang.org</font></a> | <a href="[URL="http://5giay.vn/view-source:http://sinhviennganhang.info/"]http://sinhviennganhang.info[/URL]"><font color="white">http://sinhviennganhang.info</font></a> | <a href="[URL="http://5giay.vn/view-source:http://sinhviennganhang.vn/"]http://sinhviennganhang.vn[/URL]"><font color="white">http://sinhviennganhang.vn</font></a> <script> var bar = 0 var line = "||" var amount ="||" count() function count(){ bar= bar+2 amount =amount + line document.loading.chart.value=amount document.loading.percent.value=bar+"%" if (bar<100) {setTimeout("count()",5);} else {window.location = "http://news.sinhviennganhang.com/";} }</script> </div></form></body></html> Đây nữa.Thấy có hàm Count trong đó