Công Ty Giải Pháp Công Nghệ Số Toàn Cầu Máy Tính Vàng 9999
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Latest topics
» Bảng thông báo đẹp cho forum
by ThanhCong Fri Dec 12, 2014 10:36 pm

» [Hot] Chữ ký lung linh!...
by pe.keomut_love_who Wed Nov 21, 2012 8:49 pm

» QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN Thành công
by pe.keomut_love_who Wed Nov 21, 2012 8:47 pm

» CSS thay backgound liên tục
by ThanhCong Thu Jul 26, 2012 10:18 am

» [Chia sẻ] Bảng Thông Báo [Đơn Giản] [Đẹp]
by ThanhCong Wed Feb 01, 2012 9:05 pm

» [Chia sẻ] Thanh load kute
by ThanhCong Wed Feb 01, 2012 8:51 pm

» Nút Move Lên Đầu Trang
by ThanhCong Wed Feb 01, 2012 8:33 pm

» [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100%
by ThanhCong Wed Feb 01, 2012 8:18 pm

» Share cây thư mục, khung login + trang thông báo đăng nhập thành công
by ThanhCong Wed Feb 01, 2012 8:08 pm

» [Chia sẻ] Viewsoure Website Nhanh ^^ Vui Lắm
by ThanhCong Sat Jan 07, 2012 1:26 pm

» [Chia sẻ] Khung đăng nhập+chuyển trang thành công ver 1..."HOT"
by ThanhCong Sat Jan 07, 2012 1:20 pm

» [Chia Sẽ] Code Trò Nhỏ Rất Hay ! HeHe
by ThanhCong Sat Jan 07, 2012 1:18 pm

» [Chia sẻ] Chec lượt truy cập của 4rum trên Alexa
by ThanhCong Sat Jan 07, 2012 1:17 pm

» Chia sẻ] Câu đối trượt chào năm mới
by ThanhCong Sat Jan 07, 2012 1:15 pm

» Share thanh chia sẻ bài viết lên các trang mạng xã hội
by ThanhCong Sat Jan 07, 2012 1:12 pm

Poll
Statistics
Diễn Đàn hiện có 115 thành viên
Chúng ta cùng chào mừng thành viên mới đăng ký: Ren_KXO

Tổng số bài viết đã gửi vào diễn đàn là 670 in 624 subjects
QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN Thành công

Mon Oct 17, 2011 12:39 pm by ThanhCong

QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN FORUM Wed 1 Jun 2011 - 20:57 Trả lời với trích dẫn nội dung bài viết này Sửa/Xóa bài viết Xóa bài viết Xem địa chỉ IP của thành viên này
* Tất cả thành viên có trách nhiệm thực hiện nội quy khi tham gia hoạt động trên https://thanhcong.forumvi.com/forum đồng thời chú ý theo …

Comments: 3


code để skin 4r có hoa bay bay

Go down

code để skin 4r có hoa bay bay Empty code để skin 4r có hoa bay bay

Bài gửi by ThanhCong Sat Jan 07, 2012 1:00 pm

Đây là code hoa mai rơi
Chèn vào nơi bạn muốn hiển thị nhé
index_body nếu chỉ muốn hiện ở trang chủ
overall_footer hoặc header nếu muốn hiện ở tất cả các trang

Code:

<script>
var pictureSrc ="http://img143.imageshack.us/img143/5785/hoamai.png"; //the location of the snowflakes
var pictureWidth = 30; //the width of the snowflakes
var pictureHeight = 30; //the height of the snowflakes
var numFlakes = 10; //the number of snowflakes
var downSpeed = 0.01; //the falling speed of snowflakes (portion of screen per 100 ms)
var lrFlakes = 10; //the speed that the snowflakes should swing from side to side


if( typeof( numFlakes ) != 'number' || Math.round( numFlakes ) != numFlakes || numFlakes < 1 ) { numFlakes = 10; }

