[FP] flash banner dood :?

Pagina: 1
Acties:

  • Arno
  • Registratie: Juli 2000
  • Laatst online: 13-03 12:45
"); var flashneeded = 4; var flashdetect = 0; var popup_width = 0; var popup_height = 0; var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // true if we're on ie var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; var flash5Installed = false; var flash4Installed = false; var flash3Installed = false; var flash2Installed = false; var fla_olderror = null; function fla_handleError() { return false; } if (typeof(onerror) == 'function') fla_olderror = onerror; onerror = fla_handleError; if (navigator.appName.indexOf('Explorer')<0) { if (navigator.plugins) { if (navigator.plugins.length > 0) { if (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin && (navigator.mimeTypes['application/x-shockwave-flash'].suffixes.indexOf('swf') != -1)) { for(i in navigator.plugins) { if ((navigator.plugins[i].description.indexOf('Flash 5') != -1) || (i.indexOf('Flash 5') != -1)) { flashdetect = 5; break; } else if ((navigator.plugins[i].description.indexOf('Flash 4') != -1) || (i.indexOf('Flash 4') != -1)) { flashdetect = 4; break; } else if ((navigator.plugins[i].description.indexOf('Flash 3') != -1) || (i.indexOf('Flash 3') != -1)) { flashdetect = 3; break; } else if ((navigator.plugins[i].description.indexOf('Flash') != -1) || (i.indexOf('Flash') != -1)) { flashdetect = 1; break; } } } if (navigator.mimeTypes['application/x-shockwave-flash'] == null) { flashdetect = 0; } } } } function themovie_DoFSCommand(action,args) { if (popup_width < 1) { window.open("http://adserver.webads.nl/adclick/CID=00002b32eb39113600000000/SITE=TWEAKERS/AREA=TWK_OVERIG/AAMSZ=468X60/POSITION=SINGLE/ACC_RANDOM=1029935590"); } else { x=(screen.availWidth-popup_width)/2; y=(screen.availHeight-popup_height)/2; url = "http://adserver.webads.nl/adclick/CID=00002b32eb39113600000000/SITE=TWEAKERS/AREA=TWK_OVERIG/AAMSZ=468X60/POSITION=SINGLE/ACC_RANDOM=1029935590"; if (isIE) { adpopup = window.open(url,"adpopup","location=no,width="+popup_width+",height="+popup_height+",left="+x+",top="+y+",menubar=no,scrollbars=no,resizable=no"); } else { adpopup = window.open(url,"adpopup","location=no,innerWidth="+popup_width+",innerHeight="+popup_height+",screenX="+x+",screenY="+y+",menubar=no,scrollbars=no,resizable=no"); } } } if (isIE & isWin) { document.writeln(' \n'); } if (isIE & isWin) { document.write('= flashneeded) { document.write(''); } else { document.write(''); } } else { // other browser if (flashdetect >= flashneeded) { document.write(''); document.write(''); } else { document.write(''); } } if (fla_olderror) onerror = fla_olderror; ////
Iets zegt me dat een flash banner een stukje code mist ;)

"Supercars are made to mess around with G-forces, hypercars are made to mess around with G-strings"
Jeremy Clarkson