ช่วยเรื่อง dreamweaver หน่อยครับ

เริ่มโพสต์โดย man10u, 08 พ.ค. 2007, 00:26 น.

0 สมาชิก และ 1 บุคคลทั่วไป กำลังเปิดอ่านโพสต์นี้

man10u

พอดีว่าปัญหานี้ยังไม่เคยเจอเลยครับ เลยไม่รู้จะแก้ไงดี ปัญหามีอยู่ พวกขอบ ๆ ของรูปครับ ตอนทำใน dream นั้นไม่มีขอบครับ แต่พอให้รับบน internet ดันมีขอบซึ่งเป็นพื้นที่สีเทา ๆ ครับ ทำไงดี ผมเซฟรูปเป็น png ครับ เซตเป็น Transperent นะครับ

iannnnn

เป็นบั๊กของ IE6 ลงมาครับ ไม่ใช่ของหมาย่าง
เวลาแสดงผลภาพ png โปร่งใสแล้วมันจะเป็นสีเทาอยู่ร่ำไป

http://del.icio.us/iannnnn/iefuck
ทางแก้ อ่านนี่ครับ

man10u

ขอบคุณมากครับ ท่าน แอนนนนนนน คอยช่วยผมตลอดเลย อิอิ ขอบคุณครับ

iannnnn

โอนเงินผ่านบัญชีออมทรัพย์นะครับ :04:

man10u

อีกนิดครับ ก็อปนี้ไปไว้ ใน head รึป่าวครับ ยังไม่หายเลย พอดี โง่ ๆ เรื่องโค้ด นิดหน่อยรบกวนหน่อย
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

จักรี

เดี๋ยวนี้ รุปเป็น png ได้แล้วเหรอ  ผมตกข่าว  :39:
ล้ำลึกคนึงหาในดวงจิต ใจเคยคิดตัดสวาทมิอาจสิ้น
ดั่งก้านบัวหักกลางชลาสินธุ์ ผิว่าสิ้นไร้เยื่อยังเหลือใย

man10u

PNG in Windows IE: How To Use
Home | The Problem | The Solution | How To Use | More Info
The JS code can be seen if you do a "View Source" on the Solution page. There are two ways to use it - simple copy & paste or the JS include file method. Note that you must have height and width attributes specified for each image. Other attributes (class, alt, title & style) are optional so far as this routine is concerned, but are respected if specified.

There is also an imagemap version if you want to use imagemaps and/or form input images and a rollover version which enables the use of transparent PNGs in rollovers.

Method 1: Copy & Paste
For single page or occasional usage, copy the JS code in its entirety (from <!--[if lt IE 7]> to <![endif]-->) and paste it into your page somewhere in the the <head> section. That's it.

Method 2: (recommended) JS Include File
If you wish to use the code on multiples of pages, you may prefer to use a JS include file. First, download the JS file here: pngfix.js. Place the file in your webpage directory, then add the following construct on each of your pages somewhere in the <head> section:

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
Note the use of the defer keyword. This trick causes the images to be replaced before they are rendered. Earlier versions of this script did not use this method, occasionally resulting in an unpleasant screen flicker as the PNGs were being filtered. The code in the include file is slightly different from the copy and paste code referred to above, so I recommend downloading my file rather than making your own.

Here is a demo page using the Include file method. This method is arguably better for use with multiples of pages, as it only requires three lines of code per page. The JS file is only 2KB in size and will be cached after the first download. It will therefore incur no further download overhead on subsequent pages. The download time should be around 0.3 seconds on an average 48kbps dial-up modem connection.


นี่คือวิธี แต่ก็ยังทำไม่ได้เลยครับ ช่วยแปลหน่อย เผื่อ ผมทำผิดขั้นตอน
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
แล้วในส่วนตรงนี้ต้องตัดตรงไหนรึป่าว เพราะมันเป็นสีเทา ๆ เหมือนไม่แสดง

iannnnn

1. โหลดไฟล์ pngfix.js
2. เอาไปไว้ที่เดียวกับไฟล์หน้าเว็บ
3. ใส่โค้ดชุดที่ว่าลงใน <head> .. </head>


http://homepage.ntlworld.com/bobosola/pngtestfixed_JS_inc_file.htm
ดู Source จากไฟล์นี้ก็ได้ครับ

man10u

แก้ปัญหานี้ได้ ยังมีปัญหาต่อมา ครับ ปุ่ม flash ใน dreamweaver  ดันมาไม่ใส ซะงั้น ทำไงดีอ่ะครับ เพราะปกติ ก็ใช้นี่อยู่ครับ

iannnnn

ขอดูตัวอย่างหน้าเว็บหน่อยสิครับ

นักศิลปะ

จะเพิ่มขนาดฟอนต์ในหน้าโค๊ตยังไงครับ
ใช้แม็คของเมีย cs5 ตัวโคตรเล็กเลย
โรงเรียนสอนศิลปะทอศิลป์

iannnnn

Edit > Preferences > แถบซ้ายหาคำว่า Fonts ครับ มันจะมีฟอนต์โค้ดอยู่

นักศิลปะ

ทำไมของผมไม่มีละครับนี่ ในเมนู
Edit
โรงเรียนสอนศิลปะทอศิลป์

iannnnn

แมคหรือวินโดวส์ครับ ถ้าแมคต้องกดตรง Dreamweaver > Preperences

นักศิลปะ

อ้างคำพูดจาก: iannnnn เมื่อ 05 ม.ค. 2012, 23:35 น.
แมคหรือวินโดวส์ครับ ถ้าแมคต้องกดตรง Dreamweaver > Preperences

ขอบคุณคร๊าบบบบบบบ :25:
โรงเรียนสอนศิลปะทอศิลป์

SMF 2.1.7 © 2026, Simple Machines