<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    無(wú)為

    無(wú)為則可為,無(wú)為則至深!

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      190 Posts :: 291 Stories :: 258 Comments :: 0 Trackbacks
    //scrollBodyId:??String 內(nèi)部滾動(dòng)div的id
    //scrollBoxId:??String 外面限制div的id
    //showHeight:??Int 限制顯示高度
    //showWidth:??Int 限制顯示寬度
    //lineHeight:??Int 每行的高度
    //stopTime:????Int 間隔停止的時(shí)間(毫秒)
    //speed:????Int 滾動(dòng)速度(毫秒,越小越快)
    //var sample = new ScrollObj("scroollBody","scroollBox",36,300,19,50,50);
    var ScrollObj = function(scrollBodyId,scrollBoxId,showHeight,showWidth,lineHeight,stopTime,speed) {
    ??this.obj = document.getElementById(scrollBodyId);
    ??this.box = document.getElementById(scrollBoxId);
    ??
    ??this.style = this.obj.style;
    ??this.defaultHeight = this.obj.offsetHeight;
    ??
    ??this.obj.innerHTML += this.obj.innerHTML;
    ??this.obj.style.position = "relative";
    ??
    ??this.box.style.height = showHeight;
    ??this.box.style.width = showWidth;
    ??this.box.style.overflow = "hidden";
    ??
    ??this.scrollUp = doScrollUp;

    ??this.stopScroll = false;
    ??
    ??this.curLineHeight = 0;
    ??this.lineHeight = lineHeight;
    ??this.curStopTime = 0;
    ??this.stopTime = stopTime;
    ??this.speed = speed;

    ??this.style.top = lineHeight;

    ??this.object = scrollBodyId + "Object";
    ??eval(this.object + "=this");
    ??setInterval(this.object+".scrollUp()",speed);
    ??this.obj.onmouseover=new Function(this.object+".stopScroll=true");
    ??this.obj.onmouseout=new Function(this.object+".stopScroll=false");
    }
    function doScrollUp(){
    ??if( this.stopScroll == true )
    ????return;
    ???this.curLineHeight += 1;
    ???if( this.curLineHeight >= this.lineHeight ){
    ?????this.curStopTime += 1;
    ?????if( this.curStopTime >= this.stopTime ){
    ???????this.curLineHeight = 0;
    ???????this.curStopTime = 0;
    ?????}
    ???}
    ??else{ ??
    ?? ??this.style.top = parseInt(this.style.top) - 1;
    ?? ??if( -parseInt(this.style.top) >= this.defaultHeight ){
    ?? ??this.style.top = 0;
    ?? ??}
    ???}
    }


    凡是有該標(biāo)志的文章,都是該blog博主Caoer(草兒)原創(chuàng),凡是索引、收藏
    、轉(zhuǎn)載請(qǐng)注明來(lái)處和原文作者。非常感謝。

    posted on 2006-06-19 10:08 草兒 閱讀(2235) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): ajax
    主站蜘蛛池模板: 亚洲邪恶天堂影院在线观看| 成人A片产无码免费视频在线观看| 久久精品中文字幕免费| 亚洲偷自精品三十六区| 亚洲真人无码永久在线| 永久中文字幕免费视频网站| 亚洲精品视频在线观看免费| 日韩视频免费在线观看| sss日本免费完整版在线观看| 亚洲AV无码久久精品成人| 无码专区一va亚洲v专区在线| 黄瓜视频高清在线看免费下载 | 成人免费无码大片A毛片抽搐| 久草免费手机视频| 九九热久久免费视频| 午夜成人无码福利免费视频| 亚洲AV无码一区二区三区性色| 亚洲一区二区三区亚瑟| 亚洲精品中文字幕乱码影院| 亚洲电影一区二区三区| 久久亚洲国产视频| 亚洲国产精品成人精品无码区 | 亚洲影院在线观看| 亚洲国产成人精品无码区在线观看| 亚洲精品国产自在久久| 亚洲福利精品一区二区三区| 四虎影视永久免费视频观看| 国产免费观看黄AV片| 成人国产mv免费视频| 国产成人精品男人免费| 免费观看午夜在线欧差毛片| 四虎影视永久免费观看地址| 国产片免费福利片永久| 国产v片免费播放| 亚洲国产精品一区二区第一页免 | 亚洲日韩AV无码一区二区三区人| 久久精品国产亚洲av麻豆蜜芽 | 永久免费无码网站在线观看| 拔擦拔擦8x华人免费久久| 免费中文字幕不卡视频| 亚洲男人第一无码aⅴ网站 |