|
 |
|
ทำรูปภาพให้ลิ้งค์โดยใช้ Php ทำงัยครับ เห็น Sanook ทำรูปลิ้งค์ถวายพระพรในหลวง โดยใช้ html แล้ว อยากทราบว่า จะทำรูปลิ้งค์โดยใช้ php ได้อย่างไรครับ |
|
 |
|
|
 |
 |
|
<?
<a href=ชื่อไฟล์ที่เราต้องการไป><img src=รูปที่เราต้องการ width=138 height=30border=0></a>
?>
สรุปคือ ก็นำไฟล์ของ html มาใช้นะครับ แต่ถ้าใจรันใน php ก็แค่เอา ฟันหนูออกนะครับ
ไม่รู้ผมตอบถูกที่คุณถามหรอเปล่าครับ
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 12:08:27 |
By :
martman26 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?
a href="file/<?echo"$image";?>" target="_blank"><?echo"$image";?></a>
?>
// file/<?echo"$image";?> คือpath ที่เราเก็บรูปไว้อ่ะคับ ตามด้วยecho อ่ะ
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 12:28:54 |
By :
busoh |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โค้ดใน Sanook เป็นแบบนี้อ่ะคับ
<!--- 60th celebration head -->
<center><img src="http://www.sanook.com/images/head.jpg" alt="60th Celebrations" width="780" height="110" border="0" usemap="#Map" /></center>
<map name="Map" id="Map"><area shape="rect" coords="118,74,217,100" href="http://activity.sanook.com/60thcelebrations/history.html" target="_blank" />
<area shape="rect" coords="268,72,382,101" href="http://women.sanook.com/whatson/news_22585.php" target="_blank" />
<area shape="rect" coords="433,71,526,101" href="http://blog.sanook.com/default.aspx?alias=WeLoveTheKing&init" target="_blank" />
<area shape="rect" coords="579,74,682,102" href="http://activity.sanook.com/60thcelebrations/" target="_blank" />
</map>
<!----------------------------------------->
จะแปลงเป็น php และใช้งานได้ ต้องทำไงมั่งอ่ะคับ ช่วยผมทีนะขอรับ
ขอบคุณล่วงหน้าคับผม
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 12:49:49 |
By :
ยงยุทธ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้ครับ.......
<?
echo "<center><img src=http://www.sanook.com/images/head.jpg alt=60th Celebrations width=780 height=110 border=0 usemap=#Map /></center>";
echo "<map name= Map id= Map ><area shape= rect coords= 118,74,217,100 href= http://activity.sanook.com/60thcelebrations/history.html target= _blank />";
echo "<area shape= rect coords= 268,72,382,101 href= http://women.sanook.com/whatson/news_22585.php target= _blank />";
echo "<area shape= rect coords= 433,71,526,101 href= http://blog.sanook.com/default.aspx?alias=WeLoveTheKing&init target= _blank />";
echo "<area shape= rect coords= 579,74,682,102 href= http://activity.sanook.com/60thcelebrations/ target= _blank />";
echo "</map>";
?>
ลองดูครับ...ได้ไม่ได้ยังงัยบอกผมด้วยนะครับ
******** ไม่มีใครตอบคำถามผมเลยอะผมช่วยแต่คนอื่นอะคุณยงยุทธตอบของผมบ้างนะคับแรกกันนะ ******** 
มีปัญหาอะไรเมล์มาคุยกันได้นะครับ [email protected] แต่บริษัมผมบล็อกห้าม M เลยเล่นแต่ Skype แทนชื่อ Skype ผม martman26
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 13:19:30 |
By :
martman26 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมาก เลยครับคุณ martman 26
แหะ แหะ แบบว่า ผมเพิ่งศึกษา php อ่ะคับ ยังไม่รู้อะไรเลย
อาศัยตั้งคำถาม และทำตาม เข้าใจง่ายดีคับ
ยังไงก้อแนะนำกระผมด้วยนะขอรับ
[email protected]
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 13:23:52 |
By :
ยงยุทธ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่จำเป็นต้อง เขียนเป็น PHP ก็ได้คับ จำได้ลดการทำงานของเซเวอร์ลงด้วย
|
 |
 |
 |
 |
Date :
15 ส.ค. 2549 15:56:06 |
By :
nap |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|