SlideShare una empresa de Scribd logo
1 de 21
DHTML with
    JavaScript and CSS
Dynamic HTML (DHTML)
  Dynamic HTML (DHTML) คืออะไร เป็นเทคนิคที่
  ช่วยเพิ่มความสามารถให้
Browser สามารถทำาการโต้ตอบการผูใช้งานเองได้ โดยไม่
                                   ้
  ต้องจำาเป็นต้องไปขอข้อมูลจาก
Web Server ทุกครั้งไป เป็นตัวเลือกที่จะให้ผใช้สร้าง
                                           ู้
  เว็บเพจให้มีภาพเคลื่อนไหวมากขึ้น
และตอบสนองผูใช้แบบ Interactive มากกว่า HTML
                ้
  เวอร์ชนก่อน
         ั
  ส่วนใหญ่ของ Dynamic HTML ได้รับการระบุใน HTML
  4.0 ตัวอย่างของเพจ
Dynamic HTML สีตัวอักษรของหัวข้อเปลี่ยนเมื่อเมาส์
  เคลื่อนผ่าน ยินยอมให้ผู้ใช้ในการ
Dynamic HTML (DHTML)

    ซึ่งวิธการสร้างเป็นแบบ DHTML จะเป็นการใช้
           ี
เทคโนโลยีของ JavaScript และ Cascading
Style Sheets เหล่านี้ชวยในการกำาหนดค่า
                         ่
ต่างๆ ของความสูง ความกว้าง หรือตำาแหน่งของ
ส่วนต่างๆ
ซึ่งอยู่บนเว็บเพจ หรืออาจจะเป็นการรับข้อมูล
User Interface
ได้ด้วย JavaScript ก็เป็นได้
JavaScript คืออะไร

    JavaScript ไม่ใช่ Java , JavaScript
ไม่ใช่ HTML
    JavaScript เป็นภาษาสคริปต์เชิงวัตถุ หรือ
เรียกว่า อ็อบเจ็กโอเรียลเต็ด (Object Oriented
Programming) ที่มีเป้าหมายในการออกแบบ
และพัฒนาโปรแกรมในระบบอินเทอร์เน็ต
สำาหรับผู้เขียนด้วยภาษา HTMLสามารถทำางาน
ข้ามแพลตฟอร์มได้ โดยทำางานร่วมกับ ภาษา
HTML และภาษา Java ได้ทั้งทางฝั่งไคลเอนต์
(Client) และ ทางฝั่งเซิร์ฟเวอร์ (Server)
CSS คืออะไร?

      CSS ย่อมาจากคำาว่า Cascading Style Sheets
  โดยทั่วไปก็จะเรียก
CSS หรือไม่ก็ Style Sheets ฉะนั้นโปรดเข้าใจว่ามา
  มันคือตัวเดียวกัน
CSS แนะนำาและสนับสนุนโดย Microsoft internet
  explorer 3.0
และ Netscape 4.0 เป็นต้นมาเป็นวิธีการ
  กำาหนดการแสดงผลของสิ่งต่างบนเว็บ
เช่น ลักษณะอักษรขนาด สี พื้นหนัง ถ้าใครเคยศึกษา
  ภาษา Html มา
CSS มีประโยชน์ยังไง?
   CSS มีคณสมบัตมากกว่า tag ของ html
               ุ      ิ
         เช่นการกำาหนดกรอบให้ขอความ รวมทั้งสีรูปแบบ
                                  ้
    ของข้อความที่กล่าวมาแล้ว
   CSS นันกำาหนดที่ตนของไฟล์ html หรือตำาแหน่ง
             ้            ้
    อืน ๆ ก็ได้ และสามารถมีผล
      ่
    กับเอกสารทั้งหมด
         หมายถึงกำาหนดครั้งเดียวจุดเดียวก็มีผลกับการแสดง
        ผลทั้งหมดทำาให้เวลาแก้ไขหรือปรับปรุงทำาได้สะดวก
        ไม่ต้องไล่ตามแก้ tag ต่างๆ ทั่วทั้งเอกสาร
   CSS สามารถกำาหนดแยกไว้ตางหากจากไฟล์
                                    ่
    เอกสาร html
    และสามารถนำามาใช้ร่วมกับเอกสารหลายไฟล์ได้
CSS Tutorial
      www.w3schools.com/css/
