找回密码
 注册
广告投放 虚位以待【阿里云】2核2G云新老同享 99元/年,续费同价做网站就用糖果主机-sugarhosts.comJtti.com-新加坡服务器,美国服务器,香港服务器
查看: 1980|回复: 8

谁有PHP的倒计时程序

[复制链接]
发表于 2006 年 9 月 23 日 16:47:43 | 显示全部楼层 |阅读模式
悬赏100兑换券未解决
我想找一个PHP的倒计时程序,最好能放在BLOG上!有的请告诉我,谢谢!

Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2006 年 9 月 23 日 17:17:49 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
自己写一个啊
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 9 月 23 日 17:23:49 | 显示全部楼层
是条用别人的
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2006 年 9 月 23 日 17:26:06 | 显示全部楼层
<html>
<head>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var Temp2;
var timerID = null;
var timerRunning = false;
function arry() {
this.length = 12;
this[0] = 31;
this[1] = 28;
this[2] = 31;
this[3] = 30;
this[4] = 31;
this[5] = 30;
this[6] = 31;
this[7] = 31;
this[8] = 30;
this[9] = 31;
this[10] = 30;
this[11] = 31;
}
var date = new arry();

function stopclock() {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function startclock() {
stopclock();
showtime();
}

function showtime() {
now = new Date();
var CurMonth = now.getMonth();
var CurDate = now.getDate();
var CurYear = now.getFullYear();
now = null;
if (1 < CurDate) {
CurDate -= date[CurMonth]; CurMonth++;
}
if (11 < CurMonth) {
CurMonth -= 12; CurYear++;
}

var Yearleft = 2006 - CurYear;
var Monthleft = 9 - CurMonth;
var Dateleft = 30 - CurDate;

document.dateform.a.value = Yearleft;
document.dateform.b.value = Monthleft;
document.dateform.c.value = Dateleft;

timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
// End -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<BODY Onload="startclock()">
<form name=dateform>距离老婆回家还有<br>
<input type=text name=a size=2 value="">年
<input type=text name=b size=2 value="">月
<input type=text name=c size=2 value="">天
</br></form>

<!-- 代码长度: 1.95 KB -->
</body>
</html>

但是我不知道如何加到我的BLOG-Sablog-X 上!!!谁教教我?
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 9 月 23 日 17:33:21 | 显示全部楼层
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 9 月 23 日 17:51:43 | 显示全部楼层
防自制。。
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2006 年 9 月 23 日 19:07:43 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
原帖由 mcncc 于 2006-9-23 17:33 发表

有什么啊?
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 9 月 23 日 20:25:34 | 显示全部楼层
原帖由 坏脾气 于 2006-9-23 17:26 发表
<html>
<head>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var Temp2;
var timerID = null;
var timerRunning = false;
function arry() {
this.length = 12;
this ...



改模版啊,晕掉,改模版了你想加到那儿就加到那儿啊
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2006 年 9 月 23 日 20:29:31 | 显示全部楼层
JS的不行么???
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2025 年 2 月 4 日 23:56 , Processed in 0.031060 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表