link đổi màu tự động

1 238 0
link đổi màu tự động

Đang tải... (xem toàn văn)

Thông tin tài liệu

Link đổi màu tự động 1. <script LANGUAGE="JavaScript"> 2. 3. <! This script and many more are available free online at > 4. <! The JavaScript Source!! http://thangbombh.sg.st > 5. 6. <! Begin 7. function initArray() { 8. for (var i = 0; i < initArray.arguments.length; i++) { 9. this[i] = initArray.arguments[i]; 10. } 11. this.length = initArray.arguments.length; 12. } 13. var colors = new initArray( 14. "red", 15. "blue", 16. "green", 17. "purple", 18. "black", 19. "tan", 20. "red"); 21. delay = .5; // seconds 22. link = 0; 23. vlink = 2; 24. function linkDance() { 25. link = (link+1)%colors.length; 26. vlink = (vlink+1)%colors.length; 27. document.linkColor = colors[link]; 28. document.vlinkColor = colors[vlink]; 29. setTimeout("linkDance()",delay*1000); 30. } 31. linkDance(); 32. // End > 33. </script> 34. <p><a href="http://thangbombh.sg.st">Welcome to ThangBomBh Homepages ! </a></p> 35. 36. <! Be sure to include some links in your HTML page! > 37. <! Script Size: 0.98 KB > . seconds 22. link = 0; 23. vlink = 2; 24. function linkDance() { 25. link = (link+ 1)%colors.length; 26. vlink = (vlink+1)%colors.length; 27. document.linkColor = colors [link] ; 28. document.vlinkColor. Link đổi màu tự động 1. <script LANGUAGE="JavaScript"> 2. 3. <! This script and many. document.linkColor = colors [link] ; 28. document.vlinkColor = colors[vlink]; 29. setTimeout("linkDance()",delay*1000); 30. } 31. linkDance(); 32. // End > 33. </script> 34. <p><a

Ngày đăng: 07/05/2015, 06:00

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan