Not a Member Yet,
Click here to Register
How do you like the new design?
It's cool, great job
[tally: 70%] 70%
It's okay
[tally: 20%] 20%
Its OK but I liked the old layout better
[tally: 0%] 0%
Please bring the old one back
[tally: 10%] 10%

votes: 10

ID: 68
Viewed: 3608
Added: Jan 29, 2002
Version:
Snippet uploaded by: snippet
Written By: Don Kennedy
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

Many of us would like to have Scripts or html pages which could be run OFFLINE on the clients PC when they are NOT connected to the internet. This is an example of how to check using some very SIMPLE HTML and JavaScript. Example you may have Gifs which you could reference in a default home page which could now be accessed offline via a directory on the clients system. Very Many possibilites with this.

<!---Head--->
<html xmlns:MSIE="urn:default" id="htmlText" style="width: 365px; height: 240px">

<HEAD>

<STYLE>
MSIE:CLIENTCAPS {behavior:url(#default#clientcaps)}
</STYLE>

</HEAD>

<!---Body--->


 <body tabindex="-1">

<MSIE:CLIENTCAPS ID="idClCap" />

<script language="JavaScript">

var str = document.all.idClCap.connectionType;

alert (str);

if (str == "lan")
downloadSpeed = 800; // good estimate for LAN - 800 KB/min
else if (str == "offline")
{
downloadSpeed = 100; // default to modem speed if offline
isoffline = true;
alert (document.all.idClCap.connectionType);
}
else
downloadSpeed = 120; // good estimate for 28.8kbps modem, 120 KB/min

alert (downloadSpeed);


</SCRIPT>
</BODY>
</HTML>


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Replying to a Comment...


Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2017 snippetlibrary.com All Rights Reserved. Conditions