berikut script-nya :
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="fahmi" />
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/bootstrap.css" rel="stylesheet" style="text/css"/>
</head>
<body>
<script type="text/javascript">
var n=prompt("Masukkan nilai");
n=parseInt(n);
if (n>=70 && n<=100) {
document.write ("  <h1>anda lulus, selamat ...!</h1> <br>   anda lulus dengan nilai = "+n);
}
else if (n<70 && n>=1) {
document.write ("  <h1>anda harus belajar lagi...!</h1 <br>   nilai anda = "+n)
}
else {
document.write("salah memasukkan nilai, coba lagi")
}
</script>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="fahmi" />
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/bootstrap.css" rel="stylesheet" style="text/css"/>
</head>
<body>
<script type="text/javascript">
var n=prompt("Masukkan nilai");
n=parseInt(n);
if (n>=70 && n<=100) {
document.write ("  <h1>anda lulus, selamat ...!</h1> <br>   anda lulus dengan nilai = "+n);
}
else if (n<70 && n>=1) {
document.write ("  <h1>anda harus belajar lagi...!</h1 <br>   nilai anda = "+n)
}
else {
document.write("salah memasukkan nilai, coba lagi")
}
</script>
</body>
</html>
Tidak ada komentar:
Posting Komentar