CSS Syntax


selector { property : value}
CSS file


sample.css
Import CSS file
How to input CSS code
CSS Examples
 Set the background color




             http://www.w3schools.com/css/css_examples.asp
Creating a Transparent Image




         http://www.w3schools.com/css/css_image_transparency.asp
Image Transparency
Mouseover Effect




    On mouse out     On mouse over
CSS Drop Shadows
CSS Drop Shadows




    shadow.gif     shadowAlpha.png
CSS Drop Shadows




           http://www.alistapart.com/articles/cssdropshadows/
CSS image gallery
CSS image gallery
CSS image gallery




    http://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery
Key word search
   image gallery
   Photo Album
   Photo Gallery
   css image gallery
   Php image gallery
   Javascript photo gallery
   Free source photo gallery
   Free code photo Album
   www.cssplay.co.uk

Más contenido relacionado

Destacado

Introduction to On-line Documemt Lab 4
Introduction to On-line Documemt Lab 4Introduction to On-line Documemt Lab 4
Introduction to On-line Documemt Lab 4Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Intro
การพัฒนาเอกสารออนไลน์ขั้นสูง Introการพัฒนาเอกสารออนไลน์ขั้นสูง Intro
การพัฒนาเอกสารออนไลน์ขั้นสูง IntroJenchoke Tachagomain
 
Mobile Game and Application with J2ME - Collision Detection
Mobile Gameand Application withJ2ME  - Collision DetectionMobile Gameand Application withJ2ME  - Collision Detection
Mobile Game and Application with J2ME - Collision DetectionJenchoke Tachagomain
 
Introduction to On-line Documemt Lec02
Introduction to On-line Documemt  Lec02Introduction to On-line Documemt  Lec02
Introduction to On-line Documemt Lec02Jenchoke Tachagomain
 
Mobile Game and Application with J2ME
Mobile Gameand Application with J2MEMobile Gameand Application with J2ME
Mobile Game and Application with J2MEJenchoke Tachagomain
 

Destacado (9)

Android programming
Android programmingAndroid programming
Android programming
 
Introduction to On-line Documemt Lab 4
Introduction to On-line Documemt Lab 4Introduction to On-line Documemt Lab 4
Introduction to On-line Documemt Lab 4
 
Lab 2 For Css
Lab 2 For CssLab 2 For Css
Lab 2 For Css
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Intro
การพัฒนาเอกสารออนไลน์ขั้นสูง Introการพัฒนาเอกสารออนไลน์ขั้นสูง Intro
การพัฒนาเอกสารออนไลน์ขั้นสูง Intro
 
Mobile Game and Application with J2ME - Collision Detection
Mobile Gameand Application withJ2ME  - Collision DetectionMobile Gameand Application withJ2ME  - Collision Detection
Mobile Game and Application with J2ME - Collision Detection
 
Lect07 Page Design
Lect07 Page DesignLect07 Page Design
Lect07 Page Design
 
Introduction to On-line Documemt Lec02
Introduction to On-line Documemt  Lec02Introduction to On-line Documemt  Lec02
Introduction to On-line Documemt Lec02
 
Mobile Game and Application with J2ME
Mobile Gameand Application with J2MEMobile Gameand Application with J2ME
Mobile Game and Application with J2ME
 
Android architecture
Android architectureAndroid architecture
Android architecture
 

Similar a การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 08

Similar a การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 08 (20)

ภาษา css
ภาษา cssภาษา css
ภาษา css
 
Css 3
Css 3Css 3
Css 3
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
Ch10
Ch10Ch10
Ch10
 
ใบความรู้ที่ 2.3 รู้จักภาษาhtml
ใบความรู้ที่ 2.3 รู้จักภาษาhtmlใบความรู้ที่ 2.3 รู้จักภาษาhtml
ใบความรู้ที่ 2.3 รู้จักภาษาhtml
 
ใบความรู้ที่ 2.3 รู้จักภาษาhtml
ใบความรู้ที่ 2.3 รู้จักภาษาhtmlใบความรู้ที่ 2.3 รู้จักภาษาhtml
ใบความรู้ที่ 2.3 รู้จักภาษาhtml
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaver
 
CSS คืออะไร?
CSS คืออะไร?CSS คืออะไร?
CSS คืออะไร?
 
