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

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

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

    無為

    無為則可為,無為則至深!

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      190 Posts :: 291 Stories :: 258 Comments :: 0 Trackbacks
    //scrollBodyId:??String 內部滾動div的id
    //scrollBoxId:??String 外面限制div的id
    //showHeight:??Int 限制顯示高度
    //showWidth:??Int 限制顯示寬度
    //lineHeight:??Int 每行的高度
    //stopTime:????Int 間隔停止的時間(毫秒)
    //speed:????Int 滾動速度(毫秒,越小越快)
    //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;
    ?? ??}
    ???}
    }


    凡是有該標志的文章,都是該blog博主Caoer(草兒)原創,凡是索引、收藏
    、轉載請注明來處和原文作者。非常感謝。

    posted on 2006-06-19 10:08 草兒 閱讀(2235) 評論(0)  編輯  收藏 所屬分類: ajax
    主站蜘蛛池模板: 亚洲韩国在线一卡二卡| 亚洲中文字幕精品久久| 精品国产_亚洲人成在线高清| 亚洲最大福利视频| 国产99久久久久久免费看| 国产又长又粗又爽免费视频 | 爱爱帝国亚洲一区二区三区| 欧洲乱码伦视频免费国产| 成人永久免费福利视频网站| 亚洲综合色婷婷在线观看| 成人性生免费视频| 亚洲AV区无码字幕中文色| 亚洲国产精品无码第一区二区三区 | 无码AV动漫精品一区二区免费| 亚洲 自拍 另类小说综合图区| 91亚洲自偷手机在线观看| 少妇无码一区二区三区免费| 又粗又大又硬又爽的免费视频 | 亚洲精品无码专区在线在线播放| 成人一区二区免费视频| 亚洲av中文无码乱人伦在线播放| 色综合久久精品亚洲国产| 久草视频在线免费| 中文有码亚洲制服av片| 免费一级毛片免费播放| 特级做A爰片毛片免费看无码 | 午夜亚洲WWW湿好爽| 国产黄色一级毛片亚洲黄片大全| 国产在线播放线91免费| 亚洲国产韩国一区二区| 日韩电影免费在线观看视频| xxxxx做受大片在线观看免费| 亚洲人成在线播放网站岛国| 一级女人18片毛片免费视频| 久久精品国产亚洲av四虎| 成熟女人牲交片免费观看视频| 一级毛片aa高清免费观看| 久久精品国产亚洲av麻豆小说| 免费A级毛片无码A| 69影院毛片免费观看视频在线| 狠狠入ady亚洲精品|