佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1265|回复: 7

Java Script

[复制链接]
发表于 26-10-2005 11:54 AM | 显示全部楼层 |阅读模式
谁会写JAVA的LOADING?哪位高手帮帮忙
回复

使用道具 举报


ADVERTISEMENT

发表于 26-10-2005 01:56 PM | 显示全部楼层
原帖由 KenFromHell 于 26-10-2005 11:54 AM 发表
谁会写JAVA的LOADING?哪位高手帮帮忙

不明白你要什么。
回复

使用道具 举报

 楼主| 发表于 26-10-2005 09:03 PM | 显示全部楼层
也就是LOADING啊,比如会在几秒内跳去另一页
回复

使用道具 举报

发表于 28-10-2005 04:54 PM | 显示全部楼层
有谁可以叫我怎么打他的code
谢谢
回复

使用道具 举报

七侠五义 该用户已被删除
发表于 28-10-2005 08:27 PM | 显示全部楼层
<SCRIPT>

<!--



var limit="0:10"



if (document.images){

var parselimit=limit.split(":")

parselimit=parselimit[0]*60+parselimit[1]*1

}

function beginrefresh(){

if (!document.images)

return

if (parselimit==1)

window.location.reload()

else{

parselimit-=1

curmin=Math.floor(parselimit/60)

cursec=parselimit%60

if (curmin!=0)

curtime=curmin+"分"+cursec+"秒后重刷本页!"

else

curtime=cursec+"秒后重刷本页!"

window.status=curtime

setTimeout("beginrefresh()",1000)

}

}



window.onload=beginrefresh

file://-->

</SCRIPT>
回复

使用道具 举报

七侠五义 该用户已被删除
发表于 28-10-2005 08:32 PM | 显示全部楼层
<html>
<head><title>Connection Refresher JavaScript</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<script language="JavaScript">           
<!--
document.writeln("<form name='my_form' action=''><table border='1' bordercolor='#0000FF' bgcolor='#FFFFFF' cellpadding='5' cellspacing='0' width='200'><tr><td><center><font size='1' face='verdana'><input type='text' name='my_text' size='35'></font><br><font size='1' face='verdana' color='#0000FF'>Connection Refresher JavaScript <br>DaWorx Web Design</font></a></font></center></tr></td></table></form>");




        var the_minutes = [ "  4", "  3", "  2", "  1", "  0" ] ;// ** add/remove quoted numbers in this line to increase/decrease page reload time - currently set to begin at 4 minutes 59 seconds
        var the_seconds = [  "59", "58", "57", "56", "55", "54", "53", "52", "51", "50", "49", "48", "47", "46", "45", "44", "43", "42", "41", "40", "39", "38", "37", "36", "35", "34", "33", "32", "31", "30", "29", "28", "27", "26", "25", "24", "23", "22", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "09", "08", "07", "06", "05", "04", "03", "02", "01", "00" ];
var index = 0;
var a = 0;
var my_timer;
             function countDown(){
                if (index <= the_seconds.length){window.document.my_form.my_text.value = " Page Will Refresh In" + the_minutes[a] + ":" + the_seconds[index] + " Minutes"; index++;};
         if (index == the_seconds.length){a++; index = "0";};
         if (a == the_minutes.length){window.location.reload()};
         my_timer = setTimeout('countDown();', 1000)};
countDown();
//-->
</script>
<p> 
<p> 
<p> 
<p> 
<table border="3" bordercolor="#FFFF00" bgcolor="#FF0000">
<tr>
<td>
<!--将以下代码加入HTML的<Body></Body>之间-->
<form>
<p align="center"><input onclick="window.location = &quot;view-source:&quot; + window.location.href" type="button" value="查看本页源代码" style="background-color: #FF0000; color: #FFFF00; border-left-style: solid; border-left-color: #FFCCFF; border-right-style: solid; border-right-color: #660033; border-top-style: solid; border-top-color: #FFCCFF; border-bottom-style: solid; border-bottom-color: #660033">
</td>
</tr>
</table>
</body>
</html>
回复

使用道具 举报

Follow Us
发表于 29-10-2005 05:07 AM | 显示全部楼层
HTML 不是也有吗?(redirecting)

<meta http-equiv="refresh" content="3; url=http://chinese.cari.com.my">
回复

使用道具 举报

发表于 29-10-2005 09:30 AM | 显示全部楼层
原帖由 七侠五义 于 28-10-2005 08:32 PM 发表
<html>
<head><title>Connection Refresher JavaScript</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<script language="Jav ...


這個是有一個時間顯示 'this page will be refresh in x minutes y seconds' 並且每秒更新也可以用更有效率的方法.
回复

使用道具 举报


ADVERTISEMENT

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 5-3-2025 02:28 AM , Processed in 0.108120 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表