Quên mật khẩu?

Ẩn quảng cáo

 

 [Share] Code ma bay trên 4rum ! - Page 2

Go down 
Tác giảThông điệp
admin
[—»Sói™~]-[Ðại Ma Ðầu]
[—»Sói™~]-[Ðại Ma Ðầu]
admin


Giới tính Giới tính : Nam Virgo
Chinese zodiac Chinese zodiac : Horse
Bài viết Bài viết : 1042
Xu Xu : 158
Thanked Thanked : 650
Sinh Nhật Sinh Nhật : 20/09/1990
Tham Gia Tham Gia : 15/07/2011
Tuổi Tuổi : 33
Yahoo Yahoo : Hà Nội
Nghề Nghiệp Nghề Nghiệp : Giáo Sư
Status Status : hgfggggggggggggg

Character sheet
Tài Sản:

[Share] Code ma bay trên 4rum ! - Page 2  Empty
Bài gửiTiêu đề: [Share] Code ma bay trên 4rum ! - Page 2    [Share] Code ma bay trên 4rum ! - Page 2  EmptyThu Aug 04, 2011 10:29 am

[Share] Code ma bay trên 4rum ! - Page 2  92037
Code này dùng dịp Hallowen nhưng mình thấy nếu mình thay các link hình
"ma" trong code bằng các hình khác, vi dụ hình trái tim,... thì sẽ tạo
một hiệu ứng rất đẹp cho 4rum của bạn.
Code:
<SCRIPT
 language="javascript"> var num_flakes = 5; var snowflakes = new
Array("http://ca5.upanh.com/14.864.19103240.ICA0/ma1.png","http://ca7.upanh.com/14.864.19103242.oiu0/ma2.png","http://ca7.upanh.com/14.864.19103246.hdA0/ma3.png","http://ca7.upanh.com/14.864.19103250.yp0/ma4.png","http://ca4.upanh.com/14.864.19103251.fAE0/ma5.png","http://ca5.upanh.com/14.864.19103252.cPQ0/ma6.png");
 var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM =
document.getElementById; if (stdDOM) aDOM = 1; else {ieDOM =
document.all; if (ieDOM) aDOM = 1; else { var nsDOM =
((navigator.appName.indexOf('Netscape') != -1) &&
(parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}} function
findDOM(objectId, wS) { if (stdDOM) return wS ?
document.getElementById(objectId).style:
document.getElementById(objectId); if (ieDOM) return wS ?
document.all[objectId].style: document.all[objectId]; if (nsDOM) return
document.layers[objectId]; }  function findLivePageWidth() {return
window.innerWidth != null? window.innerWidth : document.documentElement
&& document.documentElement.clientWidth ?     
document.documentElement.clientWidth : document.body != null ?
document.body.clientWidth :700;}function findLivePageHeight()
{return  window.innerHeight != null? window.innerHeight :
document.documentElement &&
document.documentElement.clientHeight
?  document.documentElement.clientHeight : document.body != null?
document.body.clientHeight :500;} function posX() {return typeof
window.pageXOffset != 'undefined' ?
window.pageXOffset:document.documentElement.scrollLeft?
document.documentElement.scrollLeft:document.body.scrollLeft?
document.body.scrollLeft:0;} function posY() {return typeof
window.pageYOffset != 'undefined' ?
window.pageYOffset:document.documentElement.scrollTop?
document.documentElement.scrollTop:
document.body.scrollTop?document.body.scrollTop:0;}  var speed = 30;var
movw = new Array();var movh = new Array();var move = new Array();var
stepw = new Array();var steph = new Array();var posw = new Array();var
posh = new Array();var dir = new Array();var winWidth;var winHeight;
function startSnow() {winWidth = findLivePageWidth()-50;winHeight =
findLivePageHeight()-50; for (var i = 0; i < num_flakes; i++){move[i]
 = 0;movh[i] = 12+ Math.random()*2;movw[i] = 11+ Math.random()*4;posw[i]
 = Math.random()*(winWidth-35)+12;posh[i] = Math.random()*winHeight; 
stepw[i] = 0.02 + Math.random()/10;steph[i] = 0.7 + Math.random();dir[i]
 = (Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'"
style="position: absolute; z-index: '+ i +'; visibility:hidden;
"><img
src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '"
border="0"></div>');}setTimeout("moreSnow()", speed);} function
 moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh[i] >
winHeight-50) {posw[i] = 10+ Math.random()*(winWidth-movw[i]-30);posh[i]
 = 0;dir[i]=(Math.random()<0.5)?1:-1;stepw[i] = 0.02 +
Math.random()/9;steph[i] = 1.3 + Math.random();} move[i] += stepw[i]
*dir[i]; if (Math.abs(move[i]) > 3) {dir[i]=-dir[i]; 
posh[i]+=Math.abs(movh[i]*move[i]);posw[i]+=movw[i]*move[i]; move[i]=0;}
 objstyle = findDOM('snow'+i,1); objstyle.left = (posX()+posw[i] +
movw[i]*move[i])+'px'; objstyle.top = (posY()+posh[i] +
movh[i]*(Math.abs(Math.cos(move[i])+move[i])))+'px';objstyle.visibility =
 'visible';} setTimeout("moreSnow()", speed);} startSnow();
</SCRIPT>


Chèn vào "Display" => "Homepage" => "Generalities" ! [Share] Code ma bay trên 4rum ! - Page 2  92037



Về Đầu Trang Go down
https://itvui.123.st
 
[Share] Code ma bay trên 4rum ! - Page 2
Về Đầu Trang 
Trang 1 trong tổng số 1 trang
 Similar topics
-
»  [Share] Một số code thông dụng mà các 4rum đều cần.
»  [Share] Code làm thanh level đơn giản cho 4rum [hot]
» Code tạo hiệu ứng cuộn giấy ở góc trên cùng bên phải 4rum !
» code bản đăng nhập trên góc giống forum nè
» [Code] Share link bài viết (rất hay)

Permissions in this forum:Bạn không có quyền trả lời bài viết
Kênh thông tin giải trí dành cho teen việt :: *`+`* Mã Nguồn *`+`* :: Thủ Thuật Forumotion :: Code-
Chuyển đến