帝国论坛帝国网站管理系统交流区自定义系统模型首页轮播图片 怎样调用 【本版专题贴子】  
主题:首页轮播图片 怎样调用 [加入收藏夹]   

hxrevo
用户头衔:书生

精华贴   :0
发贴数   :1
经验值   :29
注册时间:2010-11-09
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 1 楼]
首页轮播图片 怎样调用
首页轮播图片 怎样调用?会的人帮帮忙。
改成首页图片轮播


<div id="img_box_2">
           <a href="" title="网" class="">
<img src="" alt="网">
<h2>网</h2>
</a>
<a href="" title="让人" class="">
<img src="" alt="让人">
<h2>让人</h2>
</a>
<a href="" title="" class="">
<img src="" alt=">
<h2></h2>
</a>
</div>


               <!-- hot_img_2 -->
          <script language="javascript" type="text/javascript">
                <!--
                var _hot_img_2=document.getElementById("hot_img_2");
                var _img_box_2=document.getElementById("img_box_2");
                var _a=_img_box_2.getElementsByTagName("a");
                var _node;
                var _timer;
                if(_a.length>0){
                        _a[0].className="here";
                        _node=_a[0];
                        var _ul=document.createElement("ul");
                        _ul.id="img_index_2";
                        for(var i=0;i<_a.length;i++){
                                _a[i].onmouseover=cleartimeout;
                                _a[i].onmouseout=settimeout;
                                var _li=document.createElement("li");
                                _li.innerHTML=i+1;
                                _li.onmouseover=function(){
                                        cleartimeout();
                                        this.onmouseout=settimeout;
                                        if(Browser.isIE){
                                                _img_box_2.filters[0].transition=Math.floor(24*Math.random());
                                                _img_box_2.filters[0].apply();
                                        }
                                        for(var i=0;i<_li.length;i++){_li[i].className="";_a[i].className="";}
                                        this.className="here";
                                        _node=_a[parseInt(this.innerHTML)-1];
                                        _node.className="here";
                                        if(Browser.isIE){_img_box_2.filters[0].play();}
                                };
                                                                        _ul.appendChild(_li);
                        }
                                                                _hot_img_2.appendChild(_ul);
                        _li=_ul.getElementsByTagName("li");
                                                                _li[0].className="here";
                }
                                                        function play_hot_img_2(){
                        if(_a.length<=1){return;}
                                                                cleartimeout();
                        if(Browser.isIE){
                                _img_box_2.filters[0].transition=Math.floor(24*Math.random());
                                _img_box_2.filters[0].apply();
                        }
                        for(var i=0;i<_a.length;i++){
                                if(_node==_a[i]){
                                        for(var j=0;j<_li.length;j++){_li[j].className="";}
                                        _node.className="";
                                        if(_node!=_a[_a.length-1]){_node=_a[i+1];_li[i+1].className="here";}
                                        else{_node=_a[0];_li[0].className="here";}
                                        _node.className="here";
                                        break;
                                }
                                                                }
                        if(Browser.isIE){_img_box_2.filters[0].play();}
                                                                _timer=window.setTimeout(play_hot_img_2,5000);
                }
                                                        function settimeout(){
                        window.clearTimeout(_timer);
                                                                _timer=window.setTimeout(play_hot_img_2,1000);
                }
                                                        function cleartimeout(){
                        window.clearTimeout(_timer);
                                                        }
                var Browser = {
                                                        'isIE' : (navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0),
                'isFirefox' : navigator.userAgent.indexOf('Firefox') >= 0,
                                                        'isOpera' : navigator.userAgent.indexOf('Opera') >= 0
                };
                                                        _timer=window.setTimeout("play_hot_img_2()",3000);
        //-->
                                        </script>




2010-11-14 18:24:26 已设置保密 顶部 回复 引用 报告 编辑 删除

大家乡网
用户头衔:举人

精华贴   :0
发贴数   :390
经验值   :632
注册时间:2010-09-22
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 2 楼]

不会



生日祝福语 http://www.zhufudq.com
如何快速成功 http://www.su93.com
育儿知识 http://www.jianeryuer.com
2010-11-15 16:44:12 已设置保密 顶部 回复 引用 报告 编辑 删除

pingpong
用户头衔:探花

精华贴   :0
发贴数   :9335
经验值   :24298
注册时间:2008-11-02
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 3 楼]

显示内容用ecmsinfo或灵动标签调用出来




2010-11-19 08:40:01 已设置保密 顶部 回复 引用 报告 编辑 删除

nahenry
用户头衔:书生

精华贴   :0
发贴数   :33
经验值   :282
注册时间:2009-04-23
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 4 楼]

用[phomeflashpic]标签调用  




2010-11-19 15:26:41 已设置保密 顶部 回复 引用 报告 编辑 删除

快速回复
内容

表情
使用EBB代码 使用smile代码 显示签名 自动分析url 自动分析img
     【进入高级模式】   (按 Ctrl+Enter 直接提交)
    顶部  加入收藏夹
关于帝国 | 广告服务 | 联系我们 | 法律声明 | 隐私条款 | 许可协议
Powered by: EBB Version 2.2.1