Accessibility Links

รู้จักกับ common attribute ของ xhtml : ความคิดเห็น

อ่าน: รู้จักกับ common attribute ของ xhtml

แสดงความคิดเห็น: รู้จักกับ common attribute ของ xhtml

  1. Re: รู้จักกับ common attribute ของ xhtml

    • 1
    • เคยเห็น event onblur ไม่รู้ว่ามันคืออะไรหรือครับ
    • โดย: ... เมื่อ: 2008-05-07 11:30:42
  2. Re: รู้จักกับ common attribute ของ xhtml

    • 2
    • thank you for sharing
    • โดย: โดม เมื่อ: 2008-05-07 11:50:56
  3. 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
  4. Re: รู้จักกับ common attribute ของ xhtml

    • 4
    • บางอย่างรู้ แต่ไม่รู้ที่มาของมันเลย
      พอรู้ที่มาของมันแบบนี้ ทำให้เสริมความเข้าใจ+ความจำได้ เพื่อที่จะนำมาใช้ได้ถูกตอ้งมากขึ้นไปอีก

      ขอบคุณนะคะ ^^
      p.s. มุกดู thaicss ใน IE6 ที่บ้าน(แท้)<< (Remove ie7 + multiple IE ทิ้งไปแล้ว) รู้สึกจะมีปัญหานะคะ ทั้ง font ทั้งปุ่ม หรือรายละเอียดยิบย่อยอะค่ะ - -"
    • โดย: mook เมื่อ: 2008-05-12 20:16:49

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