|
 |
|
รบกวนสอบถามอยากทราบการเปลี่ยนจาก onClick มาเป็นรับค่านับเวลาถอยหลัง |
|
 |
|
|
 |
 |
|
Code (PHP)
<body bgcolor="#FFFFFF"" onload="GetServerFile('Status.cgi','txtAutoUpdateStatus');">
<table width="646" border="0" align="center" cellpadding="1" cellspacing="1">
<form>
<tr align=left valign=top>
<td width="95" height="27" bgcolor="#FF9933"><b> ON/OFF </b> </td>
<td width="539" bgcolor="#CCCCCC"><p>
<input type="button" value="Device 1" onClick="GetServerFile('0?1=LED2','')">
<input type="button" value="Device 2" onClick="GetServerFile('0?2=LED3','')">
<input type="button" value="Device 3" onClick="GetServerFile('0?3=LED4','')">
<input type="button" value="Device 4" onClick="GetServerFile('0?4=LED5','')">
<input type="button" value="Device 5" onClick="GetServerFile('0?5=LED6','')">
<input type="button" value="Device 6" onClick="GetServerFile('0?6=LED7','')">
<input type="button" value="Device 7" onClick="GetServerFile('0?7=LED8','')">
</p></td></tr></form></table></body>
คือผม ทำโปรเจคเกี่ยวกับการควบคุมเครื่องใช้ไฟฟ้า
ตอนนี้การสั่งของผม เป็นแบบ ปุ่มเปิด ปิด ครับ
****ผมอยากจะทราบว่า ถ้าผมจะตั้งเวลา เปิดปิด ประมาณว่า 5 นาที เเล้ว จึงสั่งเปิด ปิด ไม่ได้เป็นปุ่ม กด แบบโค้ด ของผม ทำยังไงครับ
คือจะใช้เวลาในการนับตามเวลาคอมพิวเตอร์
*** ครบ 5 นาที มันจะเท่ากับ user คลิกที่ปุ่มเปิด ปิดครับ
รบกวนขอคำแนะนำหน่อยครับ
Tag : PHP, HTML/CSS, JavaScript

|
|
 |
 |
 |
 |
Date :
2010-09-29 06:47:08 |
By :
PISTOLA |
View :
959 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
|
|

|
Load balance : Server 05
|