Chào mừng quý vị đến với Sofware & Ebook.
Quý vị chưa đăng nhập hoặc chưa đăng ký làm thành viên, vì vậy chưa thể tải được các tư liệu của Thư viện về máy tính của mình.
Nếu chưa đăng ký, hãy đăng ký thành viên tại đây hoặc xem phim hướng dẫn tại đây
Nếu đã đăng ký rồi, quý vị có thể đăng nhập ở ngay ô bên phải.
Gốc > CODE HTML >
Trần Lâm Ngân @ 09:53 08/08/2009
Số lượt xem: 600
Link đổi màu tự động
<script LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://thangbombh.sg.st -->
<!-- Begin
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay = .5; // seconds
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
// End -->
</script>
<p><a href="http://thangbombh.sg.st">Welcome to ThangBomBh Homepages !</a></p>
<!-- Be sure to include some links in your HTML page! -->
<!-- Script Size: 0.98 KB -->
Tài sản cá nhân:
Đạp xích lô
Nhóm: Gia đình VVF
Bài viết: 154
Thành viên thứ: 14033
Tham gia: 27-June 04
Tiền mặt: 458$
Tài sản cá nhân
Gửi vào: Jun 27 2004, 03:31 PM Thai_Anh
Chữ vòng quanh theo con trỏ:
Đây là đoạn mã:
<script LANGUAGE="JavaScript">
<!-- Original: ThangBomBH (thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com) -->
<!-- Web Site: http://thangbombh.sg.st -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://thangbombh.sg.st -->
<!-- Begin
if (document.all) {
//Things you can alter
yourLogo = "Welcome to ThangBomBH 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 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://thangbombh.sg.st -->
<!-- Begin
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay = .5; // seconds
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
// End -->
</script>
<p><a href="http://thangbombh.sg.st">Welcome to ThangBomBh Homepages !</a></p>
<!-- Be sure to include some links in your HTML page! -->
<!-- Script Size: 0.98 KB -->
Tài sản cá nhân:
Đạp xích lô
Nhóm: Gia đình VVF
Bài viết: 154
Thành viên thứ: 14033
Tham gia: 27-June 04
Tiền mặt: 458$
Tài sản cá nhân
Gửi vào: Jun 27 2004, 03:31 PM Thai_Anh
Chữ vòng quanh theo con trỏ:
Đây là đoạn mã:
<script LANGUAGE="JavaScript">
<!-- Original: ThangBomBH (thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com">thangbom_bh@yahoo.com) -->
<!-- Web Site: http://thangbombh.sg.st -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://thangbombh.sg.st -->
<!-- Begin
if (document.all) {
//Things you can alter
yourLogo = "Welcome to ThangBomBH 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 -->
Trần Lâm Ngân @ 09:53 08/08/2009
Số lượt xem: 600
Số lượt thích:
0 người
 
- Banner tự động chạy đây ! (08/08/09)
- Code nhúng cho Blog (08/08/09)
- Code đồng hồ tính giây (08/08/09)
- Code ngày tháng (08/08/09)
- Code chọn màu cho web (08/08/09)

Các ý kiến mới nhất