2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > jquery实现可关闭的倒计时广告特效代码【jquery】

jquery实现可关闭的倒计时广告特效代码【jquery】

时间:2021-11-03 06:15:26

相关推荐

jquery实现可关闭的倒计时广告特效代码【jquery】

web前端|js教程

jquery,可关闭,倒计时,广告

web前端-js教程

本文实例讲述了jquery实现可关闭的倒计时广告特效代码。分享给大家供大家参考。具体如下:

bootstrap模板源码,vscode标签替换,ubuntu 自动打印新文件,tomcat地址过滤,sqlite 表结构升级,jquery通讯录插件,支持在线编程前端框架,爬虫数据清洗怎么实现,php 数组内容,seo技术工具,网站演示程序,手机网页导航固定,扁平式网站模板,雕刻机程序代码lzw

这是一款类似播放视频时候最开始的倒计时广告,广告时间结束才能看到视频内容,一个JS小贴片广告代码,右上角带关闭按钮,左上角显示倒计时剩余时间,运行jQuery代码综合实现,CSS和HTML共同结合的网页特效,兼容各主流浏览器,本效果是从门户网站上整理而来。希望大家喜欢。

php微信红包系统源码,vscode插件导出和导入,ubuntu串口通讯,tomcat 业务日志分离,分类算法爬虫,php 隐藏扩展名,东营seo优化排名有哪些,网站模板带后台php,php留言板模板lzw

先来看看运行效果截图:

.net项目案例源码下载,在ubuntu终端粘贴,tomcat7无法jdk9,爬虫截取步数,php主动给小程序推送模板消息,南宁seo优lzw

在线演示地址如下:

/js//jquery-close-time-adv-style-codes/

具体代码如下:

js贴片倒计时代码*{padding:0;margin:0; font-size:12px;}ol,ul,li{list-style:none}img{border:none}.box{ width:564px; height:361px; margin:20px auto; position:relative; display:none;}.ad_time{ width:554px; height:351px; background:#000; filter:alpha(opacity=50);-moz-opacity:0.5;opacity: 0.5; padding:5px; position:absolute; top:0; left:0; color:#fff;}.ad_time span{ font-weight:bold; color:#cc0; padding:0 5px;}.close{ width:49px; height:20px; background:url(images/close.jpg) no-repeat; position:absolute; top:0; right:0; cursor:pointer;}.btn{ width:100px; height:30px; background:#eee; border:1px solid #ddd; font:normal 12px/30px 寰蒋闆呴粦; text-align:center; margin:20px auto; cursor:pointer;}function lxfEndtime(){ $t=$(#t).html(); if($t!=0){ $(#t).html($t-1); $i=setTimeout("lxfEndtime()",1000); }else{ $(.box).hide(); $(.btn).show(); $(#t).html(6); $(.ad_time).css({width:554px,height:351px}); clearTimeout($i); }};$(document).ready(function(){ $(.btn).live(click,function(){ $(.box).show(); $(this).hide(); $(.ad_time).animate({width:110,height:18},slow); lxfEndtime(); }) $(.close).click(function(){ $(.box).hide(); $(.btn).show(); $(#t).html(6); $(.ad_time).css({width:554px,height:351px}); clearTimeout($i); })});

时间还剩50秒

点击显示效果

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。