An exclusive gaming industry community targeted
to, and designed for Professionals, Businesses
and Students in the sectors and industries
of Gaming, New Media and the Web, all closely
related with it's Business and Industry.
A Rich content driven service including articles,
contributed discussion, news, reviews, networking, downloads,
and debate.
We strive to cater for cultural influencers,
technology decision makers, early adopters and business leaders in the gaming industry.
A medium to share your or contribute your ideas,
experiences, questions and point of view or network
with other colleagues here at iVirtua Community.
As you may likely be aware, the latest versions of Internet Explorer and Opera mean users are forced to click on plugins (movies, sound, Flash and Java applets). In other words, anything inside object, embed or applet tags.
Thankfully, there is a way around this. Microsoft has documented some workarounds.
Code:
// only execute code if 'getElementsByTagName' and 'outerHTML' are supported
if (document.getElementsByTagName && document.body.outerHTML) {
// repeat code for each affected tag
var tags = ['object','embed','applet'];
for (var i in tags) {
// get all elements with tag
var objs = document.getElementsByTagName(tags[i]);
for (var j=0;j < objs.length;j++) {
var obj = objs.item(j);
// find param tags within object
var params = obj.getElementsByTagName('param');
var inner = '';
// if there are params, but param tags can't be found within innerHTML
if (params.length && !/<param/i.test(obj.innerHTML))
// add all param tags to 'inner' string
for (var x=0;x < params.length;x++)
inner += params.item(x).outerHTML;
// put 'inner' string with param tags in the middle of the outerHTML
obj.outerHTML = obj.outerHTML.replace('>', '>' + inner);
}
}
}