คู่มือ Dream cs3
คู่มือ Dream cs3คู่มือ Dream cs3
คู่มือ Dream cs3
 
Dream weaver cs3
Dream weaver cs3Dream weaver cs3
Dream weaver cs3
 
โปรแกรม dream 8
โปรแกรม dream 8โปรแกรม dream 8
โปรแกรม dream 8
 
php5new
php5newphp5new
php5new
 
Php
PhpPhp
Php
 
ICT with Web site
ICT with Web siteICT with Web site
ICT with Web site
 
Fast web design
Fast web designFast web design
Fast web design
 
นุ๊ก
นุ๊กนุ๊ก
นุ๊ก
 
โบ
โบโบ
โบ
 
Best
BestBest
Best
 
หมวย
หมวยหมวย
หมวย
 
ดรีม
ดรีมดรีม
ดรีม
 

Más de Jenchoke Tachagomain

Introduction to On-line Documemt Lect05 Web Process
Introduction to On-line Documemt  Lect05 Web ProcessIntroduction to On-line Documemt  Lect05 Web Process
Introduction to On-line Documemt Lect05 Web ProcessJenchoke Tachagomain
 
Introduction to On-line Documemt Lect03 E Commerce
Introduction to On-line Documemt  Lect03 E CommerceIntroduction to On-line Documemt  Lect03 E Commerce
Introduction to On-line Documemt Lect03 E CommerceJenchoke Tachagomain
 
Introduction to On-line Documemt Lab 3
Introduction to On-line Documemt Lab 3Introduction to On-line Documemt Lab 3
Introduction to On-line Documemt Lab 3Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04Jenchoke Tachagomain
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03Jenchoke Tachagomain
 
Mobile Game and Application with J2ME
Mobile Gameand Application withJ2MEMobile Gameand Application withJ2ME
Mobile Game and Application with J2MEJenchoke Tachagomain
 

Más de Jenchoke Tachagomain (20)

Digital Transformation
Digital TransformationDigital Transformation
Digital Transformation
 
Lect06 Web Design
Lect06 Web DesignLect06 Web Design
Lect06 Web Design
 
Introduction to On-line Documemt Lect05 Web Process
Introduction to On-line Documemt  Lect05 Web ProcessIntroduction to On-line Documemt  Lect05 Web Process
Introduction to On-line Documemt Lect05 Web Process
 
Introduction to On-line Documemt Lect03 E Commerce
Introduction to On-line Documemt  Lect03 E CommerceIntroduction to On-line Documemt  Lect03 E Commerce
Introduction to On-line Documemt Lect03 E Commerce
 
Introduction to On-line Documemt Lab 3
Introduction to On-line Documemt Lab 3Introduction to On-line Documemt Lab 3
Introduction to On-line Documemt Lab 3
 
Rss
RssRss
Rss
 
Digital Content Business
Digital Content BusinessDigital Content Business
Digital Content Business
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 09
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 07
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 06
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 05
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 04
 
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03
การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 03
 
Communication Concept
Communication ConceptCommunication Concept
Communication Concept
 
Communication Concept 3
Communication Concept 3Communication Concept 3
Communication Concept 3
 
Communication Concept
Communication ConceptCommunication Concept
Communication Concept
 
Communication Concept
Communication ConceptCommunication Concept
Communication Concept
 
J2ME Game Concept
J2ME  Game ConceptJ2ME  Game Concept
J2ME Game Concept
 
J2ME Game Concept
J2ME  Game ConceptJ2ME  Game Concept
J2ME Game Concept
 
Mobile Game and Application with J2ME
Mobile Gameand Application withJ2MEMobile Gameand Application withJ2ME
Mobile Game and Application with J2ME
 