//draw the snowflakes
for( var x = 0; x < numFlakes; x++ ) {
if( document.layers ) { //releave NS4 bug
document.write('<layer id="snFlkDiv'+x+'"><imgsrc="'+pictureSrc+'" height="'+pictureHeight+'"width="'+pictureWidth+'" alt="*" border="0"></layer>');
} else {
document.write('<div style="position:absolute;"id="snFlkDiv'+x+'"><img src="'+pictureSrc+'"height="'+pictureHeight+'" width="'+pictureWidth+'" alt="*"border="0"></div>');
}
}

//calculate initial positions (in portions of browser window size)
var xcoords = new Array(), ycoords = new Array(), snFlkTemp;
for( var x = 0; x < numFlakes; x++ ) {
xcoords[x] = ( x + 1 ) / ( numFlakes + 1 );
do { snFlkTemp = Math.round( ( numFlakes - 1 ) * Math.random() );
} while( typeof( ycoords[snFlkTemp] ) == 'number' );
ycoords[snFlkTemp] = x / numFlakes;
}

//now animate
function flakeFall() {
if( !getRefToDivNest('snFlkDiv0') ) { return; }
var scrWidth = 0, scrHeight = 0, scrollHeight = 0, scrollWidth = 0;
//find screen settings for all variations. doing this every time allows for resizing and scrolling
if( typeof( window.innerWidth ) == 'number' ) { scrWidth = window.innerWidth; scrHeight = window.innerHeight; } else {
if( document.documentElement && (document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) {
scrWidth = document.documentElement.clientWidth; scrHeight = document.documentElement.clientHeight; } else {
if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
scrWidth = document.body.clientWidth; scrHeight = document.body.clientHeight; } } }
if( typeof( window.pageYOffset ) == 'number' ) { scrollHeight = pageYOffset; scrollWidth = pageXOffset; } else {
if( document.body && ( document.body.scrollLeft ||document.body.scrollTop ) ) { scrollHeight = document.body.scrollTop;scrollWidth = document.body.scrollLeft; } else {
if(document.documentElement && (document.documentElement.scrollLeft ||document.documentElement.scrollTop ) ) { scrollHeight =document.documentElement.scrollTop; scrollWidth =document.documentElement.scrollLeft; } }
}
//move the snowflakes to their new position
for( var x = 0; x < numFlakes; x++ ) {
if( ycoords[x] * scrHeight > scrHeight - pictureHeight ) { ycoords[x] = 0; }
var divRef = getRefToDivNest('snFlkDiv'+x); if( !divRef ) { return; }
if( divRef.style ) { divRef = divRef.style; } var oPix = document.childNodes ? 'px' : 0;
divRef.top = ( Math.round( ycoords[x] * scrHeight ) + scrollHeight ) + oPix;
divRef.left = ( Math.round( ( ( xcoords[x] * scrWidth ) - (pictureWidth / 2 ) ) + ( ( scrWidth / ( ( numFlakes + 1 ) * 4 ) ) * (Math.sin( lrFlakes * ycoords[x] ) - Math.sin( 3 * lrFlakes * ycoords[x]) ) ) ) + scrollWidth ) + oPix;
ycoords[x] += downSpeed;
}
}

//DHTML handlers
function getRefToDivNest(divName) {
if( document.layers ) { return document.layers[divName]; } //NS4
if( document[divName] ) { return document[divName]; } //NS4 also
if( document.getElementById ) { return document.getElementById(divName); } //DOM (IE5+, NS6+, Mozilla0.9+, Opera)
if( document.all ) { return document.all[divName]; } //Proprietary DOM - IE4
return false;
}

window.setInterval('flakeFall();',100);</script></div></td></tr></table>
ThanhCong
ThanhCong
Chủ diễn đàn

Tổng số bài gửi : 1072
Tài sản Tài sản : 3197
NGAY SINH NGAY SINH : 14/01/1996
NGAY THAM GIA : 28/08/2011
TUOI : 28
Đến từ Đến từ : Hà nội

https://thanhcong.forumvi.com

Về Đầu Trang Go down

Về Đầu Trang


 
Permissions in this forum:
Bạn không có quyền trả lời bài viết