wincc 状态栏怎么设置?

[复制链接]
查看: 195|回复: 0

wincc 状态栏怎么设置?

[复制链接]
查看: 195|回复: 0
潜伏

337

主题

1224

回帖

4814

积分

荣誉会员

积分
4814

社区居民

潜伏 2011-10-6 09:41:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享受更多内容,了解更多户外知识,让你轻松享受户外!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
1&#46;状态栏数字钟var timerRunning = false;function stopclock (){if(timerRunning)clearTimeout(timerID);timerRunning = false;}function showtime () {var now = new Date();var hours = now&#46;getHours();var minutes = now&#46;getMinutes();var seconds = now&#46;getSeconds()var timeValuehttp://zhidao&#46;baidu&#46;com/question/= " " + ((hours >12) ? hours -12 :hours)timeValue += ((minutes < 10) ? ":0" : ":") + minutestimeValue += ((seconds < 10) ? ":0" : ":") + secondstimeValue += (hours >= 12) ? " 下午" : " 上午"window&#46;status = timeValue;timerID = setTimeout("showtime()",1000);timerRunning = true;}function startclock () {stopclock();showtime();}</head> 2&#46;闪烁状态栏var speed = 700;var control = 1;function flash(){if (control == 1){window&#46;status=yourwords;control=0;} else{window&#46;status="";control=1;}setTimeout("flash()",speed);}window&#46;onload=flash// --> 3&#46;文字从右到左function scrollit_r2l(seed){ var m1 = "状态栏文字从右到左移动!!!!" ;var m2 = "" ;var msg=m1+m2;var out = " "; var c = 1; var speed = 120;if (seed > 100){ seed-=2;var cmd="scrollit_r2l(" + seed + ")"; timerTwo=window&#46;setTimeout(cmd,speed);} else if (seed <= 100 && seed > 0){ for (c=0 ; c < seed ; c++) out+=msg; seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window&#46;status=out; timerTwo=window&#46;setTimeout(cmd,speed); } else if (seed <= 0) { if (-seed < msg&#46;length) { out+=msg&#46;substring(-seed,msg&#46;length); seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window&#46;status=out; timerTwo=window&#46;setTimeout(cmd,speed);}else { window&#46;status=" "; timerTwo=window&#46;setTimeout("scrollit_r2l(100)",speed);}}}scrollit_r2l(100);// -- End of java script code --> 4&#46;文字从右弹出this&#46;msg = MESSAGEthis&#46;out = " "this&#46;pos = POSITIONthis&#46;delay = DELAYthis&#46;i = 0this&#46;reset = clearMessage}function clearMessage() {this&#46;pos = POSITION}var POSITION = 100var DELAY = 4var MESSAGE = "状态栏文字快速的一个一个弹出!!! " var scroll = new statusMessageObject()function scroller() {for (scroll&#46;i = 0; scroll&#46;i < scroll&#46;pos; scroll&#46;i++) {scroll&#46;out += " "}if (scroll&#46;pos >= 0)scroll&#46;out += scroll&#46;msgelse scroll&#46;out = scroll&#46;msg&#46;substring(-scroll&#46;pos,scroll&#46;msg&#46;length)window&#46;status = scroll&#46;outscroll&#46;out = " "scroll&#46;pos--if (scroll&#46;pos < -(scroll&#46;msg&#46;length)) {scroll&#46;reset()}setTimeout ('scroller()',scroll&#46;delay)}function snapIn(jumpSpaces,position) {var msg = scroll&#46;msgvar out = ""for (var i=0; i<position; i++) for (i=1;i<jumpSpaces;i++) out += msg&#46;charAt(position)window&#46;status = outif (jumpSpaces <= 1) {position++if (msg&#46;charAt(position) == ' ') jumpSpaces = 100-position} else if (jumpSpaces > 3)elseif (position != msg&#46;length) {var cmd = "snapIn(" + jumpSpaces + "," + position + ")";scrollID = window&#46;setTimeout(cmd,scroll&#46;delay);} else {window&#46;status=""jumpSpaces=0position=0cmd = "snapIn(" + jumpSpaces + "," + position + ")";scrollID = window&#46;setTimeout(cmd,scroll&#46;delay);return false }return true}snapIn(100,0);// -->
”济源户外网” www.jyhww.com 倡导“积极健康”的生活方式、崇尚“自然、和谐、真诚、友爱”的人文精神,以“自主、绿色、氧气、阳光、健康、友谊”为宗旨,由热爱生活、热爱大自然的群体组成。是户外运动者的家园,也是个人挑战自我。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|济源户外网-天韵茗茶 | 豫ICP备10211396号-1

GMT+8, 2025-1-11 04:24 , Processed in 0.046797 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.