1 闪动的状态栏
<HTML>
<HEAD>
<TITLE>状态栏特效篇--闪动的状态栏</TITLE>
</HEAD>
<BODY bgcolor="#fef4d2" onload=StatuFlashMessage()>
<br><br>
<center>
<h2>状态栏特效篇--闪动的状态栏</h2>
<hr width=300>
<br><br>
<script language=JavaScript>
var index=1;
function StatuFlashMessage() {
if (index == 1) {
window.status = "状态栏特效篇----闪动的状态栏";
index=0; }
else {
window.status = " ";
index=1; }
setTimeout("StatuFlashMessage()",500);
}
</script>
</BODY>
</HTML>
2 显示工作进度
<HTML>
<HEAD>
<TITLE>状态栏特效篇--显示工作进度</TITLE>
</HEAD>
代码运行js特效<BODY bgcolor="#fef4d2" >
<br><br>
<center>
<h2>状态栏特效篇--显示工作进度</h2>
<hr width=300>
<br><br>
<script language=JavaScript>
var currentmessage = 0
message = new initArray(2)
message[0]="工作进度 1 已经完成"
message[1]="现在是工作进度 2"
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) { this[i] = ' ' }
}
function StatuMessageRotator() {
window.status = message[currentmessage]
if (currentmessage > message.length - 1) {
currentmessage = 0
setTimeout("StatuMessageRotator()", 5000) }
else {
currentmessage = currentmessage + 1
setTimeout("StatuMessageRotator()", 2000) }
}
StatuMessageRotator();
</script>
</BODY>
</HTML>
3 显示坐标
<HTML>
<HEAD>
<TITLE>状态栏特效篇--显示坐标</TITLE>
</HEAD>
<BODY bgcolor="#fef4d2" >
<br><br>
<center>
<h2>状态栏特效篇--显示坐标</h2>
<hr width=300>
<br><br>
<script language=Javascript>
var where = "";
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论