返回上一页

彩虹代刷网

导航栏

当前位置:首页 > 详细资讯 > 装修教程

分享代刷网首页公告“时间显示+动态小图文字”美化装修代码教程时间:2019-07-10 00:10:28

效果展示图:



代码如下:
<center>
<img border="0" width="40" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536247251166&di=789812f2f32c025aa8cb1834bcce4a16&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20161107%2Ff01c00a81ca9463d90c73b3aa42d5d94.gif">
<title>JavaScript实时显示系统时间</title><meta name="baidu-site-verification" content="Bfz0ljc6WP">
<span id="localtime"><font color="#303030">2018-06-27丨01:45:32丨星期三</font></span><script type="text/javascript">function showLocale(objD)
{var str,colorhead,colorfoot;var yy = objD.getYear();
if(yy<1900) yy = yy+1900;
        var MM = objD.getMonth()+1;
 if(MM<10) MM = '0' + MM;
 var dd = objD.getDate();
 if(dd<10) dd = '0' + dd;
 var hh = objD.getHours();
 if(hh<10) hh = '0' + hh;
 var mm = objD.getMinutes();
 if(mm<10) mm = '0' + mm;
 var ss = objD.getSeconds();
 if(ss<10) ss = '0' + ss;
 var ww = objD.getDay();
 if ( ww==0 ) colorhead="<font color=\"#303030\">";
 if ( ww > 0 && ww < 6 ) colorhead="<font color=\"#303030\">";
 if ( ww==6 ) colorhead="<font color=\"#303030\">";
 if (ww==0) ww="星期日";
 if (ww==1) ww="星期一";
 if (ww==2) ww="星期二";
 if (ww==3) ww="星期三";
 if (ww==4) ww="星期四";
 if (ww==5) ww="星期五";
 if (ww==6) ww="星期六";
 colorfoot="</font>"
 str = colorhead + yy + "-" + MM + "-" + dd + "丨" + hh + ":" + mm + ":" + ss + "丨" + ww + colorfoot;
 return(str);}function tick()
{var today;today = new Date();document.getElementById("localtime").innerHTML = showLocale(today);window.setTimeout("tick()", 1000);}
tick();</script><img border="0" width="40" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1536247163728&di=64510a6143420f8c3863668ffd14508f&imgtype=0&src=http%3A%2F%2Fs9.rr.itc.cn%2Fr%2FwapChange%2F201610_28_12%2Fa14pa47828532152855.gif"><br>
</center>
<center><img src="https://www.mgpsc.com/d/file/p/2019/07-09/4e836a16f00f26997b8492e1293c4a77.gif " alt="新用户代刷指南" width="280" height="30"></a><br>
<center>
 <div class="list-group-item reed">
如果你在乎质量,请尊重它的价格!</div>
<div class="list-group-item reed">  受各种因素影响,到账时间不一定!
</div>
<div class="list-group-item reed"> 购买后可以在查单中查询订单进度!</div>
<div class="list-group-item reed">
购买一定要看说明,乱填不会到账!  </a>
</div>

安装教程:复制代码粘粘到代刷网首页公告既可。
 
和本文相关
分享代刷网首页动态小表情公告装修美化代码