网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
09月11日漏签0天
flash吧 关注:217,615贴子:663,909
  • 看贴

  • 图片

  • 吧主推荐

  • 视频

  • 游戏

  • 3回复贴,共1页
<<返回flash吧
>0< 加载中...

谁能告诉我,这段代码里改新闻4条为8条,怎么改!

  • 只看楼主
  • 收藏

  • 回复
  • yunxuxu
  • 欧阳锋
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
// Action script...
// [Action in Frame 1]
function loadEnd()
{
    node = this.firstChild.childNodes;
    textNum = node.length;
    bText = [];
    bText_link = [];
    var _l1 = 0;
    while (_l1 < textNum)
    {
        bText[_l1] = node[_l1].firstChild.firstChild.nodeValue;
        bText_link[_l1] = node[_l1].firstChild.nextSibling.firstChild.nodeValue;
        _l1++;
    } // end while
    loadEndOk = true;
} // End of the function
function rightMoving()
{
    var _l3 = this;
    var _l2 = 1;
    while (_l2 <= textNum)
    {
        var _l1 = _l3.textMcD["textMc" + _l2];
        if (_l1.stageVar == textNum)
        {
            _l1.stageVar = 1;
            _l1._x = posx[1];
        }
        else
        {
            _l1.stageVar++;
        } // end if
        _l2++;
    } // end while
    delTimer = 0;
} // End of the function
function leftMoving()
{
    var _l3 = this;
    var _l2 = 1;
    while (_l2 <= textNum)
    {
        var _l1 = _l3.textMcD["textMc" + _l2];
        if (_l1.stageVar == 1)
        {
            _l1.stageVar = textNum;
            _l1._x = posx[stageView];
        }



  • yunxuxu
  • 欧阳锋
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
        else
        {
            _l1.stageVar--;
        } // end if
        _l2++;
    } // end while
    delTimer = 0;
} // End of the function
var speed = 0.100000;
var frameTime = 100;
System.useCodepage = true;
textBanner = new XML();
textBanner.onLoad = loadEnd;
textBanner.ignoreWhite = true;
textBanner.load("textBanner.xml");
this.textMcD.textMc._visible = 0;
var wSize = this.textMcD.textMc._width + 50;
var loadEndOk = false;
posx = [];
this.textMcD.textMc.onEnterFrame = function ()
{
    var _l3 = this;
    if (loadEndOk == true)
    {
        var _l2 = 1;
        while (_l2 <= textNum)
        {
            var _l1 = _l3.duplicateMovieClip("textMc" + _l2, _l2);
            if (_l2 == 1)
            {
                _l1._x = _l1._x - wSize;
            }
            else if (_l2 == 2)
            {
                _l1._x = _l3._x;
            }
            else
            {
                _l1._x = _l1._x + wSize;
            } // end if
            _l1.text = bText[_l2 - 1];
            _l1.onRollOver = function ()
            {



2025-09-11 14:44:52
广告
不感兴趣
开通SVIP免广告
  • yunxuxu
  • 欧阳锋
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
                this.gotoAndStop(2);
                autoMoving = false;
            };
            _l1.onRollOut = function ()
            {
                this.gotoAndStop(1);
                autoMoving = true;
            };
            _l1.onRelease = function ()
            {
                getURL(bText_link[this._name.slice(6) - 1], "");
            };
            posx[_l2] = _l1._x;
            _l1.stageVar = _l2;
            _l2++;
        } // end while
        delete _l3["onEnterFrame"];
    } // end if
};
var count = 0;
var delTimer = 0;
var autoMoving = true;
var stageView = 3;
var distance = "right";
this.onEnterFrame = function ()
{
    var _l3 = this;
    if (++count % frameTime == 0 && autoMoving == true)
    {
        if (distance == "right")
        {
            rightMoving();
        }
        else
        {
            leftMoving();
        } // end if
    } // end if
    if (++delTimer < 100)
    {
        var _l2 = 1;



  • yunxuxu
  • 欧阳锋
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
        while (_l2 <= textNum)
        {
            var _l1 = _l3.textMcD["textMc" + _l2];
            if (_l1.stageVar <= stageView)
            {
                _l1._visible = 1;
                _l1._x = _l1._x + speed * (posx[_l1.stageVar] - _l1._x);
            }
            else
            {
                _l1._visible = 0;
            } // end if
            _l2++;
        } // end while
    } // end if
};
this.nextBtn.onRelease = function ()
{
    distance = "right";
    leftMoving();
};
this.prevBtn.onRelease = function ()
{
    distance = "left";
    rightMoving();
};
this.nextBtn.onRollOver = this.prevBtn.onRollOver = function ()
{
    this.gotoAndStop(2);
    autoMoving = false;
};
this.nextBtn.onRollOut = this.prevBtn.onRollOut = function ()
{
    this.gotoAndStop(1);
    autoMoving = true;
    count = 0;
};



登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 3回复贴,共1页
<<返回flash吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示