<html>
?<head>
??<title>瀏覽器對象</title>??
?
?</head>
?<body>
??<h2>操作成功</h2>
??<input?type="text"?id="xianshi"?style="border:0"/>?<a?href="#">返回</a>
??<script?type="text/javascript">??
??var?num=5;
??function?sec(){
??????var?jishi=num+"秒后回到主頁";
??????document.getElementById("xianshi").value=jishi;
??????num=num-1;
??????var?i=setTimeout("sec()",1000);
??????if(num==-1){clearTimeout(i);window.open("https://www.baidu.com/")};
??????}
??????sec();
j.style.color="red";
?</script>?
</body>
</html>
求指導,怎么改變如下代碼input中顯示內容(動態)的樣式?
Howseeker
2016-05-01 17:55:39