Free php scripts.
scripturi pentru webmasteri - free web tools - copie si lipeste scripts pentru situl tau sute de scripturi
Daca vrei sa ai acces la baza de date trebuie sa te inregistrezi. Succes. Omae
|
Lista Forumurilor Pe Tematici
|
Free php scripts. | Reguli | Inregistrare | Login
POZE FREE PHP SCRIPTS.
Nu sunteti logat.
|
Nou pe simpatie: ionela24 din Prahova
| Femeie 24 ani Prahova cauta Barbat 25 - 47 ani |
|
omaebazooka
Administrator
Inregistrat: acum 18 ani
Postari: 1105
|
|
PASUL 1 Insert the following code into the <head> section of your page:
<script language="JavaScript"> <!-- //you can assign the initial color of the background here r=255; g=255; b=255; flag=0; t=new Array; o=new Array; d=new Array;
function hex(a,c) { t[a]=Math.floor(c/16) o[a]=c%16 switch (t[a]) { case 10: t[a]='A'; break; case 11: t[a]='B'; break; case 12: t[a]='C'; break; case 13: t[a]='D'; break; case 14: t[a]='E'; break; case 15: t[a]='F'; break; default: break; } switch (o[a]) { case 10: o[a]='A'; break; case 11: o[a]='B'; break; case 12: o[a]='C'; break; case 13: o[a]='D'; break; case 14: o[a]='E'; break; case 15: o[a]='F'; break; default: break; } }
function ran(a,c) { if ((Math.random()>2/3||c==0)&&c<255) { c++ d[a]=2; } else { if ((Math.random()<=1/2||c==255)&&c>0) { c-- d[a]=1; } else d[a]=0; } return c } function do_it(a,c) { if ((d[a]==2&&c<255)||c==0) { c++ d[a]=2 } else if ((d[a]==1&&c>0)||c==255) { c--; d[a]=1; } if (a==3) { if (d[1]==0&&d[2]==0&&d[3]==0) flag=1 } return c } function disco() { if (flag==0) { r=ran(1, r); g=ran(2, g); b=ran(3, b); hex(1,r) hex(2,g) hex(3,b) document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag=50 } else { r=do_it(1, r) g=do_it(2,g) b=do_it(3,b) hex(1,r) hex(2,g) hex(3,b) document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag-- } if (document.all) setTimeout('disco()',50) } //--> </script>
PASUL 2 Add the below event handler into the <body> tag itself, like this:
<body onload="disco()">
_______________________________________ "Living mistery" "RoTop69" "Producator vinuri nobile" - Paunesti,Vrancea, mail : info-at-cramanobless.ro Intra in lumea EREPUBLIK
|
|
pus acum 17 ani |
|
maharet
Baby
Inregistrat: acum 17 ani
Postari: 4
|
|
te rog scriemi cum trebe scriptu
|
|
pus acum 16 ani |
|
michel
Baby
Inregistrat: acum 16 ani
Postari: 3
|
|
nu merge asa cum ai zis tu..deci bagi tot asta in <head> si pe urma bagi in <body onload="disco()"> am facut si nu mere...
|
|
pus acum 16 ani |
|
spimeer
Baby
Inregistrat: acum 16 ani
Postari: 1
|
|
<html> <head> <script language="JavaScript"> <!-- //you can assign the initial color of the background here r=255; g=255; b=255; flag=0; t=new Array; o=new Array; d=new Array;
function hex(a,c) { t[a]=Math.floor(c/16) o[a]=c%16 switch (t[a]) { case 10: t[a]='A'; break; case 11: t[a]='B'; break; case 12: t[a]='C'; break; case 13: t[a]='D'; break; case 14: t[a]='E'; break; case 15: t[a]='F'; break; default: break; } switch (o[a]) { case 10: o[a]='A'; break; case 11: o[a]='B'; break; case 12: o[a]='C'; break; case 13: o[a]='D'; break; case 14: o[a]='E'; break; case 15: o[a]='F'; break; default: break; } }
function ran(a,c) { if ((Math.random()>2/3||c==0)&&c<255) { c++ d[a]=2; } else { if ((Math.random()<=1/2||c==255)&&c>0) { c-- d[a]=1; } else d[a]=0; } return c } function do_it(a,c) { if ((d[a]==2&&c<255)||c==0) { c++ d[a]=2 } else if ((d[a]==1&&c>0)||c==255) { c--; d[a]=1; } if (a==3) { if (d[1]==0&&d[2]==0&&d[3]==0) flag=1 } return c } function disco() { if (flag==0) { r=ran(1, r); g=ran(2, g); b=ran(3, b); hex(1,r) hex(2,g) hex(3,b) document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag=50 } else { r=do_it(1, r) g=do_it(2,g) b=do_it(3,b) hex(1,r) hex(2,g) hex(3,b) document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3] flag-- } if (document.all) setTimeout('disco()',50) } //--> </script>
</head> <body onload="disco()"> <h1 align="center">by ShObY</h1> </body> </html>
ASTA e complet /// de la A - la - Z ///
|
|
pus acum 16 ani |
|
TanKy
Baby
Inregistrat: acum 15 ani
Postari: 10
|
|
Ha , la mn niki asta nu mere
|
|
pus acum 15 ani |
|