PDA

View Full Version : Detect Speed and Redirect



hldr
03-26-2005, 01:50 AM
Hey guys,

Im having trouble having to find a javascript code.

Ive got 2 different website styles, one that its more for Broadband and another for 56kers "low-fi" i was hoping to find a script to auto detect the speed and if its slow then it would automaticly redirect to www.something.com/low-fi/
Im not sure if this is possible with javascript, but i belive its possible with php.

Do you guys know where i can find something like this (or similar)
If so Please DO suggest it.
Thanks in Advance :D

jscheuer1
03-26-2005, 04:00 AM
I know of no script for this. I have seen talk of using a flash image and testing the load time but, I'm not up on flash. In any case, bandwidth fluctuates, images get cached, those are only two circumstances that will throw a bug in most schemes of this nature. Best bet, if you really want the slow pokes on one site and the speed demons on another is to give them a choice with radio buttons or a drop down form input. Let them think it is for their own good. You could even set a cookie so that their choices could persist session to session.

mwinter
03-26-2005, 10:08 AM
Best bet, if you really want the slow pokes on one site and the speed demons on another is to give them a choice with radio buttons or a drop down form input.Unless the OP really wants to write a properly handled, server-side form processing script I think links would be better. You can still use cookies to perform the redirection automatically on later visits.

Mike

hldr
03-26-2005, 11:01 AM
Yeah how i wouldnt mind i guess, i wouldnt mind having a drop down instead or something, and everytime they go back on the site it will remember that option.

DNCamper
04-08-2005, 05:00 PM
How about this...



<script type="text/javascript">
<!--

function setBandwidth(whichVal){
var expdate = new Date();
expdate.setTime(expdate.getTime() + (60*60*24*365));
document.cookie = 'setbandwidth=' + whichVal + '; expires=' + expdate.toGMTString() + '; path=/';
}
BCt=new Date();
BCs=BCt.getTime();
function bandwidthDetect() {
var args=bandwidthDetect.arguments;
var el=(document.layers)?document.layers['Layer1'].document.Myimage1:document.Myimage1;
if(el.complete){
BCt=new Date();
BCe=BCt.getTime();
BCd=(BCe-BCs)/1000;
if(document.cookie.indexOf('setbandwidth=1')>=0) {
location.href=args[1];}else
if(document.cookie.indexOf('setbandwidth=2')>=0) {
location.href=args[2];}else
if(BCd<args[0]){setBandwidth(1);location.href=args[1];}else
if(BCd>=args[0]){setBandwidth(2);self.location.href=args[2];}
}
}

//-->
</script>

Then place this in your "body tag"


<body onload="bandwidthDetect('4.5','300k.php','56k.php')">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:100px; height:100px; z-index:1; visibility: hidden">
<img src="45k_image.jpg" alt="loadImage" width="100" height="100" border="0" name="Myimage1" /></div>
</body>



Found this little piece somewhere.

jscheuer1
04-08-2005, 05:20 PM
If ya gotta go there, that's a good way but, what if 45k_image.jpg in is my cache and I'm on dial-up? Won't I get the cookie for broadband? What if I'm on broadband and bandwidth dips momentarily just as I get to your page, won't I get the cookie for slow-pokes?

DNCamper
04-08-2005, 05:43 PM
True...when I have used this I made sure there was an option on the player to change the bandwidth manually. Well what if we add that the cookie expires as soon as the image is downloaded?

Yahoo uses one as well, but they use it in an .asp script... it sure to be more advanced than this one. Would like to see that code...

cr3ative
04-08-2005, 06:11 PM
If ya gotta go there, that's a good way but, what if 45k_image.jpg in is my cache and I'm on dial-up? Won't I get the cookie for broadband? What if I'm on broadband and bandwidth dips momentarily just as I get to your page, won't I get the cookie for slow-pokes?


I should imagine there's a way to prevent caching of a particular image.
I've heard it around somewhere.

mwinter
04-09-2005, 10:45 PM
I should imagine there's a way to prevent caching of a particular image.
I've heard it around somewhere.HTTP headers are sent back with every HTTP request, including images, scripts, and so forth. You could instruct the server to sent the appropriate caching headers to prevent user agents, or even caches and proxies along the route, from caching the image. How you go about doing this varies from server-to-server, but it is possible.

