Could you please identify, why this piece doesn't work with internet explorer6
while it works in chrome, firefox and opera?
ey
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<body onLoad="ST()" >
<center>
<table border="0">
<tbody>
<tr>
<td><form name="item">
<pre> </pre>
<table border="0" cellspacing="0" cellpadding="0"
width=1000px>
<tr>
<td height="89"> </td>
</tr>
<tr>
<td height="82"><p>toy
<input type="TEXT" name="a" size="20" value=""
id="okno">
</p>
<p>
<input type="button" value=" UP "
onClick="dawaj()">
<input type="button" value=" DOWN "
onClick="dawaj2()">
</p></td>
</tr>
<tr>
<td height="78"> </td>
</tr>
</table>
<center>
</center>
</form>
</tbody>
</table>
</center>
<script>
n=1;
function
SH(v){zz=v.length;for(i=1;i<(zz);i++){y=r(zz);x=r(zz);z=v[y];v[y]=v[x];v[x
]=z}}
function ST(){SH(item);b=item.length;}
function dawaj(){
n=n+1; if (n>b-1){n=1}
if(item[n]==null){n=0};x=item[n];v=new
Array;x=x+"|";i=0;while(x.length>1){l=x.substring(0,x.indexOf("|"));v[i]=l
;i++;x=x.substring(x.ind
exOf("|")+1)};
document.item.a.value=v[0];
}
function dawaj2(){
//
n=n-1;if (n<1){n=b-1}
if(item[n]==null){n=0};x=item[n];v=new
Array;x=x+"|";i=0;while(x.length>1){l=x.substring(0,x.indexOf("|"));v[i]=l
;i++;x=x.substring(x.ind
exOf("|")+1)};
document.item.a.value=v[0];
}
function r(){}
item=new Array("",
"boy|strong|brave",
"girl|pretty|smart",
"dog|furry|friendly"
);
</script>
</body>
</html>