Wiki DRKB

. , . , , . . .

1. <body> :

<SCRIPT>
var k;
imgprint= ;
imgall= ;
var ran=new Array(imgprint-1);
function random_number(){
return Math.round(Math.random() * imgall);
}
function check(num){
while(k!=num){
ran[num]=random_number();
k=0;
for(a=0;a<num;a++){
if(ran[a]!=ran[num]){
k++
}
}
}
}
ran[0]=random_number();
for(a=1;a<imgprint;a++){
check(a);
}
img=new Array(imgall);
link=new Array(imgall);
alt=new Array(imgall);
img[0]=" 0"; link[0]=" 0"; alt[0]=" 0";
img[1]=" 1"; link[1]=" 1"; alt[1]=" 1";
img[2]=" 2"; link[2]=" 2"; alt[2]=" 2";
img[3]=" 3"; link[3]=" 3"; alt[3]=" 3";
img[4]=" 4"; link[4]=" 4"; alt[4]=" 4";
img[5]=" 5"; link[5]=" 5"; alt[5]=" 5";
img[6]=" 6"; link[6]=" 6"; alt[6]=" 6";
img[7]=" 7"; link[7]=" 7"; alt[7]=" 7";
img[8]=" 8"; link[8]=" 8"; alt[8]=" 8";
img[9]=" 9"; link[9]=" 9"; alt[9]=" 9";
for(i=0;i<imgprint;i++){
document.write('<a href="'+link[ran[i]]+'" target="_blank">');
document.write('<img width=88 height=31 border=0 src="'+img[ran[i]]+'"'); document.write('alt="'+alt[ran[i]]+'"></a>');
}
document.write('</center>');
</SCRIPT>


, . 10 :

img[0]=" 0"; link[0]=" 0"; alt[0]=" 0";

0 - ( IMG SRC=), , www.yourname.ru/yourname/your_img.gif. 0- , ( A HREF=), , www.yourname.ru/yourname. 0- ( ALT=),

. , , . , , -, , , . , 0, - 9, , .

- . , 5, 5 .
, , .