View Single Post
Old 11-21-2012, 01:34 AM   PM User | #1
eydg
New Coder

 
Join Date: Sep 2012
Posts: 73
Thanks: 2
Thanked 1 Time in 1 Post
eydg is an unknown quantity at this point
ie incompatibility

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>&nbsp;</pre>
            <table border="0" cellspacing="0" cellpadding="0"
width=1000px>
              <tr>
                <td height="89">&nbsp;</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">&nbsp;</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>
eydg is offline   Reply With Quote