Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Rushvet каза:http://www.standards-schmandards.com/exhibits/ajax/
Влез в http://www.standards-schmandards.com/exhibits/ajax/ и разгледайfederer_11 каза:Дай кода да видим :lol:
It will only work in IE6, Safari 1.0+ and Mozilla-based browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
</head>
<body>
<form name="form" method="post" action="">
<input id="edno" type="text" name="edno" />
<input id="dve" type="text" name="dve" />
<input onclick="sbor();" type="button" value="send"/>
</form>
<div id="result">
</div>
<script type="text/javascript">
function sbor(){
var edno = parseInt(document.getElementById('edno').value);
var dve = parseInt(document.getElementById('dve').value);
var res = edno + dve;
document.getElementById('result').innerHTML= res;
};
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
</head>
<body>
<form name="form" method="post" action="">
<input id="edno" type="text" name="edno" />
<input id="dve" type="text" name="dve" />
<input id="znak" type="text" name="znak" />
<input onclick="sbor();" type="button" value="send"/>
</form>
<div id="result">
</div>
<script type="text/javascript">
function sbor(){
var edno = parseInt(document.getElementById('edno').value),
dve = parseInt(document.getElementById('dve').value),
znak = document.getElementById('znak').value;
if ( znak == ''){
alert('Въведете математически оператор!');
}else{
res = eval( edno + znak + dve);
}
document.getElementById('result').innerHTML= res;
};
</script>
</body>
</html>