Tim rơi lệ
[Code] Xe tuần lộc và trang trí noel
on 14/12/2013Tim rơi lệ
loading...
demo : http://diendan.galaxygamer.org/
chèn vào cuối overall_footer_end
- Code:
<style type="text/css">
#bottom-giangsinhgt{position:fixed;bottom:0;right:0;}
</style>
<!-- GiangSinh - GT -->
<div id="bottom-giangsinhgt"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1260" height="100">
<param name="movie" value="http://giaothuy.com/forum/giangsinh-gt.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="http://giaothuy.com/forum/giangsinh-gt.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1260" height="100"></embed>
</object>
</div>
<script type="text/javascript"> document.write('<style type="text/css">body{padding-bottom:20px}</style><img style="position:fixed;z-index:9999;top:0;left:0" src="http://3.bp.blogspot.com/-FIi2lhedZlM/UqUh7DiIQBI/AAAAAAAABw0/zGmBkOAzb6g/s1600/vbbstyle.net---top-left.png"/><img style="position:fixed;z-index:9999;top:0;right:0" src="http://3.bp.blogspot.com/-e1ht8cs_3Pc/UqUiMUGdW3I/AAAAAAAABw8/qyiyeOVv0cM/s1600/vbbstyle.net---top-right.png"/><div style="position:fixed;z-index:9999;bottom:-50px;left:0;width:100%;height:104px;background:url(http://1.bp.blogspot.com/-QMaoKtD-U74/UqUiYNtnz0I/AAAAAAAABxE/3BVD-f1E1uE/s1600/vbbstyle.net---footer.png) repeat-x bottom left;"></div><img style="position:fixed;z-index:9999;bottom:20px;left:20px" src="http://1.bp.blogspot.com/-Ss5kPDUVIbM/UqUikRK8PqI/AAAAAAAABxM/6fBmSCbU5lI/s1600/vbbstyle.net---bottom-left.png"/>');
</script>
<!-- GiangSinh - GT -->
<!-- Start Hiệu ứng hoa, lá, tuyết rơi,... cho blog --><script type='text/javascript'>
//<=!=[=C=D=A=T=A=[
var snowsrc="http://2.bp.blogspot.com/-0I0swQbjGLs/Uqq5MCBBNgI/AAAAAAAABDE/Zzm8VS9-x5k/s1600/tuyetroi.png" // Thay Link hình của bạn vào đây
var no = 200; // Số ảnh rơi trên blog
var hidesnowtime = 0; // Số giây ảnh biến mất sau khi rơi
var snowdistance = "pageheight"; // Có thể thay đổi giá trị pageheight thành windowheight
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("sinhvientayan.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://sinhvientayan.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility= "hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
//]=]=>
</script>
<!--stop Hiệu ứng tuyết rơi -->
nguồn chinhphuc