User profile

Status:
Name: Simone Galiano
Nickname:
Member since: 2009-01-10 23:07:27
URL: http://www.dwss.it/wp/?page_id=2
About me:
 

User comments

Il decennium bug del javascript

credo la function getFlashVersion vada modificata come di seguito, pero’ non sapendo che errore dia, è solo un’ipotesi…
ciao

function getFlashVersion() {
var flashversion = 0;
if (navigator.plugins && navigator.plugins.length) {
var x = navigator.plugins[“Shockwave Flash”];
if(x){
if (x.description) {
var y = x.description;
flashversion = parseInt( y.substr( y.indexOf(’.’)-2,2) );
}
}
} else {
result = false;
for(var i = 15; i >= 3 && result != true; i–){
execScript(’on error resume next: result = IsObject(CreateObject(”ShockwaveFlash.ShockwaveFlash.’+i+’”))’,’VBScript’);
flashversion = i;
}
}
return flashversion;
}