x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
components_yts1172130796.js - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\sarrey\videoart\Berlin\YouTube_archivos\components_yts1172130796.js
旋转
特效
属性
历史版本
if ((navigator.appVersion.indexOf('MSIE') > -1) && (typeof window.XMLHttpRequest == 'undefined')) { imgExt = '.gif'; } else { //imgExt = '.gif'; imgExt = '.png'; } var UT_RATING_IMG = '/img/icn_star_full_19x20'+imgExt; var UT_RATING_IMG_HOVER = '/img/star_hover.gif'; var UT_RATING_IMG_HALF = '/img/icn_star_half_19x20'+imgExt; var UT_RATING_IMG_BG = '/img/icn_star_empty_19x20'+imgExt; var UT_RATING_IMG_REMOVED = '/img/star_removed.gif'; function UTRating(ratingElementId, maxStars, objectName, formName, ratingMessageId, componentSuffix, size) { this.ratingElementId = ratingElementId; this.maxStars = maxStars; this.objectName = objectName; this.formName = formName; this.ratingMessageId = ratingMessageId this.componentSuffix = componentSuffix this.starTimer = null; this.starCount = 0; if(size=='S') { UT_RATING_IMG = '/img/icn_star_full_11x11.gif' UT_RATING_IMG_HALF = '/img/icn_star_half_11x11.gif' UT_RATING_IMG_BG = '/img/icn_star_empty_11x11.gif' } // pre-fetch image (new Image()).src = UT_RATING_IMG; (new Image()).src = UT_RATING_IMG_HALF; function showStars(starNum, skipMessageUpdate) { this.clearStarTimer(); this.greyStars(); this.colorStars(starNum); if(!skipMessageUpdate) this.setMessage(starNum); } function setMessage(starNum) { messages = new Array("Rate this video", "Poor", "Nothing special", "Worth watching", "Pretty cool", "Awesome!"); document.getElementById(this.ratingMessageId).innerHTML = messages[starNum]; } function colorStars(starNum) { for (var i=0; i < starNum; i++) { document.getElementById('star_' + this.componentSuffix + "_" + (i+1)).src = UT_RATING_IMG; } } function greyStars() { for (var i=0; i < this.maxStars; i++) if (i <= this.starCount) { document.getElementById('star_' + this.componentSuffix + "_" + (i+1)).src = UT_RATING_IMG_BG; } else { document.getElementById('star_' + this.componentSuffix + "_" + (i+1)).src = UT_RATING_IMG_BG; } } function setStars(starNum) { this.starCount = starNum; this.drawStars(starNum); document.forms[this.formName]['rating'].value = this.starCount; var ratingElementId = this.ratingElementId; postForm(this.formName, true, function (req) { replaceDivContents(req, ratingElementId); }); } function drawStars(starNum, skipMessageUpdate) { this.starCount=starNum; this.showStars(starNum, skipMessageUpdate); } function clearStars() { this.starTimer = setTimeout(this.objectName + ".resetStars()", 300); } function resetStars() { this.clearStarTimer(); if (this.starCount) this.drawStars(this.starCount); else this.greyStars(); this.setMessage(0); } function clearStarTimer() { if (this.starTimer) { clearTimeout(this.starTimer); this.starTimer = null; } } this.clearStars = clearStars; this.clearStarTimer = clearStarTimer; this.greyStars = greyStars; this.colorStars = colorStars; this.resetStars = resetStars; this.setStars = setStars; this.drawStars = drawStars; this.showStars = showStars; this.setMessage = setMessage; }
components_yts1172130796.js
网页地址
文件地址
上一页
13/19
下一页
下载
( 3 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.