Mew's profile┢┦aΡpy ღ M e wPhotosBlogListsMore Tools Help

Blog


    August 03

    การใช้ <IMG> และการเพิ่ม effect ให้กับภาพ

    คราวก่อนแนะนำวิธีการใช้ แท็ก <Table> ในภาษา HTML ไปแล้ว
    วันนี้ขอนำเสนอ การใช้แท็ก <IMG> ก็แล้วกันนะ
    คิดว่าเพื่อนๆส่วนใหญ่คงเคยใส่ภาพ โดยใช้แท็กนี้กันมาบ้างแล้ว
     อย่างที่เคยแนะนำไปใน วิธีใส่ภาพใน Blog แบบ Html เมื่อก่อนหน้านี้แล้ว 
    แต่วันนี้ก็ต้องมีอะไรใหม่ๆเพิ่มเติมน่ะสิ ถึงได้เอามาเขียนใหม่ ^^"

    สำหรับรูปแบบ ปกติ ที่เราใช้กัน คือ <IMG src="Url ของภาพ">  หรือถ้าเพิ่มการกำหนด ขนาดไปด้วยก็เป็น
     <IMG height=ความสูง src="Url ของภาพ" width=ความกว้าง>
    จะเห็นได้ว่า แท็ก <IMG> นี้ไม่ต้องมีแท็กปิดนะคะ เรียกว่า Single Tag
    ไม่เหมือนกับแท็ก Table ที่ต้องมี Tagเปิด และ Tagปิด นะคะ

    ตัวอย่างเช่น 

    <IMG height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

     

    อันนี้เป็นแบบปกติ ที่เราใช้กันอยู่นะคะ

    วันนี้จะแนะนำการเพิ่ม effect ต่างๆให้กับภาพ
    เช่นทำภาพ ขาว-ดำ หรือปรับความเข้ม โดยใส่คำสั่งแบบต่างๆ เพิ่มเข้าไป โดยจะทำตัวอย่างให้ดูเป็นสีๆ นะคะ 
    สีแดง คือ ชุดคำสั่งที่เพิ่มเข้าไป  และ สีชมพู คือ url ของภาพ ค่ะ

    <IMG style="FILTER: gray()" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247> 

     

    ทำภาพแบบ ขาว - ดำ

    โดยการเพิ่มคำสั่ง
    style="FILTER: gray()"
    เข้าไปตามตัวอย่าง

     <IMG style="FILTER: xray()" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

     

    ทำภาพแบบ X-ray

     <IMG style="FILTER: invert()" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

     

     Invert Color

     <IMG style="FILTER: fliph()" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

     

    กลับด้าน ซ้าย - ขวา

     <IMG style="FILTER: flipv()" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

     

    กลับด้าน บน - ล่าง

     

     <IMG style="FILTER: Alpha(Opacity=100,FinishOpacity=0,Style=1)" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

    ทำให้ความเข้มของสี ไล่จากซ้าย ไปขวา

    Opacity และ  FinishOpacity
    คือค่าความเข้มของภาพ ปรับเพิ่ม-ลดได้

     <IMG style="FILTER: Alpha(Opacity=0,FinishOpacity=100,Style=1)" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

    ทำให้ความเข้มสี ไล่จากขวา ไปซ้าย

    อันนี้จะเหมือนอันบน แต่ว่า
    เปลี่ยนตรงค่าความเข้มของภาพ

     <IMG style="FILTER: Alpha(Opacity=100,FinishOpacity=0,Style=3)" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

    ไล่สีจากกลางภาพ ไปขอบภาพ

    ตรง Opacity กับ FinishOpacity
    ปรับได้เหมือนกันค่ะ

     <IMG style="FILTER: Alpha(Opacity=100,FinishOpacity=0,Style=2)" height=150 src="http://album.romerun.com/happymew/folder/17719/album/29830/image/604886/pic/original.jpg" width=247>

     

     

    ไล่ความเข้มของสี เป็นวงกลม

    ตรง Opacity กับ FinishOpacity
    ปรับได้เหมือนกันค่ะ

    ลองเอาไปใช้ตกแต่งภาพกันให้สวยๆนะจ๊ะ
    แล้วถ้าสงสัยตรงไหนก็คอมเม้นไว้นะคะ
    ขอรายละเอียดด้วยนิดนึงก็ดีค่ะ แบบใส่โค้ดไปอะไรบ้าง
    แล้วมันไม่ได้ยังไง เราจะได้ตอบได้ตรงจุดหน่อยนะคะ ^^"

     

     


    ...┢┦aΡpy ❤ M e w...
    You can do it, if you want it.

    Comments (98)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    No namewrote:
    Welcome to enter (wow gold) and (wow power leveling) trading site, (Rolex) are cheap, (World of Warcraft gold) credibility Very good! Quickly into the next single! Key words directly to the website click on transactions! -369585845242831
    Aug. 21
    มือใหม่เช่นกันค่ะ
    Feb. 18
    มือใหม่เช่นกันค่ะ
    Feb. 18
    มือใหม่เช่นกันค่ะ
    Feb. 18
    Pon❤wrote:
    ขอบคุงมากมายนะค่ะหนูเปนมือใปม่อะยางเล่นอะไรไม่เปนเลยอะ
    Jan. 13
    Dec. 18
    Chanitawrote:
    เข้าใจครับผม เด๋วจะไปลองทำดูมั่ง
    ขอบคุนมากๆเลยคร้าบ
    Oct. 5
    อยากใส่รูปแล้วมีเอฟแฟ็กอ่ะ ทำไงดี
    แวะมาเยี่ยมสเปสเรามั้งนะ 
    Sept. 23
    Beatrice Beewrote:
    ยังทำได้ม่ายหมดเลยค่ะ จะพยายามเรียนรู้ให้มากที่สุดนะค่ะ เดี๋ยวเสียน้ำใจ ขอบคุณนะคะ 
    Sept. 7
    Beatrice Beewrote:
    ขอบคุณมากเลยค่ะ ให้ความรู้ได้เยอะมากเลยค่ะ อิอิ  
    Sept. 7
    ทริคเยอะมากมาย  แต่ก็ได้จากที่นี่แหละครับ ขอบคุณมักๆนาคับ
     
      เรียนรู้ต่อไป
    Aug. 1
    Thx หลาย !! ว่างๆ ไปเยี่ยมสเปซเรามั่งนะ ....
    May 6
    NaNwrote:
    หุหุ เก่งจิงๆเลยอ่ะ
    Apr. 13
    งงอ่ะค่ะ ... เหมือนจะง่าย แต่สับสน
    ทำมัยมันเยอะแยะจังง่ะ... ถ้าว่างก็รบกวนเข้าไปแนะให้มั้งน่ะค่ะ
    หรือส่งทริปพื้นฐานง่ายๆ ในการลงรูปในสเปชให้หน่อยค่ะ
    ส่งเข้าเมลล์ก็ได้ค่ะ ppt_com@hotmail.com ... ขอบคุงอย่างงามค่ะ ...
    Apr. 9
    งงอ่ะค่ะ ... เหมือนจะง่าย แต่สับสน
    ทำมัยมันเยอะแยะจังง่ะ... ถ้าว่างก็รบกวนเข้าไปแนะให้มั้งน่ะค่ะ
    หรือส่งทริปพื้นฐานง่ายๆ ในการลงรูปในสเปชให้หน่อยค่ะ
    ส่งเข้าเมลล์ก็ได้ค่ะ ppt_com@hotmail.com ... ขอบคุงอย่างงามค่ะ ...
    Apr. 9
    งงอ่ะค่ะ ... เหมือนจะง่าย แต่สับสน
    ทำมัยมันเยอะแยะจังง่ะ... ถ้าว่างก็รบกวนเข้าไปแนะให้มั้งน่ะค่ะ
    หรือส่งทริปพื้นฐานง่ายๆ ในการลงรูปในสเปชให้หน่อยค่ะ
    ส่งเข้าเมลล์ก็ได้ค่ะ ppt_com@hotmail.com ... ขอบคุงอย่างงามค่ะ ...
    Apr. 9
    Boom Boomwrote:
    ถ้าว่างแอดมาหน่อยนะค่ะ พอดีเพิ่งเริ่มเล่นค่ะ ยังไม่เป็นอะไรเลย อยากได้คำแนะนำ ตอนนี้ก็งงเหมือนกันค่ะ ว่าคอมที่เล่นอยู่ทำไมดึงรูปมาไม่ได้ และคอมเพื่อนสามารถเอารูปมาสร้างให้ได้ ถ้าว่างรบกวนหน่อยนะค่ะ bummboom@hotmail.com
    Apr. 4
    เก่งงะอยากทำเป็นบ้าง
     
    Apr. 4
    anggy bujangwrote:
    เก่งจางเลย   แต่เรา ยัง งง อยู่ เลย อะ
    Mar. 27
    Wim Ch33zYwrote:
    ยังงงๆอยู่ เก่งจัง อยากแต่งได้สวยๆอ่า เหอๆ
    Mar. 25

    Trackbacks

    Weblogs that reference this entry
    • None