Accessibility Links
Skip to Content
Skip to Main Navigation
Skip to thaicss.com Search
Accessibility help
Access keys help
รู้จักกับ common attribute ของ xhtml : ความคิดเห็น
CSS
XHTML
Web Standards
Accessibility
Forum
Blogs
ข่าว
About Us
Contact Us
Search
ลอง ลอง หาดูนะครับ
อ่าน:
รู้จักกับ common attribute ของ xhtml
แสดงความคิดเห็น
: รู้จักกับ common attribute ของ xhtml
Re: รู้จักกับ common attribute ของ xhtml
1
เคยเห็น event onblur ไม่รู้ว่ามันคืออะไรหรือครับ
โดย:
...
เมื่อ: 2008-05-07 11:30:42
Re: รู้จักกับ common attribute ของ xhtml
2
thank you for sharing
โดย:
โดม
เมื่อ: 2008-05-07 11:50:56
Re: รู้จักกับ common attribute ของ xhtml
3
onblur >> เขียน javascript มาลองสิครับไม่เห็นยากทดลองดูครับท่านสามจุด
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<script type="text/javascript">
function test(v){
if(v)
document.getElementById("OnLost").innerHTML="<h3>Lose Focus = Blur</h3>";
else{
document.getElementById("OnLost").focus();
document.getElementById("OnLost").innerHTML="<h3>Fieldset in Focus</h3>";
}
}
</script>
</head>
<body Onload="test(0)">
<fieldset id="OnLost" OnBlur="test(1)">
</fieldset>
<p><input type="button" value="Click Me!!" /></p>
</body>
</html>
ลองไล่ดู จาก load มาสั่งให้ focus fieldset เมื่อมัน lost focus(blur) ไป focus แทนที่ปุ่ม นั่นแหละ event onBlur ถึงทำงาน ครับ
โดย:
โดม
เมื่อ: 2008-05-07 12:13:11
Re: รู้จักกับ common attribute ของ xhtml
4
บางอย่างรู้ แต่ไม่รู้ที่มาของมันเลย
พอรู้ที่มาของมันแบบนี้ ทำให้เสริมความเข้าใจ+ความจำได้ เพื่อที่จะนำมาใช้ได้ถูกตอ้งมากขึ้นไปอีก
ขอบคุณนะคะ ^^
p.s. มุกดู thaicss ใน IE6 ที่บ้าน(แท้)<< (Remove ie7 + multiple IE ทิ้งไปแล้ว) รู้สึกจะมีปัญหานะคะ ทั้ง font ทั้งปุ่ม หรือรายละเอียดยิบย่อยอะค่ะ - -"
โดย:
mook
เมื่อ: 2008-05-12 20:16:49
แสดงความคิดเห็น
ชื่อ
E-mail
เรื่อง
ข้อความ
Just Added
แจ้งยกเลิกการปฐมนิเทศน์ วันอาทิตย์นี้ครับ
ปิดกล้อง
Thai Web Standards Group (TWG) orientation
ที่ทำงาน ตลาด แม่ และ ผมคิดถึงบ้าน
การไถนาแห่งยุคสมัย
Re: รู้จักกับ common attribute ของ xhtml
Re: รู้จักกับ common attribute ของ xhtml
Re: รู้จักกับ common attribute ของ xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<script type="text/javascript">
function test(v){
if(v)
document.getElementById("OnLost").innerHTML="<h3>Lose Focus = Blur</h3>";
else{
document.getElementById("OnLost").focus();
document.getElementById("OnLost").innerHTML="<h3>Fieldset in Focus</h3>";
}
}
</script>
</head>
<body Onload="test(0)">
<fieldset id="OnLost" OnBlur="test(1)">
</fieldset>
<p><input type="button" value="Click Me!!" /></p>
</body>
</html>
ลองไล่ดู จาก load มาสั่งให้ focus fieldset เมื่อมัน lost focus(blur) ไป focus แทนที่ปุ่ม นั่นแหละ event onBlur ถึงทำงาน ครับ
Re: รู้จักกับ common attribute ของ xhtml
พอรู้ที่มาของมันแบบนี้ ทำให้เสริมความเข้าใจ+ความจำได้ เพื่อที่จะนำมาใช้ได้ถูกตอ้งมากขึ้นไปอีก
ขอบคุณนะคะ ^^
p.s. มุกดู thaicss ใน IE6 ที่บ้าน(แท้)<< (Remove ie7 + multiple IE ทิ้งไปแล้ว) รู้สึกจะมีปัญหานะคะ ทั้ง font ทั้งปุ่ม หรือรายละเอียดยิบย่อยอะค่ะ - -"