forked from william1099/BasicEcommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamajon.js
32 lines (32 loc) · 817 Bytes
/
amajon.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function tabbaru(event) {
var link = event
var new_window = window.open(event, "", "width=1100px,height=900px,left=100")
}
var hitung = 1;
function iklan() {
window.setTimeout("iklan2()", 2000);
}
function iklan2() {
hitung++;
if (hitung > 3) hitung = 1;
window.document.iklan.src = "img/banner" + hitung + ".jpg";
window.setTimeout("iklan2()",2000);
}
function tampil(event) {
var temp = document.getElementById("hargaa");
temp.innerHTML = "Hargaaaa : " + event - 2;
}
function ubah(x) {
var nilai = event.key;
var temp = document.getElementById("hargaa");
temp.innerHTML = "Harga : " + x * nilai;
}
function kelogin() {
window.location.href = "login.php";
}
function keSignup() {
window.location.href = "Signup.php";
}
function kelogout() {
window.location.href = "logout.php";
}