dreamweaver 特效代码怎样插入

来源:百度知道 编辑:UC知道 时间:2024/06/18 17:44:30
我找一个时间显示的代码,可是怎么插入刷新后都无法实现,到底怎么插入才行啊?代码如下:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效-年月日时分秒的即时显示-www.qpsh.com</title>

</head>

<body onload=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 = now.getYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日" +((hours >

插在
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效-年月日时分秒的即时显示-www.qpsh.com</title>
</head>

这个里面
也就是<head>与</head>之间

随便找个地方插进去就可以了