Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[分享] 适合所有论坛的08奥运代码

[复制链接]
lsrshiw 发表于 2008-1-2 02:10:40 | 显示全部楼层 |阅读模式
演示地址: www.wodezhan.cn  

代码说明:


1:<div style="left: 370px; position: absolute; top: 100px">
    说明:  370是左右长度修改,100是上下

2:document.write("<font style='font-size:15px;line-height:18px;color:#003000'>???距2008"+times+"开幕还有: </font><font style='color:#99FF00;line-height:30px;font-family:Verdana;font-size:20px;'><b>"+time +"</b></font><font style='font-size:15px;line-height:15px;color:#003000'> 天</font>");
</Script>
</div>

说明:#都是颜色代码  size:15px    15是字体大小

大家根据自己论坛位置的需要进行修改!

以下是代码!

</style>
<div style="left: 370px; position: absolute; top: 100px">
<Script Language="JavaScript">
  var timedate= new Date("August 9,2008");
var times="北京奥运会";
  var now = new Date();
  var date = timedate.getTime() - now.getTime();
  var time = Math.floor(date / (1000 * 60 * 60 * 24));
  if (time >= 0) ;
document.write("<font style='font-size:15px;line-height:18px;color:#003000'>???距2008"+times+"开幕还有: </font><font style='color:#99FF00;line-height:30px;font-family:Verdana;font-size:20px;'><b>"+time +"</b></font><font style='font-size:15px;line-height:15px;color:#003000'> 天</font>");
</Script>
</div>
liustyle 发表于 2008-1-2 03:32:45 | 显示全部楼层
谢谢分享...
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-27 18:11 , Processed in 0.020037 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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