Another way for flash slideshows to activate ActiveX controls before they can be used-experience exchange
Source: Internet
Author: User
Microsoft for various reasons, after SP2 restrictions on the use of IE ActiveX mode, that is, in the page ActiveX has a virtual box, users need to click once to normal interaction. Flash is embedded as an ActiveX in the Web page, so it will also be implicated, only by JS embedded Flash to solve this problem. No flash version detection, if the version of the browser Flash plugin version is not enough, or can not display your SWF file, or will pop up an ActiveX confirmation installation box-this box for many users is very scary, online search for half a day, no one about the slide ad code, There is no way, I studied, after the test passed.
First inzones, inserting references:
The Global.js code is as follows:
Copy CodeThe code is as follows:
function My_getbyid (ID)
{
ITM = null;
if (document.getElementById)
{
ITM = document.getElementById (ID);
}
else if (document.all)
{
ITM = Document.all[id];
}
else if (document.layers)
{
ITM = Document.layers[id];
}
return ITM;
}
function Sunad (element,url,width,height,images,links,texts)
{
if (!my_getbyid (Element)) return;
var str = ';
str + = ' ';
str + = '';
str + = '';
str + = '';
str + = '';
str + = '';
My_getbyid (Element). InnerHTML = str;
}
Where you need to place the slides, overwrite them with the code below, or write the following code separately as a file call,
If the file name is ad.asp, it is called in the slide area:
Copy CodeThe code is as follows:
In the code above: var focus = ' http://www.abc.com/ad/focus.swf ';
The focus.swf of this sentence is flash playback file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.