最后一個按鈕實現(xiàn)
function cancel() {?
? ? var change=confirm("是否取消設(shè)置?"); ? ?
? ? if(change)?
? ? { ? ??
? ? ? ? txt.style.color="black"; ?
? ? ?? txt.style.width="600px";
? ? ?? txt.style.height="400px";?
? ? } }//定義"取消設(shè)置"的函數(shù)?
?相應(yīng)按鈕內(nèi)添加 onclick="cancel()"
2019-05-18
function resetting()
? ?{
? ??var v5;
? ??v5=confirm("否取消設(shè)置?");
? ??if(v5)
? ??{
? ???v5.style.color="blue";
? ???v5.style.backgroundColor="red";
? ???v5.style.width="400px";
? ???? ?v5.style.height="600px";
? ???? ?v5.style.display="none";
? ???? ?v5.style.display="block";
? ???? ?
? ??}
? ??
? ?}