• About us
    •  
       Vsevolod Kio
      (programmer)
       HTML
       DHTML
       CSS
       JavaScript
       PHP
       SQL
       Irina Kio
      (designer)
       3D MAX
       Corel Draw
       Adobe Photoshop
       Scetch Up
       Autocad
      + our friends who know things
              we do not know...
  • About you
    •  your IP:
       your Country:
       your Brouser:
       Code Name:
       Version:
       Platform:
       Screen
       Resolution:
      x
       Java enabled:
       Pages Viewed:
      more >>
Contact us
Guestbook
Web hosting
Shop
 
 Page 1 of 1  
 
  If you are interested in web site design, probably the programme scripts which we place and are going to place in the future in this section of our website will be useful for you. 
 
Scripts / JS Calculator /
 
 
 

www.artkio.com


The calculator made with the use of the programming languages JavaScript and HTML. It is certainly not new in the proper sense of the word because thousands similar programme have already been written. But we wanted to make the original particular calculator. The idea consists in creating of an attractive design of the calculator without use of any pictures in the format .gif, .jpeg, .png, or any others. Therefore, if it is necessary for you, you can easily copy and insert it into the needed place.


So a to use the script:
  • Mark a script with the mouse.


  • Copy out the script using a combination of keys CTRL+C.


  • Insert the script into the necessary place using a combination of keys CTRL+V.
<div style="position:absolute; left: 430px; top: 82px; width:100px">
<script language="javascript">
<!--
var kio=new String(''); var reg=1;
function v(){if(reg==0){document.calculator.disp.value=''; reg=1;}
document.calculator.disp.value=document.calculator.disp.value+kn;}
function v1(){if(kio!=''){v4(j=0);}
kio=kio+document.calculator.disp.value; kio=kio+m; reg=0;}
function v4(){var s1qrt=j; kio=kio+document.calculator.disp.value; var a=kio.toString();
if (/[,]/.test(a)){var vsp=a.split(','); var a=vsp.join('.');}
var itog=eval(a);
if (s1qrt==1){itog=Math.sqrt(itog); kio=Math.sqrt(itog);}
document.calculator.disp.value=itog; kio=''; a=''; itog=''; s1qrt=0;}
function v5(){if(kio!=''){kio='';} kio='1/'; v4(j=0);}
function c(){kio=''; document.calculator.disp.value='';}
function mire(mi){mi='-'+document.calculator.disp.value; document.calculator.disp.value='';
document.calculator.disp.value=mi;}
//-->
</script>
<table width="100" border="5" cellspacing="0" cellpadding="0" bgcolor="#000099" style="font-size:10px">
<tr>
<td colspan="5" align="center"><form name="calculator"><input type=text name="disp" value=""
size="14" style="color:#ffffff; font-weight:600; background-color:#000000"
onkeypress="alert('Please enter the data only with the mouse! '); return false;"/></form></td>
</tr><tr><td colspan="4" align="center"><a href="http://www.artkio.com" style="font-size:9px; color:#66CCFF;
font-family:Arial, Helvetica, sans-serif; text-decoration:none">www.artkio.com</a></td>
<td><button onmousedown="c()" style="width:40px; font-size:14px; color:#FF0000;
font-weight:bold;">c</button></td>
<tr><td><button style="width:30px"onmousedown="v(kn=7)">7&nbsp;</button></td>
<td><button style="width:30px"onmousedown="v(kn=8)">8&nbsp;</button></td>
<td><button style="width:30px"onmousedown="v(kn=9)">9&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v1(m='/')">/</button></td>
<td><button style="width:40px" onmousedown="v4(j=1)">sqrt</button></td>
</tr><tr><td><button style="width:30px" onmousedown="v(kn=4)">4&nbsp;</button></td>
<td><button style="width:30px"onmousedown="v(kn=5)">5&nbsp;</button></td>
<td><button style="width:30px"onmousedown="v(kn=6)" >6&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v1(m='*')">*</button></td>
<td><button style="width:40px" onmousedown="v1(m='/100*')">%</button></td>
</tr><tr>
<td><button style="width:30px" onmousedown="v(kn=1)">1&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v(kn=2)">2&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v(kn=3)">3&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v1(m='-')">-</button></td>
<td><button style="width:40px" onmousedown="v5()">1/x</button></td>
</tr><tr>
<td><button style="width:30px"onmousedown="v(kn=0)">0&nbsp;</button></td>
<td><button style="width:30px" onmousedown="mire()">-/</button></td>
<td><button style="width:30px" onmousedown="v(kn=',')">&nbsp;,&nbsp;</button></td>
<td><button style="width:30px" onmousedown="v1(m='+')">+&nbsp;</button></td>
<td><button style="width:40px" onmousedown="v4(j=0)">=</button></td>
</tr></table></div>
 
 
 
 
   
 Page 1 of 1   
   
  
 
278-849-473