Не сте регистриран! Регистрирайте се БЕЗПЛАТНО, за да използвате услугите на сайта!

 Loading
Автор  eminem (01.04.2005 23:08) съобщение до автора
Погледнат  2210 пъти добави към любими
Оценка добави коментар
Гласове  1 изпрати на приятел
Коментари  (0) абонирай се за JavaScript
     
eminem
     
 

Индикатор който показва, че страницата ви се зарежда. Ето ви кода:

CODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html>
<
head>
<
style>
<!--
#bar, #barbackground{
position:absolute;
left:0;
top:0;
background-color:blue;
}

#barbackground{
background-color:black;
}

-->
</
style>

<
script language="JavaScript1.2">

///
Done Editing/////////////
var clipright=0
var widthIE=0
var widthNS=0

function initializebar(){
if (document.all){
baranchor.style.visibility="visible"
widthIE=bar.style.pixelWidth
startIE
=setInterval("increaseIE()",50)
}
if (document.layers){
widthNS=document.baranchorNS.document.barbackgroundNS.clip.width
document.baranchorNS.document.barNS.clip.right=0
document.baranchorNS.visibility="show"

startNS=setInterval("increaseNS()",50)
}
}

function increaseIE(){
bar.style.clip="rect(0 "+clipright+" auto 0)"
window.status="Loading..."
if (clipright<widthIE)
clipright=clipright+(widthIE/(duration*20))
else{
window.status=''
clearInterval(startIE)
postaction()
}
}

function increaseNS(){
if (clipright<202){
window.status="Loading..."
document.baranchorNS.document.barNS.clip.right=clipright
clipright
=clipright+(widthNS/(duration*20))
}
else{
window.status=''
clearInterval(startNS)
postaction()
}
}


window.onload=initializebar
</
script>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</
head>

<
body bgcolor="#FFFFFF" text="#000000">

<
table width="481" border="0" cellpadding="0" cellspacing="0" mm:layoutgroup="true">
 <
tr>
  <
td width="14" height="82"></td>
  <
td width="218"></td>
  <
td width="249"></td>
 </
tr>
 <
tr>
  <
td height="33"></td>
  <
td valign="top"> <script language="JavaScript1.2">
if (document.all){
document.write('<div id="baranchor" style="position:relative;width:200px;height:20px;visibility:hidden;">')
document.write('<div id="barbackground" style="width:200px;height:20px;z-index:9"></div>')
document.write('<div id="bar" style="width:200px;height:20px;z-index:10"></div>')
document.write('</div>')
}


</
script>
<
ilayer name="baranchorNS" visibility="hide" width=200 height=20>
<
layer name="barbackgroundNS" bgcolor=black width=200 height=20 z-index=10 left=0 top=0></layer>
<
layer name="barNS" bgcolor=blue width=200 height=20 z-index=11 left=0 top=0></layer>
</
ilayer></td>
  <
td></td>
 </
tr>
</
table>
</
body>
</
html>



Ключови думи: javascript loading страница индикатор




 1 посетител чете този скрипт (0 потребители и 1 гост)  
Активни потребители: ---
   
  

Еmail  
 

 

 
  • Интересно от Софтуер
 
  • Интересно от myLINKS
 
 
 
 



IT-PLACE.NET © 2004 - 2008