Привет!

> Because!

LOLOL okay. You can use this javascript stuff, it's more accurate and 
does not get fooled by the rubbish people write in their user_agents



// This function attempts to determine visitor's spoken language
// ////////////////////////////////////////////////////////////////////
function browser_language() {
   if (navigator.appName == 'Netscape')
     var language = navigator.language;
   else
     var language = navigator.browserLanguage;

   return language;
}


// This function states whether browser is java_enabled
// ////////////////////////////////////////////////////////////////////
function java_enabled() {
   // Find whether java is here
   if (navigator.javaEnabled() == 1) return "Y"; else return "N";
}


// This function states whether browser is font smoothing capable
// ////////////////////////////////////////////////////////////////////
function fontSmoothing_enabled() {
   // Find whether fonts smoothing available
   if (window.screen.fontSmoothingEnabled == true) return "Y"; else 
return "N";
}


// This function is used to generate  the SRC parameter for the iframe
// in order to pass it all estracted parameters on clients workstation
// without using cookies
// ////////////////////////////////////////////////////////////////////
function launch() {
   window.onerror=null;


   document.location = "somescript.php?"+
                       "language="+ browser_language() +"&"+
                       "screen="+ 
window.screen.width+"x"+window.screen.height +"&"+
                       "screenavailable="+ 
window.screen.availWidth+"x"+window.screen.availHeight +"&"+
                       "colours="+ window.screen.colorDepth +"&"+
                       "fonts_smoothing="+ fontSmoothing_enabled() +"&"+
                       "java="+ java_enabled() +"&"+
                       "browser="+ navigator.appName +"&"+
                       "version="+ navigator.appVersion +"&"+
                       "mozilla="+ navigator.appCodeName +"&"+
                       "os="+ navigator.platform +"&"+
                       "ref="+ document.referrer;


пока
Альберто
Киев





-- 


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to