วันพฤหัสบดีที่ 15 ธันวาคม พ.ศ. 2554

ปรับขนาดหน้าเว็บตาม Resolutions ได้ตามต้องการ

ใช้กำหนดขนาดหน้าเว็บไซต์ให้แต่ละ Resolutions ตามกำหนด

<script language="”Javascript”">
<!–
if (screen.width <= 640) {
document.location = “640×480.htm”;
}
else if (screen.width <= 800) {
document.location = “800×600.htm”;
}
else if (screen.width <= 1024) {
document.location = “1024×768.htm”;
}
if (screen.width > 1024) {
document.location = “huuuuuuuuge.htm”;
}
function banner() {
};
//–>
</script>


ข้อมูลจาก: phpparty

ไม่มีความคิดเห็น:

แสดงความคิดเห็น