各位大侠帮帮忙解决一下小弟的这个小问题吧。帮我修改一下这个flash脚本。

2025-01-05 15:01:28
推荐回答(1个)
回答1:

onClipEvent (load)
{ days = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); months = new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"); timedate = new Date();}onClipEvent (enterFrame){ hour = timedate.getHours(); if (hour == -1) { hour = 23; } // end if minutes = timedate.getMinutes(); seconds = timedate.getSeconds(); todaydate = timedate.getDate(); day = timedate.getDay(); dayname = days[day]; month = timedate.getMonth(); monthname = months[month]; year = timedate.getFullYear(); if (length(minutes) == 1) { minutes = "0" + minutes; } // end if if (length(seconds) == 1) { seconds = "0" + seconds; } // end if currenttime = hour + ":" + minutes + ":" + seconds; datetime = year + "年" + monthname + todaydate + "日 " + dayname + " " + currenttime; delete timedate; timedate = new Date();}需要源文件的话,可以做一个给你。