Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159530
  • 博文数量: 19
  • 博客积分: 470
  • 博客等级: 下士
  • 技术积分: 252
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-06 09:16
文章分类

全部博文(19)

文章存档

2013年(2)

2012年(17)

分类: Python/Ruby

2012-03-06 19:23:50

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="" >
  3. <head>
  4.     <title>无标题页</title>
  5.     <script type="text/javascript" src=""></script>

  6.     <link href="../css/common.css" rel="stylesheet" type="text/css" />
  7.     <link href="../css/index.css" rel="stylesheet" type="text/css" />

  8.     
  9.     </head>
  10. <body>

  11. <div class="spec-n5">
  12.     
  13.     <div class="control" id="spec-left" style="border:1px solid green;">
  14.         <img src="../images/ph_prev.gif" />
  15.     </div>
  16.     
  17.     <div id="spec-list">
  18.         <ul class="list-h">
  19.             <li><img src="../images/best_small2.jpg" style="width:40px;height:40px;"></li>
  20.             <li><img src="../images/best_small3.jpg" style="width:40px;height:40px;"></li>
  21.             <li><img src="../images/best_small4.jpg" style="width:40px;height:40px;"></li>
  22.             <li><img src="../images/best_small5.jpg" style="width:40px;height:40px;"></li>
  23.             <li><img src="../images/best_small1.jpg" style="width:40px;height:40px;"></li>
  24.         </ul>
  25.     </div>    
  26.     
  27.     <div class="control" id="spec-right" style="border:1px solid green;">
  28.         <img src="../images/ph_next.gif" />
  29.     </div>    
  30. </div>
  31. <script type="text/javascript">
  32. // 左右点击滚动开始
  33. var scrollPic1 = new ScrollPic();
  34. scrollPic1.scrollContId = "spec-list"; //内容容器ID
  35. scrollPic1.arrLeftId = "spec-left";//左箭头ID
  36. scrollPic1.arrRightId = "spec-right"; //右箭头ID

  37. scrollPic1.frameWidth = 400;//显示框宽度
  38. scrollPic1.pageWidth = 100; //翻页宽度

  39. scrollPic1.speed = 10; //移动速度(单位毫秒,越小越快)
  40. scrollPic1.space = 10; //每次移动像素(单位px,越大越快)
  41. scrollPic1.autoPlay = false; //自动播放
  42. scrollPic1.autoPlayTime = 3; //自动播放间隔时间()

  43. scrollPic1.initialize(); //初始化
  44. // 左右点击滚动结束
  45. </script>
  46. </body>
  47. </html>

 JS代码站 

阅读(9227) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~