本帖最后由 非洲站长 于 2011-8-4 21:35 编辑
{:soso__10959638132436384640_1:}经过几天的折腾终于脱离了主机屋的困扰,今天把聚焦图的全部代码和安装贡献给大家!
- 首先大家下载好文件把里面的JS、CSS、IMG都长传去自己的论坛目录
- 然后把下面这段代码放进门户-模块管理-数据调用(新建一个所属页面是:页面名称、模块分类是:帖子模块。建好后按属性-模块模板-复制代码进去)
- <script src="js/jquery-1.4.4.min.js"></script>
- <script src="js/slides.min.jquery.js"></script>
- <script>
- $(function(){
- $('#slides').slides({
- preload: true,
- preloadImage: 'img/loading.gif',
- play: 5000,
- pause: 2500,
- hoverPause: true,
- animationStart: function(){
- $('.caption').animate({
- bottom:-35
- },100);
- },
- animationComplete: function(current){
- $('.caption').animate({
- bottom:0
- },200);
- if (window.console && console.log) {
- // example return of current slide number
- console.log(current);
- };
- }
- });
- });
- </script>
- <link rel="stylesheet" href="css/global.css">
- <div id="container">
- <div id="example">
- <img src="img/new-ribbon.png" width="112" height="112" alt="New Ribbon" id="ribbon">
- <div id="slides">
- <div class="slides_container">
- [loop]
- <div>
- <a href="{url}" title="{title}" target="_blank"><img src="{pic}" width="570" height="270" alt="{title}"></a>
- <div class="caption" style="bottom:0">
- <p>{title}</p>
- </div>
- </div>
- [/loop]
- </div>
- <a href="#" class="prev"><img src="img/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a>
- <a href="#" class="next"><img src="img/arrow-next.png" width="24" height="43" alt="Arrow Next"></a> </div>
- <img src="img/example-frame.png" width="739" height="341" alt="Example Frame" id="frame"> </div>
- </div>
- 接着就是数据调用了,按下内部调用。然后把那代码复制,在你想插入聚焦图的地方加入代码即可
复制代码
好了,就是这么简单。视频我会在这段时间弄个,因为本人比较懒{: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
|