Re: stupid javascripts quesetion?
Re: stupid javascripts quesetion?
Re: stupid javascripts quesetion?
I suggest using PHP. As far as I have seen only Windows CE can be detected using javascript. Here is the PHP:
Code:
<?
if (stristr($ua, "Windows CE") or stristr($ua, "AvantGo") or stristr($ua,
"Mazingo") or stristr($ua, "Mobile") or stristr($ua, "T68") or stristr($ua,
"Syncalot") or stristr($ua, "Blazer") )
{
$DEVICE_TYPE="MOBILE";
}
if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE")
{
$location='mobile/index.php';
header ('Location: '.$location);
exit;
}
?>
Re: stupid javascripts quesetion?
i really don't want php or cgi or asp. is there another way