小辉网络社区致力于优质软件,活动线报,游戏辅助,绿色工具等资源共享,好货不私藏!

带时间的网站led广告牌代码

小辉工作室 JS网页代码

给网站增加一个带时间的led广告牌代码,
WordPress教程:后台-外观-小工具-自定义html-添加到合适位置
其他网站系统可自行添加合适位置
<style type="text/css">
  .studytextgzbox {
  background:   #F9F9F9; 
  border: 1px solid #999999;
  margin: 1px;
  text-align:center;  
  float: left;
  line-height: 28px;
  height: 28px;
  overflow: hidden;
  width: 236px;
  }
</style>
<script type="text/javascript">
    study_textgz_jQuery(function() {
    var container = study_textgz_jQuery('#masonry');
    container.imagesLoaded(function() {
        container.masonry({
                itemSelector: '.studytextgzbox',
                gutter: 0,
                isAnimated: true,
            });
     });
});
</script>
<style type="text/css">
.zzbuluoled:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
@media (max-width: 768px){.zzbuluoled{display: none;}}
</style>  
<div class="wp zzbuluoled"  style="margin-top:0px;">   
<div style="background:url('http://img.8gws.com/wp-content/uploads/2024/01/led-1.png'); text-align: center; height:80px; border: 0px solid #E8EFF5;" >                   
<div id="systimeshow" style="float: left;margin-top: 10px; font-weight:bolder; color:#FF0000;font-size:16px;font-family: '微软正黑体','黑体_GB2312','微软正黑体'; width: 130px;">
</div>
<script language="javascript">
 function getCurDate()
{
 var d = new Date();
 var week;
 switch (d.getDay()){
 case 1: week="星期一"; break;
 case 2: week="星期二"; break;
 case 3: week="星期三"; break;
 case 4: week="星期四"; break;
 case 5: week="星期五"; break;
 case 6: week="星期六"; break;
 default: week="星期天";
 }
 var years = d.getFullYear();
 var month = add_zero(d.getMonth()+1);
 var days = add_zero(d.getDate());
 var hours = add_zero(d.getHours());
 var minutes = add_zero(d.getMinutes());
 var seconds=add_zero(d.getSeconds());
 var ndate = years+"年"+month+"月"+days+"日"+"<br>"+hours+":"+minutes+":"+seconds+"&nbsp"+week+"&nbsp";
 var divT=document.getElementById("systimeshow"); 
 divT.innerHTML= ndate;
}
function add_zero(temp)
{
 if(temp<10) return "0"+temp;
 else return temp;
}
setInterval("getCurDate()",100);
</script>            
<div id="zzbuluoled_sx" style="width:auto;overflow:hidden;height:80px;line-height:80px;text-align:left;">
<div id="zzbuluoled_sx1" > 
<p style="padding:0px 10px 0px 16px;vertical-align:middle;height:80px;overflow:hidden;">
  <marquee direction="lelf" scrollamount="5"><strong>
<a href="http://www.8gws.com/" target="_black"  title="小辉网欢迎您">
<span style="font-weight:900; color: #FF0000; font-size: 60px;line-height:80px;">小辉网欢迎您
</span>
</a>
<a href="http://bbs.8gws.com/" target="_black" >
<span style="font-family: 'Tahoma';font-weight:900; color: #4C33E5; font-size: 60px;line-height:80px;">新年优惠限时福利·会员低至9.9
</span>
</a>
<a href="http://shop.8gws.com/" target="_black" >
<span style="font-family: 'Tahoma';font-weight:900; color: #FFFFFF; font-size: 60px;line-height:80px;">每日签到&抽奖&完成任务等可免费获得积分
</span>
</a>
</strong></marquee>
</p>
</div>
</div>
</div>
</div>

温馨提示:如有转载或引用以上内容请将本文链接作为出处标注!百度已收录

免责声明:本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序,请支持正版,购买注册,得到更好的正版服务。侵删请致信E-mail:431228450@qq.com

标签 暂无标签
资源分享
评论列表