Script sa cada stegulete cu Romania
Forum gratuit: forum de suport al utilizatorilor :: Forum de suport :: Probleme legate de un script (cod) :: Arhiva scripturi/coduri
Pagina 1 din 1 • Distribuiţi
Script sa cada stegulete cu Romania
Imi da si mie cineva un script ca sa cada stegulete cu romania va rog
Ultima editare efectuata de catre ReyMisterio in Sam Dec 01, 2012 3:58 pm, editata de 1 ori
Re: Script sa cada stegulete cu Romania
Poftim:
Succes!
- Cod:
<script type="text/javascript">
var speed=40; // Speed
var flakes=20; // Number of bats
var flake_image="http://cdn1.iconfinder.com/data/icons/famfamfam_flag_icons/ro.png"; //url of the image
var swide, shigh;
var dx=new Array();
var xp=new Array();
var yp=new Array();
var am=new Array();
var sty=new Array();
window.onload=function() { if (document.getElementById) {
var k, f, b;
b=document.createElement("div");
b.style.position="absolute";
b.setAttribute("id", "bod");
document.body.appendChild(b);
set_scroll();
set_width();
for (var i=0; i<flakes; i++) {
dx[i]=0;
am[i]=Math.random()*20;
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=Math.random()*shigh;
sty[i]=0.75+1.25*Math.random();
f=document.createElement("div");
f.style.position="absolute";
f.setAttribute("id", "flk"+i);
f.style.zIndex=i;
f.style.top=yp[i]+"px";
f.style.left=xp[i]+"px";
k=document.createElement("img");
k.src=flake_image;
f.appendChild(k);
b.appendChild(f);
}
setInterval("winter_snow()", speed);
}}
window.onresize=set_width;
function set_width() {
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (typeof(self.innerHeight)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
else {
swide=800;
shigh=600
}
}
window.onscroll=set_scroll;
function set_scroll() {
var sleft, sdown;
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
document.getElementById("bod").style.top=sdown+"px";
document.getElementById("bod").style.left=sleft+"px";
}
function winter_snow() {
for (var i=0; i<flakes; i++) {
yp[i]+=sty[i];
if (yp[i]>shigh-30) {
xp[i]=am[i]+Math.random()*(swide-2*am[i]-25);
yp[i]=0;
sty[i]=0.75+1.25*Math.random();
}
dx[i]+=0.02+Math.random()/10;
document.getElementById("flk"+i).style.top=yp[i]+"px";
document.getElementById("flk"+i).style.left=(xp[i]+am[i]*Math.sin(dx[i]))+"px";
}
}
</script>
Succes!
Re: Script sa cada stegulete cu Romania
Omu merge pe toate versiunile si unde se adauga in generalitati?
Re: Script sa cada stegulete cu Romania
Codul functioneaza pe toate versiunile. Il poti adauga in Generalitati, Anunturi, Widget-uri sau daca folosesti phpbb2/punbb in overall_footer_end sau overall_header.
Re: Script sa cada stegulete cu Romania
Mersi Omu .Raman dator
Re: Script sa cada stegulete cu Romania
Cu placere.
Subiecte similare
» De ce la unele script-uri imi apare codul de la script nu imaginea de la script sau alte setari?
» Script Total Redirectionari + script jquery slider dreapta
» Script portal CS , script html
» din: CS8 ROMANIA
» CS8 ROMANIA
» Script Total Redirectionari + script jquery slider dreapta
» Script portal CS , script html
» din: CS8 ROMANIA
» CS8 ROMANIA
Forum gratuit: forum de suport al utilizatorilor :: Forum de suport :: Probleme legate de un script (cod) :: Arhiva scripturi/coduri
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum