Tra Từ Điển

Thời gianTiếtThứ 2Thứ 3Thứ 4Thứ 5Thứ 6
8g40 - 9g101Tiếng Việt
Tiếng Anh
Tiếng Việt
Tiếng Việt
9g10 - 9g302Nghỉ giải lao
Tiếng Anh
Nghỉ giải lao
Nghỉ giải lao
9g30 - 10g3Toán
Toán
Toán

Thursday, November 18, 2021

LAB JAVASCRIPT - Dò độ phân giải - if (screen.width==800) document.location='index1.html';

Untitled Document //Code

Dò độ phân giải để chuyển cho user trang web thích hợp với độ phân giải của họ
<script type="text/javascript">
if (screen.width==800) document.location='index1.html';
else if (screen.width==1024) document.location='index2.html';
else document.location='index3.html';
</script>

0 comments:

Post a Comment