请选择 进入手机版 | 继续访问电脑版

ylsunyuan技术论坛中心

 找回密码
 注册(请使用中文注册)
搜索
热搜: 活动 交友 discuz
查看: 718|回复: 0

简易的JS广告窗口

[复制链接]

124

主题

127

帖子

619

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
619
发表于 2016-6-2 15:59:16 | 显示全部楼层 |阅读模式

  1.         <style>
  2. #nav { width:150px; height: 300px; border: 1px solid #D4CD49; background-color: #c3c3c3; position:fixed;right:0;top:20%; overflow: hidden; }
  3. </style>

  4. <div id="nav" onclick="missq()"><p>2222</p><p>2222</p><p>2222</p><p>2222</p></div>

  5. <p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p>


  6. </BODY>

  7. <SCRIPT type="text/javascript">


  8. function missq(){
  9.         if (document.getElementById('nav').style.width == "10px") {
  10.                 document.getElementById('nav').style.width = "150px";
  11.         }else{
  12.                 document.getElementById('nav').style.width = "10px";
  13.         }
  14. }


  15. </SCRIPT>
复制代码


回复

使用道具 举报

本版积分规则

QQ|Archiver|手机版|小黑屋|ylsunyuan技术论坛 ( 桂ICP备14005218号-1

GMT+8, 2024-3-29 19:59 , Processed in 0.061187 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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