Hi,
In fact they're sending you a bunch of code that looks like this <ýµM¡0.3¹!®Ó°..Â.(.‡&Tá .k> (probably ASCII encoded) with a help of javascript.
It's cool. It's measuring from the begining to the end (while including in the file a text of 50K) & passing to another page with a js:
<script>
<!--
CurrentTime = new Date();
ST = CurrentTime.getTime();
//-->
</script>
& with this <bunch of encoded human non readable text> & with...
<script language="JavaScript">
<!--
CurrentTime = new Date();
ET = CurrentTime.getTime();
Factor = 1000;
if (ET == ST)
{DT = 0}
else
{DT = (ET - ST)/Factor;}
DataSize = 50;
LS = DataSize/DT;
kbpsx = Math.round((LS8)10*1.02);
kbps = kbpsx/10;
isp = '';
ac = '';
location='/bandwidth/results.asp?kbps=' + kbps + '&ISP=' + isp + '&AreaCode=' + ac
// -->
</script>
By the way on testing I've got 7.4 kbps. With other words my provider realy sucks. & I've to pay for it (i have flate rate isdn that should go with 64K... May I add that www.galactica.it realy sucks as a provider, I need half an hour only to connect to the internet,... crazy. Huuu, another two months to go & than bye...) It took a century to complete this bandwith operation. ;-)
& then also you might ask:"Why would you measure that just to solve the problem for a graphic template that is about 100K?!!" Once you've downloaded it you have it in the memory - not always & in all cases, but...).
I like the solution very much. You all gave a very good solutions. For testing purposes is more than just great. I'll try to do it too. I'm sure that visitors would appritiate that too.
-Gord