การพัฒนาเอกสารออนไลน์ขั้นสูง Lect 08

  • 1. DHTML with JavaScript and CSS
  • 2. Dynamic HTML (DHTML) Dynamic HTML (DHTML) คืออะไร เป็นเทคนิคที่ ช่วยเพิ่มความสามารถให้ Browser สามารถทำาการโต้ตอบการผูใช้งานเองได้ โดยไม่ ้ ต้องจำาเป็นต้องไปขอข้อมูลจาก Web Server ทุกครั้งไป เป็นตัวเลือกที่จะให้ผใช้สร้าง ู้ เว็บเพจให้มีภาพเคลื่อนไหวมากขึ้น และตอบสนองผูใช้แบบ Interactive มากกว่า HTML ้ เวอร์ชนก่อน ั ส่วนใหญ่ของ Dynamic HTML ได้รับการระบุใน HTML 4.0 ตัวอย่างของเพจ Dynamic HTML สีตัวอักษรของหัวข้อเปลี่ยนเมื่อเมาส์ เคลื่อนผ่าน ยินยอมให้ผู้ใช้ในการ
  • 3. Dynamic HTML (DHTML) ซึ่งวิธการสร้างเป็นแบบ DHTML จะเป็นการใช้ ี เทคโนโลยีของ JavaScript และ Cascading Style Sheets เหล่านี้ชวยในการกำาหนดค่า ่ ต่างๆ ของความสูง ความกว้าง หรือตำาแหน่งของ ส่วนต่างๆ ซึ่งอยู่บนเว็บเพจ หรืออาจจะเป็นการรับข้อมูล User Interface ได้ด้วย JavaScript ก็เป็นได้
  • 4. JavaScript คืออะไร JavaScript ไม่ใช่ Java , JavaScript ไม่ใช่ HTML JavaScript เป็นภาษาสคริปต์เชิงวัตถุ หรือ เรียกว่า อ็อบเจ็กโอเรียลเต็ด (Object Oriented Programming) ที่มีเป้าหมายในการออกแบบ และพัฒนาโปรแกรมในระบบอินเทอร์เน็ต สำาหรับผู้เขียนด้วยภาษา HTMLสามารถทำางาน ข้ามแพลตฟอร์มได้ โดยทำางานร่วมกับ ภาษา HTML และภาษา Java ได้ทั้งทางฝั่งไคลเอนต์ (Client) และ ทางฝั่งเซิร์ฟเวอร์ (Server)
  • 5. CSS คืออะไร? CSS ย่อมาจากคำาว่า Cascading Style Sheets โดยทั่วไปก็จะเรียก CSS หรือไม่ก็ Style Sheets ฉะนั้นโปรดเข้าใจว่ามา มันคือตัวเดียวกัน CSS แนะนำาและสนับสนุนโดย Microsoft internet explorer 3.0 และ Netscape 4.0 เป็นต้นมาเป็นวิธีการ กำาหนดการแสดงผลของสิ่งต่างบนเว็บ เช่น ลักษณะอักษรขนาด สี พื้นหนัง ถ้าใครเคยศึกษา ภาษา Html มา
  • 6. CSS มีประโยชน์ยังไง?  CSS มีคณสมบัตมากกว่า tag ของ html ุ ิ เช่นการกำาหนดกรอบให้ขอความ รวมทั้งสีรูปแบบ ้ ของข้อความที่กล่าวมาแล้ว  CSS นันกำาหนดที่ตนของไฟล์ html หรือตำาแหน่ง ้ ้ อืน ๆ ก็ได้ และสามารถมีผล ่ กับเอกสารทั้งหมด หมายถึงกำาหนดครั้งเดียวจุดเดียวก็มีผลกับการแสดง ผลทั้งหมดทำาให้เวลาแก้ไขหรือปรับปรุงทำาได้สะดวก ไม่ต้องไล่ตามแก้ tag ต่างๆ ทั่วทั้งเอกสาร  CSS สามารถกำาหนดแยกไว้ตางหากจากไฟล์ ่ เอกสาร html และสามารถนำามาใช้ร่วมกับเอกสารหลายไฟล์ได้
  • 7. CSS Tutorial  www.w3schools.com/css/
  • 8. CSS Syntax selector { property : value}
  • 11. How to input CSS code
  • 12. CSS Examples Set the background color http://www.w3schools.com/css/css_examples.asp
  • 13. Creating a Transparent Image http://www.w3schools.com/css/css_image_transparency.asp
  • 14. Image Transparency Mouseover Effect On mouse out On mouse over
  • 16. CSS Drop Shadows shadow.gif shadowAlpha.png
  • 17. CSS Drop Shadows http://www.alistapart.com/articles/cssdropshadows/
  • 20. CSS image gallery http://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery
  • 21. Key word search  image gallery  Photo Album  Photo Gallery  css image gallery  Php image gallery  Javascript photo gallery  Free source photo gallery  Free code photo Album  www.cssplay.co.uk