x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
PlayButton.js - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\tmp4677415525\Leona\Scripts\Widgets\PlayButton\PlayButton.js
旋转
特效
属性
历史版本
// // iWeb - PlayButton.js // Copyright (c) 2007 Apple Inc. All rights reserved. // function PlayButton(instanceID) {if(instanceID!=null) {Widget.apply(this,arguments);if(windowsInternetExplorer&&browserVersion>=7) {this.enableIE7Hack=true;} this.updateFromPreferences();}} PlayButton.prototype=new Widget();PlayButton.prototype.constructor=PlayButton;PlayButton.prototype.widgetIdentifier="com-apple-iweb-widget-playbutton";PlayButton.prototype.onload=function() {} PlayButton.prototype.onunload=function() {} PlayButton.prototype.changedPreferenceForKey=function(key) {} PlayButton.prototype.setDivOpacity=function(playButtonDiv,opacity) {if(this.enableIE7Hack) {playButtonDiv.style.visibility=(opacity>0.5)?"visible":"hidden";} else {IWSetDivOpacity(playButtonDiv,opacity,true);}} PlayButton.prototype.updateFromPreferences=function() {var playButtonDiv=this.getElementById("play_button");playButtonDiv.ensureHasLayoutForIE();var self=this;self.opacity=0;this.setDivOpacity(playButtonDiv,self.opacity);var mouseEventDiv=this.enableIE7Hack?playButtonDiv.parentNode:playButtonDiv;mouseEventDiv.onmouseover=function() {self.p_fadeIn(playButtonDiv);mouseEventDiv.onmouseout=function() {self.p_fadeOut(playButtonDiv);}} fixupIEPNGBGsInTree(playButtonDiv);} PlayButton.prototype.p_fadeIn=function(playButtonDiv) {var self=this;var startOpacity=this.opacity;if(this.mFadeAnimation) {this.mFadeAnimation.stop();} this.mFadeAnimation=new SimpleAnimation(function() {delete self.mFadeAnimation;});this.mFadeAnimation.pre=function() {self.opacity=startOpacity;self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.post=function() {self.opacity=1.0;self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.update=function(now) {self.opacity=startOpacity+now*(1.0-startOpacity);self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.start();} PlayButton.prototype.p_fadeOut=function(playButtonDiv) {var startOpacity=this.opacity;if(this.mFadeAnimation) {this.mFadeAnimation.stop();} var self=this;this.mFadeAnimation=new SimpleAnimation(function() {delete self.mFadeAnimation;});this.mFadeAnimation.pre=function() {self.opacity=startOpacity;self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.post=function() {self.opacity=0.0;self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.update=function(now) {self.opacity=startOpacity*(1.0-now);self.setDivOpacity(playButtonDiv,self.opacity);} this.mFadeAnimation.start();}
PlayButton.js
网页地址
文件地址
上一页
3/3 下一页
下载
( 2 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.