使用這個腳本我不能在PHP中使用此代碼..我用Dreamweaver的爲什麼我不能在Dreamweaver
{
<SCRIPT language = "JavaScript">
var counter = 0;
// call Update function in 2 seconds after first load
ID = window . setTimeout("Update();", 2000);
function Update() {
counter++;
window.status = "The counter is now at " + counter;
document.form1.input1.value = "The counter is now at " + counter;
// set another timeout for the next count
ID = window . setTimeout("Update();", 2000);
}
</SCRIPT>
}
您究竟如何在PHP中使用它?請詳細說明你的問題。這不是Twitter,你有超過140個字符來描述問題。 –
如何「我無法」?問題是什麼 ?有錯誤嗎? – Cr3aHal0
當你試圖輸出這個文件時,你是否真的在一個PHP塊中? –