|
 |
|
แทรกคำสั่ง open browser window ใน php ที่มัน pop up เว็บที่ระบุลงไป |
|
 |
|
|
 |
 |
|
คำสั่ง แบบ Event Handler เหรอครับ Javascript ใช่ป่ะ
ก็ไม่น่าจะยากนะครับ ผมว่าเปลี่ยนมาใช้ window.open("ชื่อเว็บที่ต้องการไป"); ต้องใช้กัน Event นะครับเช่น
1. ต้องการให้คลิกแล้วไป ก็ใส่
onclick="window.open('https://www.thaicreate.com');window.open('http://www.teenee.com');" มันก็จะเปิด 2 เว็บ
สามารถใช้กับ Event อื่น ๆ เช่น
OnMouseOver , OnMouseOut , OnFocus , OnBlur
โอ้ มากมายหลายอย่างครับ
|
 |
 |
 |
 |
Date :
2009-08-12 02:33:58 |
By :
นรินทร์ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สำหรับคนไม่รู้มันยากนะคับ
ผมเอาไปแทรกบรรทัดไหนก็ได้ใช่ป่าวคับ 
|
 |
 |
 |
 |
Date :
2009-08-12 05:17:08 |
By :
เด็กอมมือ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองแล้วไม่สำเร็จ ไม่เป็นไรคับ คงต้องศึกษาอีกนาน
แต่ถ้ามีใครว่างๆ อยากอธิบายละเอียดหน่อยก็เชิญนะคับ 
|
 |
 |
 |
 |
Date :
2009-08-12 10:46:18 |
By :
เด็กอมมือ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<a href="#" onClick="javascript:window.open('popup.php?id=<?=$news_id?>','','top=50,left=300,width=600,height=350,menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no')">Detail </a>
|
 |
 |
 |
 |
Date :
2009-08-13 11:15:17 |
By :
ICrazyBoy |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|