با اومدن پاییز وبلاگت بارونی میشه

کد:
<!--Powered javascript code by www.pesarejahromi.mihanblog.com--><style>
.drop { position: absolute; width: 3; filter: flipV(), flipH(); font-size: 40; color: blue }
</style>
<script language="javascript">

//Rain/Snow effect- By Craig Blanchette kodhaye-weblog

//Visit http://www.kodhaye-weblog.persianblog.com

snow = false; // false-rain; true-snow
snowsym = " * " //These are the symbols for each
rainsym = " ' " //You can put images here.
howmany = 10 //How many drops/snowflakes?

/**************Do not need to change anything below***********/
if(snow){sym = snowsym; speed=1; angle=10; drops=howmany}
else{sym = rainsym; speed=50; drops=howmany; angle=6}
movex = -speed/angle; movey = speed; count = 0;

function moverain(){
for(move = 0; move < drops; move++){
xx[move]+=movex; yy[move]+=mv[move];
hmm = Math.round(Math.random()*1);
if(xx[move] < 0){xx[move] = maxx+10;}
if(yy[move] > maxy){yy[move] = 10;}
drop[move].left = xx[move]
drop[move].top = yy[move]+doent.body.scrollTop;
}setTimeout('moverain()','1')}

</script>
<script language="javascript">

if (doent.all){
drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array()
ly = "doent.all[\'"; st = "\'].style"
for(make = 0; make < drops; make++){
doent.write('<div id="drop'+make+'" class=drop>'+sym+'</div>');
drop[make] = eval(ly+'drop'+make+st);
maxx = doent.body.clientWidth-40
maxy = doent.body.clientHeight-40
xx[make] = Math.random()*maxx;
yy[make] = -100-Math.random()*maxy;
drop[make].left = xx[make]
drop[make].top = yy[make]
mv[make] = (Math.random()*5)+speed/4;
drop[make].fontSize = (Math.random()*10)+20;
if(snow){col = 'white'}else{col = 'blue'}
drop[make].color = col;
}
window.onload=moverain
}
</script>
ستاره های رنگی
کد:
<!--Powered javascript code by WWW.pesarejahromi.mihanblog.com-->
<body>

<script LANGUAGE="JavaScript1.2">
<!--


//set Interval between each firework display, 
var intervals=2000
var sparksOn = true;
var speed = 25;
var power = 1;

//Dont change these values-------
var doentWidth=doentHeight=randomx=randomy=leftc orner=topcorner=0
var ns=(doent.layers);
var ie=(doent.all);
var sparksAflyin = false;
var allDivs = new Array(10);
var totalSparks = 0;
//-------------------------------

function initAll(){
if(!ns && !ie){
sparksOn = false;
return;
}
setInterval("firework()",intervals)

if (ns)
doent.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
for(dNum=0; dNum<7; ++dNum){
if(ie)
allDivs[dNum]=eval('doent.all.sDiv'+dNum+'.style');
else
allDivs[dNum]=eval('doent.layers["sDiv'+dNum+'"]');
}
}

function firework(){
//below code detects the browser dimenions
if (ie){
doentWidth=doent.body.clientWidth
doentHeight=doent.body.clientHeight
leftcorner=doent.body.scrollLeft
topcorner=doent.body.scrollTop
}
else if (ns){
doentWidth=window.innerWidth
doentHeight=window.innerHeight
leftcorner=pageXOffset
topcorner=pageYOffset

}
//below code randomly generates a set of coordinates that fall within the dimension
randomx=leftcorner+Math.floor(Math.random()*doe ntWidth)
randomy=topcorner+Math.floor(Math.random()*doen tHeight)


if(sparksOn){
if(!sparksAflyin){
sparksAflyin=true;
totalSparks=0;
for(var spark=0;spark<=6;spark++){
dx=Math.round(Math.random()*50);
dy=Math.round(Math.random()*50);
moveTo(spark,randomx,randomy,dx,dy);
}
}
}
}

function moveTo(i,tempx,tempy,dx,dy){
if(ie){
if(tempy+80>(doent.body.offsetHeight+doent.b ody.scrollTop))
tempy=doent.body.offsetHeight+doent.body.scr ollTop-80;
if(tempx+80>(doent.body.offsetWidth+doent.bo dy.scrollLeft))
tempx=doent.body.offsetWidth+doent.body.scro llLeft-80;
}
if(tempx>-50&&tempy>-50){
tempx+=dx;tempy+=dy; 
allDivs[i].left=tempx;
allDivs[i].top=tempy;
dx-=power;dy-=power;
setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+ ","+dy+")",speed)
}
else
++totalSparks
if(totalSparks==7){
sparksAflyin=false;
totalSparks=0;
}
}
window.onload=initAll
//End-->
</script>
<style>
#sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:Aqua;}
#sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:22px; color:red;}
#sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:blue;}
#sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;}
#sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:yellow;}
#sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:lightgreen;}
#sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:silver;}
</style>
<p></p>
<div id="sDiv0">
*</div>
<div id="sDiv1">
*</div>
<div id="sDiv2">
*</div>
<div id="sDiv3">
*</div>
<div id="sDiv4">
*</div>
<div id="sDiv5">
*</div>
<div id="sDiv6">
*</div>

</body>

</html>


<!--END CODE - Powered java script code by WWW.SONYCARD20.COM-->