hehehe

09 October 2022

Views: 4,397

<html>
<head>
<title> hehe </title>
<style>
body{
background-image: url("https://wallpaperaccess.com/full/1739346.jpg");
background-repeat: no-repeat;
text-align: center;
}
</style>
</head>

<body>
<h1> apa anda puas dengan</h1>
<h1> pemerintahan</h1>
<h1> konoha?</h1>

<div id="by" style="position:absolute; left:150px; top:200px; width:210px; height:210;">
<input type="button" value=" SANGAT PUAS " onClick="A1()" />
</div>

<div ID="Bn" style="position:absolute; left:150px; top:240px; width:210px; height:210;">
<input type="button" value=" TIDAK PUAS " onMouseOver="A2()" />
</div>
</body>

<script type="text/javascript">
flag=1

function A1()
{
alert("bagus, sekarang lanjut kerja!!!")
}

function A2()
{
if(flag==1){
Bn.style.top=240
Bn.style.left=100
flag=2}

else if(flag==2){
Bn.style.top=240
Bn.style.left=190
flag=1}
}
</script>
</html>

Share