<script language="JavaScript" type="text/javascript">
Array.prototype.shuffle = function( b )
{
var i = this.length, j, t;
while( i )
{
j = Math.floor( ( i-- ) * Math.random() );
t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i];
this[i] = this[j];
this[j] = t;
}
return this;
};
function ty()
{
var li=document.getElementsByTagName('li');
var text=new Array()
for (i=0;i<li.length;i++)
{ text[i]=li[i].innerHTML;
}
var text1=text.shuffle();
for (i=0;i<text1.length;i++)
{
*!*if(i>=10) li[i].style.display = 'none';*/!*
li[i].innerHTML=text1[i]
}
}
var butt=document.getElementById('kl')
butt.onclick=ty
</script>
так хорошо?