x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
FooterControls.js - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\tmp4677415525\Leona\Scripts\Widgets\FooterControls\FooterControls.js
旋转
特效
属性
历史版本
// // iWeb - FooterControls.js // Copyright (c) 2007 Apple Inc. All rights reserved. // function FooterControls(instanceID) {if(instanceID!=null) {Widget.apply(this,arguments);NotificationCenter.addObserver(this,FooterControls.prototype.p_handlePaginationContentsNotification,"paginationSpanContents",this.p_mediaGridID());this.updateFromPreferences();}} FooterControls.prototype=new Widget();FooterControls.prototype.constructor=FooterControls;FooterControls.prototype.widgetIdentifier="com-apple-iweb-widget-footercontrols";FooterControls.prototype.onload=function() {if(this.preferences&&this.preferences.postNotification) {this.preferences.postNotification("BLWidgetIsSafeToDrawNotification",1);}} FooterControls.prototype.onunload=function() {} FooterControls.prototype.updateFromPreferences=function() {this.setPage(0);} FooterControls.prototype.changedPreferenceForKey=function(key) {if(this.runningInApp) {if(key=="x-paginationSpanContents") {this.p_setPaginationControls(this.p_paginationSpanContents());}}} FooterControls.prototype.prevPage=function() {if(this.runningInApp) {this.setPreferenceForKey(null,"x-previousPage");} else {NotificationCenter.postNotification(new IWNotification("PreviousPage",this.p_mediaGridID(),null));}} FooterControls.prototype.nextPage=function() {if(this.runningInApp) {this.setPreferenceForKey(null,"x-nextPage");} else {NotificationCenter.postNotification(new IWNotification("NextPage",this.p_mediaGridID(),null));}} FooterControls.prototype.setPage=function(pageIndex) {if(this.runningInApp) {this.setPreferenceForKey(pageIndex,"x-setPage");} else {NotificationCenter.postNotification(new IWNotification("SetPage",this.p_mediaGridID(),{pageIndex:pageIndex}));}} FooterControls.prototype.p_mediaGridID=function() {var mediaGridID=null;if(this.preferences) {mediaGridID=this.preferenceForKey("gridID");} if(mediaGridID===undefined) {mediaGridID=null;} return mediaGridID;} FooterControls.prototype.p_paginationSpanContents=function() {var paginationSpanContents=null;if(this.preferences) {paginationSpanContents=this.preferenceForKey("x-paginationSpanContents");} if(paginationSpanContents===undefined) {paginationSpanContents=null;} return paginationSpanContents;} FooterControls.prototype.p_handlePaginationContentsNotification=function(notification) {var userInfo=notification.userInfo();var controls=userInfo.controls||"";this.p_setPaginationControls(controls);} FooterControls.prototype.p_setPaginationControls=function(controls) {var template=new Template(controls);var myControls=template.evaluate({WIDGET_ID:this.instanceID});this.getElementById("pagination_controls").update(myControls);}
FooterControls.js
网页地址
文件地址
上一页
2/2 下一页
下载
( 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.