dw时间代码怎么写

1.想问一下在dw里写一个获取当前日期和时间的代码怎么么写JS代码如下:
<script language="javascript">
var mydate = new Date();
var myyear = mydate.getFullYear();
var mymonth = mydate.getMonth() + 1;
var myday = mydate.getDate();
var myhour = mydate.getHours();
var myminute = mydate.getMinutes();
document.write(myyear+"年"+mymonth+"月"+myday+"日"+" "+myhour+":"+myminute);
</script>;楼主把它插入到<body></body>;之间即可 。
2.想问一下在dw里写一个获取当前日期和时间的代码怎么么写JS代码如下: 楼主把它插入到<body>之间即可 。
3.dw中如何制作时间动态代码用“Dreamweaver”工具编写HTML代码,用javascript实现页面动态显示时间的代码如下所示:(//后面的是代码备注)<body> time"> 。
4.谁可以帮我写一个Dreamweaver显示当前时间的代码<body>
<span id=localtime></span>
<script type="text/javascript">
function showLocale(objD)
{
var str;
var hh = objD.getHours();
if(hh<10) hh = '0' + hh;
var mm = objD.getMinutes();
if(mm<10) mm = '0' + mm;
str = hh + ":" + mm;
return(str);
}
function tick()
{
var today;
today = new Date();
document.getElementById("localtime").innerHTML = showLocale(today);
window.setTimeout("tick()", 1000);
}
tick();
</script>
</body>
5.Dreamweaver中怎样添加显示时间日期你好,其实这个问题我回答过的,你复制我的代码到dw运行下就有了:<html><head>
<meta ; charset=gb2312">
<title>;网页特效</title></head><body onl oad=startclock()><form name="clock">
<script language="JavaScript">
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = http://www.xuexi88.com/zhishi/now.getYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日" +((hours >= 12) ? " 下午 " : " 上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = http://www.xuexi88.com/zhishi/timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
</script>
<input name="thetime" style="font-size: 9pt;color:#000000;border:1px solid #FFFFFF; ; " size="28"></form>
</body>
</html>
6.发个DW的日期代码<script language="JavaScript" type="text/javascript" >function RunGLNL(){var today=new Date();var d=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");var DDDD=(today.getYear()<100 ? today.getYear()+1900:today.getYear())+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日";DDDD = DDDD + " " + d[today.getDay()];DDDD = DDDD+ " " + (CnDateofDateStr(today));//DDDD = DDDD+ " " + SolarTerm(today);document.write(DDDD);}function DaysNumberofDate(DateGL){return parseInt((Date.parse(DateGL)-Date.parse(DateGL.getYear()+"/1/1"))/86400000)+1;}function CnDateofDate(DateGL){var CnData=http://www.xuexi88.com/zhishi/new Array(0x16,0x2a,0xda,0x00,0x83,0x49,0xb6,0x05,0x0e,0x64,0xbb,0x00,0x19,0xb2,0x5b,0x00,0x87,0x6a,0x57,0x04,0x12,0x75,0x2b,0x00,0x1d,0xb6,0x95,0x00,0x8a,0xad,0x55,0x02,0x15,0x55,0xaa,0x00,0x82,0x55,0x6c,0x07,0x0d,0xc9,0x76,0x00,0x17,0x64,0xb7,0x00,0x86,0xe4,0xae,0x05,0x11,0xea,0x56,0x00,0x1b,0x6d,0x2a,0x00,0x88,0x5a,0xaa,0x04,0x14,0xad,0x55,0x00,0x81,0xaa,0xd5,0x09,0x0b,0x52,0xea,0x00,0x16,0xa9,0x6d,0x00,0x84,0xa9,0x5d,0x06,0x0f,0xd4,0xae,0x00,0x1a,0xea,0x4d,0x00,0x87,0xba,0x55,0x04);var CnMonth=new Array();var CnMonthDays=new Array();var CnBeginDay;var LeapMonth;var Bytes=new Array();var I;var CnMonthData;var DaysCount;var CnDaysCount;var ResultMonth;var ResultDay;var yyyy=DateGL.getYear();var mm=DateGL.getMonth()+1;var dd=DateGL.getDate();if(yyyy