Answer the question
In order to leave comments, you need to log in
Flash browser support for banners on the site?
Good afternoon everyone!
To place banner ads on the site without using third-party services, what methods of determining the presence of flash support do you use?
SWFObject2 is quite an old library, is there anything new?
I couldn't find anything on the net. All links lead to SWFObject.
Either SWFObject is a panacea, or there is something new that I don't know about yet.
The main problem is the display of ads on iOS devices.
Maybe developers now stupidly define the system and don't bother with browsers?
modernizr?
What can anyone say about this?
Answer the question
In order to leave comments, you need to log in
If we abstract from the present, which Dima Turkov
rightly pointed out , and focus only on determining the presence of a Flash plugin, then the principle is very simple.
In theory, we have an entry in the plugins collection of the navigator object that can simply be found by MIME Media Type , namely application/x-shockwave-flash . In old donkeys (up to version 10) there is such a collection, but it is always empty - ActiveX rules there .
function getFlash () {
if (navigator.plugins && navigator.plugins.length) {
var object = navigator.mimeTypes['application/x-shockwave-flash'];
if (object) {
return object.enabledPlugin.description;
}
} else {
try {
var object = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if (object) {
return object.GetVariable('$version');
}
} catch (z) {}
}
}
The main problem is the display of ads on iOS devices. There is no and will not be a flush !!!!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question