<body>
<script>
function compute(obj) {
obj.result.value = eval(obj.expr.value) }
</script>
<form name="evalform">
: <input type=text name="expr" size=20 >
<BR>
: <input type=text name="result" size=20 >
<BR>
<input type="button" value="" onClick="compute(this.form)">
</form>
</body>
<html>
<head>
<script language="JavaScript">
//
//
m_Name=new Array("", "", "",
"", "", "", "", "", "", "", "", "");
//
d_Name=new Array("", "",
"", "", "", "", "");
function showTime()
{
var Now = new Date();
var str=" ";
str+= Now.getDate()+" "+m_Name[Now.getMonth()]+
" " + Now.getFullYear()+"<br>";
str+=" "+ Now.getHours() + ":" + Now.getMinutes() + ":" + Now.getSeconds()+"<br>";
str+=" - "+ d_Name[Now.getDay()];
document.write(str);
}
</script>
</head>
<body>
<script language="JavaScript">
showTime();
</script>
</body>
</html>
<html>
<head>
</head>
<body>
<br>
<a href="javascript:window.alert(', ? ?..')">
, !!! </a><br>
, , - ?
</body>
</html>
<html >
<body>
<script language="javascript">
document.write('<br> 1 <br>');
x1 = Math.cos(Math.PI / 2) + Math.sin(Math.LN10); y1 = Math.tan(2 * Math.E);
document.write('x1= '+x1+'; y1= '+y1);
document.write('<br> 2<br>');
with (Math) { x2 = cos(PI / 2) + sin(LN10); y2 = tan(2 * E); }
document.write('x2= '+x2+'; y2= '+y2);
</script>
</body>
</html>
<html>
<body>
<script language="javascript">
document.write('<B> </B><br>');
document.write(' <B>parseFloat</B><br>');
for (i=1;i<10;i++)
{
if (parseFloat(i)%2!=0)
document.write(i+'<br>');
}
document.write(' <B>parseInt</B><br>');
|
|
for (i=1;i<10;i++)
{
if (parseInt(i)%2!=0)
document.write(i+'<br>');
}
document.write('<B> </B><br>');
document.write(' <B>parseInt</B><br>');
for (j=1;j<10;j++)
{
if (parseInt(j)%2==0)
document.write(j+'<br>');
}
document.write(' <B>parseFloat</B><br>');
for (j=1;j<10;j++)
{
if (parseFloat(j)%2==0)
document.write(j+'<br>');
}
</script>
</body>
<html>
<body>
<script language="javascript">
var k=window.prompt(" :");
document.write(k.toLowerCase());
</script>
</body>
</html>
()
<html>
<body>
<script language="javascript">
var k=window.prompt(" :");
document.write(k.toUpperCase());
</script>
</body>
</html>
1 9 ( )
<html>
<body>
<script language="javascript">
for (i=1,j=9;i<10;i++,j--)
alert(i+'*'+j+'='+i*j);
</script>
</body>
</html>
1 9 ( )
<html> <body>
<script language="javascript">
for (i=1,j=9;i<10;i++,j--)
{
document.write(i+'*'+j+'='+i*j+'<br>');
};
</script>
</body>
</html>
1 9 ( )
<html>
<body>
<table border="1" align="center">
<tr><td><br>(i)</td><td>'<br>(j)'</td><td>''</td></tr>
<script language="javascript">
for (i=1,j=9;i<10;i++,j--)
{
document.write('<tr><td>'+i+'</td><td>'+j+'</td><td>'+i*j+'</td></tr>');
};
</script>
</table>
</body>
</html>
/
<html>
<head>
<script language="JavaScript">
function openWin() {
myWin= open("http://www.vgta.vrn.ru", "myWin", "width=640, height=480");}
function closeWin() {
myWin.close();}
</script>
</head>
<body>
<form>
<input type="button" value=" " onClick="openWin()">
<input type="button" value=" " onClick="closeWin()">
</form>
</body>
</html>