T
thisis
Hi All,
i'm trying to display the amout in percentage for the loading sub event
value,
for the <img .../>
example:
the browser should display something like this:
view 1, time 00:00:05
loading 5%
====================
view 2, time 00:00:010
loading 10%
====================
view 3, time 00:00:57
loading 99%
====================
view 4, time 00:01:00
complete 100%
<!-- the image is showen -->
====================
i have this code:
<script language="vbscript">
Function showState_onready()
IF myImgID.readyState = "loading" then
myDivID.innerText = myImgID.readyState & " " & strPerventage
Else
myDivID.innerText = myImgID.readyState & " " & "100%"
End If
End Function
</script>
<html>
<head></head>
<body>
<div id="myDivID"></div>
<img id="myImgID" src="img.jpg"
onreadystatechange="vbscript:showState_onready('')" />
</body>
</html>
i'm trying to display the image amount of the file loaded in
percentage,
how do i do it?
i'm trying to display the amout in percentage for the loading sub event
value,
for the <img .../>
example:
the browser should display something like this:
view 1, time 00:00:05
loading 5%
====================
view 2, time 00:00:010
loading 10%
====================
view 3, time 00:00:57
loading 99%
====================
view 4, time 00:01:00
complete 100%
<!-- the image is showen -->
====================
i have this code:
<script language="vbscript">
Function showState_onready()
IF myImgID.readyState = "loading" then
myDivID.innerText = myImgID.readyState & " " & strPerventage
Else
myDivID.innerText = myImgID.readyState & " " & "100%"
End If
End Function
</script>
<html>
<head></head>
<body>
<div id="myDivID"></div>
<img id="myImgID" src="img.jpg"
onreadystatechange="vbscript:showState_onready('')" />
</body>
</html>
i'm trying to display the image amount of the file loaded in
percentage,
how do i do it?