- 浏览: 417627 次
- 性别:
文章分类
最新评论
-
wrw_ahut:
你这个怎么停下来?怎么跳转activity
Android启动界面实现 -
huiqoo:
高仿UC半透明MENU菜单(有图有真相) -
wenzhixin:
多谢分享~
Android启动界面实现 -
orange9711:
学习学习
Android启动界面实现 -
qinweiping:
问下楼主 好像这个反编译 只能看到程序的主体结构吧 还是和源程 ...
APK反编译利器Apktool下载及用法介绍
<script>
function xyProgressLG(xyID){
this.xyProgressID = 'oProgress' + Math.random().toString().substr(2, 10) + xyID;
this.max = 0;
this.min = 0;
this.width = 100;
this.height = 20;
this.currPos = 0;
this.outerBorderColor = "black";
this.outerBackColor = "white";
this.innerBorderColor = "";
this.innerBackColor = "blue";
this.TextColor = "red";
this.SetProgressTop = xySetProgressTop;
this.SetProgressLeft = xySetProgressLeft;
this.SetProgressWidth = xySetProgressWidth;
this.SetProgressHeight = xySetProgressHeight;
this.SetProgressBorderColor = xySetProgressBorderColor;
this.SetProgressForeBorderColor = xySetProgressForeBorderColor;
this.SetProgressBackColor = xySetProgressBackColor;
this.SetProgressForeColor = xySetProgressForeColor;
this.EnableProgressText = xyEnableProgressText;
this.SetProgressTextFontSize = xySetProgressTextFontSize;
this.SetProgressTextFontColor = xySetProgressTextFontColor;
this.SetProgressTextFontFamily = xySetProgressTextFontFamily;
this.SetProgressMax = xySetProgressMax;
this.SetProgressMin = xySetProgressMin;
this.UpdatePosition = xyUpdatePosition;
this.UpdateToPosition = xyUpdateToPosition;
this.UpdatePersent = xyUpdatePersent;
this.UpdateToPersent = xyUpdateToPersent;
xyProgressInit(this.xyProgressID);
return this.xyProgressID;
}
function xyProgressInit(xyID){
var div = document.createElement("div");
div.id = xyID;
div.style.position = "absolute";
div.style.left = "100px";
div.style.top = "100px";
document.body.appendChild(div);
var pro = document.createElement("div");
pro.style.position = "absolute";
pro.style.left = "0px";
pro.style.top = "0px";
pro.style.fontSize= "0px";
pro.style.width = "100px";
pro.style.height = "20px";
pro.style.border = "1px solid black";
pro.style.background = "white";
pro.style.zIndex = "100";
div.appendChild(pro);
var proInner = document.createElement("div");
proInner.id = xyID+"_Inner";
proInner.style.position = "absolute";
proInner.style.left = "1px";
proInner.style.top = "1px";
proInner.style.fontSize= "0px";
proInner.style.width = "0px";
proInner.style.height = "16px";
proInner.style.border = "1px solid black";
proInner.style.background = "blue";
pro.style.zIndex = "102";
pro.appendChild(proInner);
var text = document.createElement("div");
text.style.position = "absolute";
text.style.left = "50px";
text.style.top = "2px";
text.style.fontSize= "11px";
text.style.width = "40px";
text.style.height = "16px";
text.style.zIndex = "103";
div.appendChild(text);
}
function xySetProgressTop(pStyleTop){
try{
var e = document.all(this.xyProgressID);
e.style.top = pStyleTop;
}catch(e){
alert(e.description);
}
}
function xySetProgressLeft(pStyleLeft){
try{
var e = document.all(this.xyProgressID);
e.style.left = pStyleLeft;
}catch(e){
alert(e.description);
}
}
function xySetProgressWidth(pWidth){
try{
var e = document.all(this.xyProgressID);
e.style.width = pWidth;
eOuter = e.children(0);
eOuter.style.width = pWidth;
this.width = pWidth;
}catch(e){
alert(e.description);
}
}
function xySetProgressHeight(pHeight){
try{
var e = document.all(this.xyProgressID);
e.style.height = pHeight;
eOuter = e.children(0);
eInner = e.children(0).children(0);
eOuter.style.height = pHeight;
eInner.style.height = pHeight-4;
this.height = pHeight;
}catch(e){
alert(e.description);
}
}
function xySetProgressBorderColor(pColor){
try{
var e = document.all(this.xyProgressID);
e = e.children(0);
e.style.border = "1px solid "+pColor;
}catch(e){
alert(e.description);
}
}
function xySetProgressForeBorderColor(pColor){
try{
var e = document.all(this.xyProgressID);
e = e.children(0).children(0);
e.style.border = "1px solid "+pColor;
}catch(e){
alert(e.description);
}
}
function xySetProgressBackColor(pColor){
try{
var e = document.all(this.xyProgressID);
e = e.children(0);
e.style.background = pColor;
}catch(e){
alert(e.description);
}
}
function xySetProgressForeColor(pColor){
try{
var e = document.all(this.xyProgressID);
e = e.children(0).children(0);
e.style.background = pColor;
}catch(e){
alert(e.description);
}
}
function xyEnableProgressText(bEnable){
try{
var e = document.all(this.xyProgressID);
eText = e.children(1);
if(bEnable){
eText.style.display = "none";
}else{
eText.style.display = "";
}
var pos = e.style.width;
var sel = eText.style.width;
pos = (pos-sel)/2;
eText.style.left = pos;
}catch(e){
alert(e.description);
}
}
function xySetProgressTextFontSize(pSize){
try{
var e = document.all(this.xyProgressID);
e = e.children(1);
e.style.fontSize = pSize;
}catch(e){
alert(e.description);
}
}
function xySetProgressTextFontColor(pColor){
try{
var e = document.all(this.xyProgressID);
e = e.children(1);
e.style.fontColor = pColor;
}catch(e){
alert(e.description);
}
}
function xySetProgressTextFontFamily(pFamily){
try{
var e = document.all(this.xyProgressID);
e = e.children(1);
e.style.fontFamily = pFamily;
}catch(e){
alert(e.description);
}
}
function xySetProgressMax(pMax){
this.max = pMax;
}
function xySetProgressMin(pMin){
this.min = pMin;
}
function xyUpdatePosition(pPosition){ /*将progress增长或减小pPosition,其中,0<ppersent<max* <br=""> try{
var max = this.max;
var min = this.min;
var e = document.all(this.xyProgressID);
if(pPosition>max){
return -1;
}
var len = this.width;
var pos = this.currPos+(pPosition/(max-min))*len;
eProgress = e.children(0).children(0);
if(pos>=this.width){
eProgress.style.width = this.width-4;
this.currPos = pos;
}else if(pos<=0){
eProgress.style.width = 0;
this.currPos = pos;
}else{
eProgress.style.width = pos;
this.currPos = pos;
}
return this.currPos;
}catch(e){
alert(e.description);
return -1;
}
}
function xyUpdateToPosition(pPosition){ /*将progress更新到pPosition位置,其中,min<ppersent<max* <br=""> try{
var max = this.max;
var min = this.min;
var e = document.all(this.xyProgressID);
if(pPosition<min||pposition>max){
return -1;
}
var len = this.width;
var pos = ((pPosition-min)/(max-min))*len;
eProgress = e.children(0).children(0);
if(pos>=this.width){
eProgress.style.width = this.width-4;
this.currPos = pos;
}else if(pos<=0){
eProgress.style.width = 0;
this.currPos = pos;
}else{
eProgress.style.width = pos;
this.currPos = pos;
}
return this.currPos;
}catch(e){
alert(e.description);
return -1;
}
}
function xyUpdatePersent(pPersent){ /*从当前位置增长或减小pPersent%,pPersent大于零:增长,否则,减小*/
try{
var e = document.all(this.xyProgressID);
e = e.children(0).children(0);
var len = this.width;
var pos = this.currPos;
len = len*pPersent/100;
pos += len;
if(pos>this.width||pos<0){
return -1;
}
e.style.width = pos;
this.currPos = pos;
return this.currPos;
}catch(e){
alert(e.description);
return -1;
}
}
function xyUpdateToPersent(pPersent){ /*从当前位置增长或减小到pPersent%*/
try{
var e = document.all(this.xyProgressID);
e = e.children(0).children(0);
var len = this.width;
var pos = len*pPersent/100;
if(pos>this.width||pos<0){
return -1;
}
e.style.width = pos;
this.currPos = pos;
return this.currPos;
}catch(e){
alert(e.description);
return -1;
}
}
function xyNewID(){
var d = new Date();
var t = "oDraw_"+d.getTime().toString();
return t;
}
</script>
<script>
var xy = new xyProgressLG("kitty");
xy.SetProgressLeft(200)
xy.SetProgressTop(200);
xy.SetProgressWidth(200)
xy.SetProgressHeight(20)
xy.SetProgressMax(200)
xy.SetProgressMin(50);
</script>
<script language="JavaScript">
function update(){
xy.UpdatePosition(10)
setTimeout("update()",100);
}
</script>
update
updatePosition
autoUpdate
发表评论
-
利用JS把Div等对象水平、垂直居中
2012-11-28 08:33 2192<script type="text/java ... -
div 实现长英文字母自动换行——兼容IE/FF/CHROME
2012-01-27 21:54 3768最近做个英文网站,DIV内的英文不能自动换行,搜了一下,都是用 ... -
一个JS加XML实现的菜单
2009-01-12 11:32 1068今天看到了一个菜单的实现,感觉不错,收藏之,演示地址:http ... -
JS控件--带时间
2007-12-05 18:42 1245在网上找的,觉得不错,收留之 -
JS中常用的xpath特性
2007-10-15 14:57 6774js 代码 //选择所有dir元素的值等于xx的 ... -
JavaScript 面向对象程序设计(上)——封装
2007-09-28 12:00 1570JavaScript 是一种非常灵 ... -
JavaScript 面向对象程序设计(下)——继承与多态
2007-09-28 11:42 23841 又是几个基本概念 为 ... -
表格隔行换色
2007-02-25 01:51 1991摘自: http://www.blueidea.c ... -
web一些值得珍藏的代码
2007-02-25 01:47 1328... -
javascript字符集转换函数
2007-01-25 09:31 6239function Str2Unicode(str){ var ... -
iframe自动调整高度
2006-12-20 22:51 2992<script type="text/java ... -
查看文件域地址
2006-12-23 21:48 1391onclick="alert(' File文件域的 ... -
网页上内容导出到word里
2006-12-23 22:21 2673<meta http-equiv="Con ... -
省份,城市联动显示
2006-12-23 22:32 1826<meta http-equiv="Co ... -
客户端用JAVASCRIPT生成WORD文档
2006-12-23 22:37 2264<script language="javas ... -
利用xml实现多级关联下拉选择框
2006-12-23 22:52 1862<script>var arrSel=[ ... -
利用JScript/CSS 编程技术模拟实现TABView控件
2006-12-23 22:56 1572熟悉可视化界面编程的朋友一定很熟悉各种控件。在 ... -
javascript实现EMAIL推荐本页功能
2006-12-23 23:02 1342<script language="ja ... -
可输入的select
2006-12-23 23:03 1159<style type="text/css ... -
JavaScript窗口之定制新窗口参数
2006-12-23 23:19 3223window.open()方法的基本语法结构是: ...
相关推荐
用 Javascript 模拟的 Vista 风格进度条,程序很小,不过觉得很不错。
JavaScript制作进度条实例JavaScript制作进度条实例JavaScript制作进度条实例JavaScript制作进度条实例JavaScript制作进度条实例JavaScript制作进度条实例
javascript 实现的进度条效果 javascript 实现的进度条效果
用javascript 实现进度条加载大数据量的表格。在加载中不影响页面的操作。相当于多线程式的动态生成表格。
Javascript上传进度条
javascript进度条实例 进度条加载实例
总结的一个javascript实现的上传文件进度条
JavaScript模拟进度条,供大家一起共同分享学习。
javascript 模拟进度条
用javascript写的模拟windowxp关机效果的demo。 供初学者参考使用。
用javascript实现进度条----
因为项目需要,自己开发了一个测试的进度条, 共测试使用。
网页进度条能够更好的反应当前网页的加载进度情况,loading进度条可用动画的形式从开始0%到100%完成网页加载这一过程。但是目前的浏览器并没有提供页面加载进度方面的接口,也就是说页面还无法准确返回页面实际加载...
html js制作加载进度条.zip
一个非常不错的纯javascript+css网页进度条(值得收藏) 收藏经典,拒绝平庸
javascript与进度条
javascript做的数据加载进度条,只要在数据加载时调用就行
实用JAVASCRIPT进度条 实用JAVASCRIPT进度条 实用JAVASCRIPT进度条
使用css3来实现环形进度条,只传入百分比中的数字即可展示环形状态,可以根据具体需求进行代码修改。写在最后的:csdn不支持上传资源的编辑只能再上传一遍有sass代码的文件。。
JavaScript 进度条 用IE打开 JavaScript 进度条 用IE打开 JavaScript 进度条 用IE打开