<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧

        來源:懂視網(wǎng) 責編:小采 時間:2020-11-27 20:34:56
        文檔

        用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧

        用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧:請注意example2.html 在firefox下效果沒有在ie下圓潤,其原因來源于兼容性. 以及觸發(fā)動作過快會導(dǎo)致每一個li遞增兩次到三次的情況,這個原因跟類(Action.js)本身無關(guān).原因來源于example2.html中的演示代碼. 目前正在極力修改中. 咨詢改版升級信息請關(guān)注 我
        推薦度:
        導(dǎo)讀用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧:請注意example2.html 在firefox下效果沒有在ie下圓潤,其原因來源于兼容性. 以及觸發(fā)動作過快會導(dǎo)致每一個li遞增兩次到三次的情況,這個原因跟類(Action.js)本身無關(guān).原因來源于example2.html中的演示代碼. 目前正在極力修改中. 咨詢改版升級信息請關(guān)注 我

        請注意example2.html 在firefox下效果沒有在ie下圓潤,其原因來源于兼容性.

        以及觸發(fā)動作過快會導(dǎo)致每一個li遞增兩次到三次的情況,這個原因跟類(Action.js)本身無關(guān).原因來源于example2.html中的演示代碼.
        目前正在極力修改中.
        咨詢改版升級信息請關(guān)注 我的blog
        http://auntion.blogbus.com
        或者加我QQ詢問:82874972
        action.js
        代碼如下:
        /*
        *

        效果類

        By Auntion

        QQ:82874972

        Blog:Auntion@blogbus.com

        Email:Auntion@Gmail.com

        版權(quán)沒有,隨便使用.

        使用時請勿刪除此部分注釋.謝謝!

        *
        */


        ShowHide = Class.create();ShowHide.prototype = {status: expRs={},initialize: function(ob,endW,endH,effect,step){this.element=(typeof(ob)=='object') ? ob : $id(ob);if(expRs[ob.id]==null){ expRs[ob.id] = true; }if(expRs[ob.id]){this.width=this.element.offsetWidth;this.height=this.element.offsetHeight;this.endW=(endW != null)?endW.isZero():null;this.endH=(endH != null) ? endH.isZero():null;this.effect=(effect!=null)?effect:0;this.step=(step!=null)?step:0.075;this.now=[0,0];this.tryBug=this.step;this.method,this.goTo;expRs[this.element.id]=false;this.start();}},start: function(){switch(this.effect){case 0:{var method = this.judgment();this.base(method);}break;case 1:{var method = this.judgment();this.alpha(method);}break;default:{alert("錯誤: 不是一個可用的效果! 應(yīng)為0和1,默認執(zhí)行0");var method = this.judgment();this.base(method);}}},base: function(method){this.element.style.overflow = "hidden";this.goTo = this.create(method);},alpha: function(method,step,Opacity){alert("未完成的效果,自動用默認效果替代.");this.goTo = this.base(method);},allIs: function(){this.now[0] += this.expressions(0,this.endW,this.now[0],this.step);this.now[1] += this.expressions(0,this.endH,this.now[1],this.step);if((this.width > this.endW) ? (this.now[0] > (this.endW+this.tryBug)) : (this.now[0] < (this.endW-this.tryBug))){this.element.style.width = this.now[0]+"px";}if((this.height > this.endH)? (this.now[1] > (this.endH+this.tryBug)) : (this.now[1] < (this.endH-this.tryBug))){this.element.style.height= this.now[1]+"px";}else{clearInterval(this.goTo);this.element.style.width = (this.now[0]+this.tryBug)+"px";this.element.style.height= (this.now[1]+this.tryBug)+"px";expRs[this.element.id] = true;}},widthIs: function(){this.now += this.expressions(0,this.endW,this.now,this.step);if((this.width > this.endW) ? (this.now > (this.endW+this.tryBug)) : (this.now < (this.endW-this.tryBug))){this.element.style.width = this.now+"px";}else{clearInterval(this.goTo);this.element.style.width = (this.now+this.tryBug)+"px";expRs[this.element.id] = true;}},heightIs: function(){this.now += this.expressions(0,this.endH,this.now,this.step);if((this.height > this.endH) ? (this.now > (this.endH+this.tryBug)) : (this.now < (this.endH-this.tryBug))){this.element.style.height = this.now+"px";}else{clearInterval(this.goTo);this.element.style.height = (this.now+this.tryBug)+"px";expRs[this.element.id] = true;}},judgment: function(){if(this.endW != null && this.endH !=null){this.method = "all";this.now = [this.width,this.height];}else if(this.endW != null && this.endH == null){this.method = "width";this.now = this.width;}else if(this.endW == null && this.endH != null){this.method = "height";this.now = this.height; }return this.method;},create: function(codeString){var ShowHideGoTo;switch(codeString){case "all" : ShowHideGoTo = setInterval(function(){this.allIs();}.bind(this),1);break; case "width" : ShowHideGoTo = setInterval(function(){this.widthIs();}.bind(this),1);break;case "height": ShowHideGoTo = setInterval(function(){this.heightIs();}.bind(this),1);break;}return ShowHideGoTo;},expressions: function(num,end,now,step){var exec;switch(num){ case 0 : exec = (end - now)*step;break; default : exec = (end - now)*step;break;}return exec;}};

        language.js
        代碼如下:
        /*
        *
        語言擴展包

        By Auntion

        QQ:82874972

        Blog:Auntion@blogbus.com

        Email:Auntion@Gmail.com

        版權(quán)沒有,隨便使用.

        使用時請勿刪除此部分注釋.謝謝!

        *
        */

        var Class={create: function() {return function() {this.initialize.apply(this, arguments);}}};$id = function(i){return document.getElementById(i);};$name = function(i){return document.getElementsByName(i);};$class = function(className,baseId) {var fatherId = null;if(!baseId){fatherId = document;}else{var id = baseId;fatherId = $id(id);}var basic = fatherId.getElementsByTagName('*') || document.all;var child = null;var classNames = null;var aggregate = []; for (var i = 0; i < basic.length; i++) {child = basic[i];classNames = child.className.split(' ');for (var j = 0; j < classNames.length; j++) {if (classNames[j] == className) {aggregate.push(child);break;}}}return aggregate;};String.prototype.toInt = function(){return parseInt(this.replace(/[a-zA-Z]+/,''));};Number.prototype.isZero = function(){return (this < 0) ? 0 : this;};Function.prototype.bind = function(e) {var md = this;return function(){return md.apply(e,arguments);}};Object.prototype.attachEvent=function(method,func){if(!this[method]) this[method]=func;else this[method]=this[method].attach(func);};Function.prototype.attach=function(func){var f=this;return function(){f();func();}};

        example.html
        代碼如下:




        example1

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧

        用Javascript做flash做的事..才完成的一個類.AuntionActionvar0.1_javascript技巧:請注意example2.html 在firefox下效果沒有在ie下圓潤,其原因來源于兼容性. 以及觸發(fā)動作過快會導(dǎo)致每一個li遞增兩次到三次的情況,這個原因跟類(Action.js)本身無關(guān).原因來源于example2.html中的演示代碼. 目前正在極力修改中. 咨詢改版升級信息請關(guān)注 我
        推薦度:
        標簽: 的事 flash javascript
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 国产亚洲精品不卡在线| 欧美a级成人网站免费| 亚洲综合伊人久久大杳蕉| 亚洲av无码兔费综合| 午夜寂寞在线一级观看免费| 亚洲高清中文字幕免费| 成熟女人特级毛片www免费| 99热这里只有精品6免费| 亚洲AV午夜福利精品一区二区| a毛看片免费观看视频| 亚洲AV无码国产精品色午友在线| a级毛片免费全部播放| 亚洲视频在线一区| 四虎成年永久免费网站| 亚洲午夜无码久久| 日韩精品无码一区二区三区免费 | 国产成人无码区免费内射一片色欲| 久久久久亚洲av毛片大| 精品成人免费自拍视频| 无码欧精品亚洲日韩一区夜夜嗨 | 理论亚洲区美一区二区三区 | 亚洲精品黄色视频在线观看免费资源| 全部一级一级毛片免费看| 亚洲色自偷自拍另类小说| 老汉精品免费AV在线播放| 亚洲最大中文字幕无码网站| 免费在线观看的黄色网址| 精品亚洲永久免费精品| 亚洲av成人综合网| 亚洲国产成人久久综合一区77| 在线观看日本亚洲一区| 亚洲av午夜成人片精品电影| 中文字幕不卡高清免费| 色偷偷女男人的天堂亚洲网| 亚洲一区二区三区国产精品| 98精品全国免费观看视频| 亚洲AV无码国产一区二区三区| 亚洲色欲色欲www在线丝| 2020久久精品国产免费| 国产VA免费精品高清在线| 亚洲欧洲国产综合|