Mike

kg2451
04-22-2005, 06:36 AM
Yahoo uses one as well, but they use it in an .asp script... it sure to be more advanced than this one. Would like to see that code...

You said you wanted to see the code for the Yahoo ASP bandwidth script...well here it is:


<html>
<head>
<title>LAUNCHcast - Detecting Internet Connection Speed</title>
<script language="Javascript">
<!--
time = new Date();
var startTime = time.getTime();
// -->
</script>
<!--
SNOHITATUSBKWUJYWBYJNTBPMHQQHHVVPZXGRZGNDZRAODDUH
BHKIYYKHEEQKKSIQFFPCLXHUJHXQQLCORXVBOXLRNNMJKHBGY
CKJMEMGQOEXQNKDULTPVAFCDIDANQOVCFRLJESXNC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OEQVSHXFCYXHVEBASIIGGLZGGQDAQSLMJJKETBUWCS
EAFIWPOXCEQUHHIXVXPRYPUUTYQOSSXHFQEXOWPEDPQPNUFAN
HLITFXJAJWGLJPPIIGKXMWBQTUGLLXTJHQAPZVYKPBLTLENTE
YERDKJZUPDWWOCSCUFGPMNGSQQMQPZVKXPPKFCKWPROTCXWTK
-->
<script language="Javascript1.1">
<!--

//// calculate download time
time = new Date();
var endTime = time.getTime();
if (startTime == endTime) {
var downloadTime = .01;
} else {
var downloadTime = (endTime - startTime)/1000; //conversion to seconds
}
var bandwidth_KBps = 10 / downloadTime;
var bandwidth_Kbps = 100 / downloadTime;
//// determine bandwidth
var suggestbw = 20;
if (bandwidth_Kbps > 64)
suggestbw = 64;
else if (bandwidth_Kbps > 32)
suggestbw = 32;

var redirectTime = 0;
var goHere = "bandwidth.asp?cid=1&iid=1&ltw=LaunchRadioTarget&p=1&m=59&d=0&mode=1&bridgeMode=1&pr=0&a=save&bw=" + suggestbw;

function redirectUser() {
setTimeout("go_now()", redirectTime);
}

function go_now() {
window.location.replace(goHere);
}

//-->
</script>
</head>
<body bgcolor="#666666" text="white" onload="redirectUser()" scroll="no">
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" valign="middle"><font face="verdana, arial" size=2><b>Detecting internet connection speed...</b></font><br></td>
</tr>
</table>
</body>

</html>

Arctic Fox
04-23-2005, 08:00 PM
That in itself would take way too long to load just to check for connection speed.

Personally I like to use this:

<HTML xmlns:IE>
<HEAD>
<STYLE>
@media all {
IE\:CLIENTCAPS {behavior:url(#default#clientCaps)}
}
</STYLE>

<SCRIPT>
function window.onload()
{
sTempStr = "availHeight = " + oClientCaps.availHeight + "\n" +
"availWidth = " + oClientCaps.availWidth + "\n" +
"bufferDepth = " + oClientCaps.bufferDepth + "\n" +
"colorDepth = " + oClientCaps.colorDepth + "\n" +
"connectionType = " + oClientCaps.connectionType + "\n" +
"cookieEnabled = " + oClientCaps.cookieEnabled + "\n" +
"cpuClass = " + oClientCaps.cpuClass + "\n" +
"height = " + oClientCaps.height + "\n" +
"javaEnabled = " + oClientCaps.javaEnabled + "\n" +
"platform = " + oClientCaps.platform + "\n" +
"systemLanguage = " + oClientCaps.systemLanguage + "\n" +
"userLanguage = " + oClientCaps.userLanguage + "\n" +
"width = " + oClientCaps.width + "\n" ;

oPre.innerText = sTempStr;
}
</SCRIPT>

</HEAD>
<BODY>
<H1>clientCaps Behavior Sample</H1>

<P>This example shows how to use the new <B>clientCaps</B>
behavior, introduced in Microsoft Internet Explorer 5, to obtain
client capabilities information. The following is a sampling of the
information that can be obtained:</P>

<IE:CLIENTCAPS ID="oClientCaps" />

<PRE id="oPre"></PRE>
</BODY>
</HTML>