Js可点击展开关闭的广告代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页上可点击展开、关闭的左侧广告代码</title>
</head>
<body>
<div id="Bar1190_big" style="position:absolute;z-index:9;top:10px;left:0px;width:100px;height:300px;">
<div id="AD1190" style="width:100px;height:300px;text-align:center;float:none" class="adSpace">
<a href="/" target="_blank"><img width="100" height="300" src="/jscss/demoimg/201403/2401.jpg" border="0"></a>
</div>
<div style="height:18px;width:100px;background:#CCCCCC;text-align:right;line-height:18px;">
<a style="font-size:12px;cursor:pointer;" onClick="bar1190_hidden()">关 闭</a>
</div>
</div>
<div id="Bar1190_small" style="position:absolute;z-index:9;top:10px;display:none;left:0px;width:20px;height:300px;">
<div id="AD1190" style="width:20px;height:300px;text-align:center;float:none" class="adSpace">
<a href="/" target="_blank"><img width="25px" height="300" src="/jscss/demoimg/201403/2402.jpg" border="0"></a>
</div>
<div style="height:18px;width:25px;background:#CCCCCC;text-align:right;line-height:18px;">
<a style="font-size:12px;cursor:pointer;" onClick="bar1190_show()">展开</a>
</div>
</div>
<script type="text/javascript">function bar1190_show(){document.getElementById(‘Bar1190_big‘).style.display=‘‘;document.getElementById(‘Bar1190_small‘).style.display=‘none‘;}function bar1190_hidden(){document.getElementById(‘Bar1190_big‘).style.display=‘none‘;document.getElementById(‘Bar1190_small‘).style.display=‘‘;}var autohide1190 = setTimeout("bar1190_hidden()",6000);</script>
</body>
</html>

Js可点击展开关闭的广告代码

时间: 2024-08-25 13:21:15

Js可点击展开关闭的广告代码的相关文章

可关闭与展开的对联广告代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-

js按钮点击展开收起

$('.tab').click(function(){ var index = $('.tab').index(this), //缓存第一次点击的li的索引值 ele = $(this).find('.ind'); $('.tab').each(function(i){ if(i != index){ //缓存索引值不等于他本身的索引值 $(this).find('.ind').hide(); } }); if(ele.is(':hidden')){ ele.show(); }else{ ele

实用js+css多级树形展开效果导航菜单

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Typ

jQuery 表格应用:隔行变色,展开关闭,内容筛选

应用一:表格隔行变色 1.普通的隔行变色: 需要用到的 API $(':odd')    --> 匹配所有索引值为奇数的元素,从0开始计数 $(':even')   --> 匹配所有索引值为偶数的元素,从0开始计数 <!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title>

JS使用cookie实现只出现一次的广告代码效果

我们上网经常会遇到第一次需要登录而之后不用再登录的网站的情况,其实是运用了Cookie 存储 web 页面的用户信息,Cookie 以名/值对形式存储,当浏览器从服务器上请求 web 页面时, 属于该页面的 cookie 会被添加到该请求中.服务端通过这种方式来获取用户的信息l. 今天的这个效果:第一次打开网页弹出一个广告框(js实现卷帘效果),关闭广告代码或刷新页面之后就不会再出现.由于往电脑里写cookie信息是服务器行为,只有访问网站,服务器才会向电脑里写cookie信息,由于现在只是普通

wordpress使用video.js与七牛云存储实现无广告视频分享应用

video.js是一款极受欢迎的基于HTML5的开源WEB视频播放器,其充分利用了HTML5的视频支持特性,可以实现全平台的无视频插件播放功能,对于现在流行的手机.PAD等移动智能终端有极佳的应用体验.对于不支持HTML5特性的老版本的浏览器,其内置了Flash播放器,可自动无缝地切换至Flash媒体播放器模式. 本人有多个TB级的百度个人存储空间,但自从百度开始对BCS进行收费,似乎对个人云存储PCS的态度开始暧昧起来,发个PCS API授权申请十几天也没人回应.最近千牛的广告挺火,口碑也不错

JS实现5秒钟自动关闭的div广告层

<html> <head> <title>JS实现5秒钟自动关闭的div广告层丨礼堂座椅丨轻质隔墙板</title> <style type="text/css"> <!-- #sponsorAdDiv {position:absolute; height:1; width:1; top:0; left:0;} --> </style> </head> <body> <SC

点击遮罩关闭弹窗效果

1 function videoPlay(obj){ 2 $(obj).hover(function () { 3 $(".detail",this).stop().fadeToggle(); 4 $(".detail",this).click(function(){ 5 var src = $(this).attr("data-url"); 6 $("#video").attr("src",src); 7

jQuery点击空白处关闭弹出窗口

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>点击空白处关闭弹出窗口</title>