แสดงบทความที่มีป้ายกำกับ javascript แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ javascript แสดงบทความทั้งหมด

วันศุกร์ที่ 17 มกราคม พ.ศ. 2557

compressor ช่วยจัดการไฟล์ css, javascript ให้โหลดเร็วขึ้น

วันจันทร์ที่ 19 สิงหาคม พ.ศ. 2556

วิธีทำให้ IE9 ลงไป รู้จักกับ HTML5 และสามารถใช้งาน CSS ได้

นำโค้ดส่วนนี้ ไว้ตรงส่วน <head>
<pre><!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--></pre>
โค้ดนี้ สร้างโดย Remy Sharp และเป็นส่วนหนึ่งของ Google CDN สามารถดึงมาใช้งานได้ โดย Browser ของผู้ใช้จะนำมันมาเก็บเอาไว้ใน Cache เอง

เครดิต: http://flexblog.teerasej.com/

วันพฤหัสบดีที่ 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