CoolBook.Info : The Learning of Website Development

PHP, XHTML, CSS, JavaScript, WP, …

Archive for 2011

onLoad  and  onunLoad

The onLoad event occurs immediately after a page or and image is loaded.

syntax    onLoad=”JavaScriptCode”

Support by the folowing HTML tags:  <body>,  <img>
Support by the folowing JavaScript object :  body,  image
Read the rest of this entry »

JavaScript

1. Aleart Box

Syntax    aleart(“sometext”);

2. Confirm Box

Syntex     confirm(“sometext”);

Read the rest of this entry »

JavaScript

Class คือ โครงร่างที่ใช้ในการกำหนดองค์ประกอบและวิธีทำงานของ object

ลักษณะทั่วไปของ class

class ชื่อคลาส {
.
.
}
Read the rest of this entry »

PHP

เฮดเดอร์ (Header) เป็นข้อมูลบางอย่างที่ใช้ในการสื่อสารกันระหว่างเซิร์ฟเวอร์และเบราเซอร์การกำหนดเฮดเดอร์จะใช้ฟังก์ชัน ดังนี้

header(“ชื่อเฮดเอร์: ค่าเฮดเดอร์”)

- ชื่อเฮดเดอร์ มีหลายลักษณะ ขึ้นกับว่าเราจะส่งข้อมูลอะไรไปยังเบราเซอร์
- ค่าเฮดเดอร์ ต้องกำหนดให้อยู่ในสตริงเดียวกันกับชื่อเฮดเดอร์ เช่น
Read the rest of this entry »

PHP

Sponsors