Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[素材] 聚焦图素材和安装教程

[复制链接]
非洲站长 发表于 2011-8-4 20:45:25 | 显示全部楼层 |阅读模式
本帖最后由 非洲站长 于 2011-8-4 21:35 编辑


{:soso__10959638132436384640_1:}经过几天的折腾终于脱离了主机屋的困扰,今天把聚焦图的全部代码和安装贡献给大家!





  1. 首先大家下载好文件把里面的JS、CSS、IMG都长传去自己的论坛目录
  2. 然后把下面这段代码放进门户-模块管理-数据调用(新建一个所属页面是:页面名称、模块分类是:帖子模块。建好后按属性-模块模板-复制代码进去)
  3. <script src="js/jquery-1.4.4.min.js"></script>
  4. <script src="js/slides.min.jquery.js"></script>
  5. <script>
  6.   $(function(){
  7.    $('#slides').slides({
  8.     preload: true,
  9.     preloadImage: 'img/loading.gif',
  10.     play: 5000,
  11.     pause: 2500,
  12.     hoverPause: true,
  13.     animationStart: function(){
  14.      $('.caption').animate({
  15.       bottom:-35
  16.      },100);
  17.     },
  18.     animationComplete: function(current){
  19.      $('.caption').animate({
  20.       bottom:0
  21.      },200);
  22.      if (window.console && console.log) {
  23.       // example return of current slide number
  24.       console.log(current);
  25.      };
  26.     }
  27.    });
  28.   });
  29. </script>

  30. <link rel="stylesheet" href="css/global.css">
  31. <div id="container">
  32.    <div id="example">
  33.    <img src="img/new-ribbon.png" width="112" height="112" alt="New Ribbon" id="ribbon">
  34.    <div id="slides">
  35.     <div class="slides_container">
  36.     [loop]
  37.      <div>
  38.       <a href="{url}" title="{title}" target="_blank"><img src="{pic}" width="570" height="270" alt="{title}"></a>
  39.       <div class="caption" style="bottom:0">
  40.       <p>{title}</p>
  41.       </div>
  42.      </div>
  43.      [/loop]
  44.      </div>
  45.     <a href="#" class="prev"><img src="img/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a>
  46.     <a href="#" class="next"><img src="img/arrow-next.png" width="24" height="43" alt="Arrow Next"></a>   </div>
  47.      <img src="img/example-frame.png" width="739" height="341" alt="Example Frame" id="frame">  </div>
  48.   </div>
  49. 接着就是数据调用了,按下内部调用。然后把那代码复制,在你想插入聚焦图的地方加入代码即可
复制代码

好了,就是这么简单。视频我会在这段时间弄个,因为本人比较懒{:soso__11355668017513440589_1:}

素材在https://discuz.dismall.com/thread-2289060-1-1.html这个帖子里面不想浪费金币就移步下本人站里

如果还不会请大家去我哪里看吧。因为附件太大没办法在这里上传(改好CSS的)
http://www.lingjx.com/forum.php?mod=viewthread&tid=16&page=1&extra=#pid22





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 非洲站长 发表于 2011-8-4 20:47:04 | 显示全部楼层
自己留给位置
回复

使用道具 举报

gushiyue 发表于 2011-8-4 20:55:22 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 非洲站长 发表于 2011-8-4 21:56:21 | 显示全部楼层
没人,只能自己顶
回复

使用道具 举报

 楼主| 非洲站长 发表于 2011-8-5 09:46:10 | 显示全部楼层
不能沉
回复

使用道具 举报

626269168 发表于 2011-8-5 11:59:51 | 显示全部楼层
回复

使用道具 举报

king5151 发表于 2011-8-5 12:02:20 | 显示全部楼层
不错,一会试试效果。
回复

使用道具 举报

lxp922 发表于 2011-8-5 12:49:22 | 显示全部楼层
支持一个,不错哟、
回复

使用道具 举报

eric2530 发表于 2011-8-5 15:31:37 | 显示全部楼层
支持一个哦呵呵
回复

使用道具 举报

柏杉 发表于 2011-8-5 16:00:31 | 显示全部楼层
非洲站长 发表于 2011-8-4 20:47
自己留给位置

会FALSH+XML幻灯片调用吗?希望LZ能够提供这方面的教材!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-24 10:09 , Processed in 0.026980 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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