active content problem in Internet Explorer
active content problem in Internet Explorer
(OP)
hello,
so im experiencing a problem with active content with a shockwave file. i already solved this problem for flash files, but i cant seem to solve it for shockwave files. i keep getting a popup about activex content on the page in internet explorer.
this is what i have for a code:
"<center>
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="h ttp://down load.macro media.com/ pub/shockw ave/cabs/d irector/sw .cab#versi on=8,5,0,0" width="370" height="330" title="test">
<param name="src" value="images/test-semi.dcr">
<embed src="images/test-semi.dcr" pluginspage="http://www.macromedia.com/shockwave/download/" width="370" height="330"></embed>
</object>
</center>"
what needs to be changed in order to make it work? i already got the "AC_ActiveX.js" and the "AC_RunActiveContent.js" file found on macromedia site....i just dont know exactly what to do.
can someone please help me. highly appreciated!
thx a million!
RocketGuns
so im experiencing a problem with active content with a shockwave file. i already solved this problem for flash files, but i cant seem to solve it for shockwave files. i keep getting a popup about activex content on the page in internet explorer.
this is what i have for a code:
"<center>
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="h
<param name="src" value="images/test-semi.dcr">
<embed src="images/test-semi.dcr" pluginspage="http://www.macromedia.com/shockwave/download/" width="370" height="330"></embed>
</object>
</center>"
what needs to be changed in order to make it work? i already got the "AC_ActiveX.js" and the "AC_RunActiveContent.js" file found on macromedia site....i just dont know exactly what to do.
can someone please help me. highly appreciated!
thx a million!
RocketGuns
RE: active content problem in Internet Explorer
Kenneth Kawamoto
www.materiaprima.co.uk
RE: active content problem in Internet Explorer
but im sorry, im not sure what to do. how do i do that? im not well known with javascript? is it possible, if its not too much to ask, that you edit my script to so that it works?
RE: active content problem in Internet Explorer
<center>
<script language="JavaScript" type="text/javascript" src="dcr.js"></script>
</center>
2. Create a plain text document in the same place as your HTML file resides and name it "dcr.js".
3. Write this JavaScript in dcr.js and save:
var dcr = "";
dcr += "<object classid=\"clsid:166B1BCA-3F9C-11CF-8075-444553540000\" codebase=\"h
dcr += "<param name=\"src\" value=\"images/test-semi.dcr\">\n";
dcr += "<embed src=\"images/test-semi.dcr\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" width=\"370\" height=\"330\"></embed>\n";
dcr += "</object>";
document.write(dcr);
document.close();
Kenneth Kawamoto
www.materiaprima.co.uk
RE: active content problem in Internet Explorer
thx again!
RE: active content problem in Internet Explorer
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript" type="text/javascript" src="dcr3.js">
</script>
then in dcr3.js (dont mind the name) i have the following:
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'htt
'width', '760',
'height', '215',
'src', 'flash header v2.2',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flash header v2.2',
'bgcolor', '#c8d4e2',
'name', 'flash header v2.2',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'flash header v2.2',
'salign', '
); //end AC code
}
this script, in combination with the <!-- commands is working fine...my flash animations run without allow content problem. but! this line "<!-- saved from url=(0013)about:internet -->" causes my normal images on my website not to open in new windows. (enlarges versions of some images i have)....it does work in firefox, but not in internet explorer...popups dont work.
when i remove the "<!-- saved from url=(0013)about:internet -->" everything works, only then i get this yellow allow content notification border in internet explorer.
what should i do?
the next script didnt work either:
var dcr2 = "";
dcr2 += "<object classid=\"clsid:166B1BCA-3F9C-11CF-8075-444553540000\"
codebase=\"h
height=\"215\" title=\"VisuaWeb.nl\">\n";
dcr2 += "<param name=\"src\" value=\"flash header v2.2.swf\">\n";
dcr2 += "<embed src=\"flash header v2.2.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" width=\"760\"
height=\"215\"></embed>\n";
dcr2 += "</object>";
document.write(dcr2);
document.close();
RE: active content problem in Internet Explorer
This tells IE to use internet security zone. Will it work if you put your files in the web server?
As for the second script, you need to change the value of classid, codebase, and pluginspage to the ones for Flash SWF. Currently they are showing the values for Director DCR.
Kenneth Kawamoto
www.materiaprima.co.uk
RE: active content problem in Internet Explorer
with web server do you mean online?
RE: active content problem in Internet Explorer
why does "<!-- saved from url=(0013)about:internet -->" work online and not offline?
thx again!
RE: active content problem in Internet Explorer
so i tried a part of my website on my sisters old computer, she has IE 6.0...and went to the page where the shockwave file was on. it said it needed shockwave and started installing it. when installed it restarted the explorer and loaded the shockwave file...at 75% loading or so it gave the next error and shut down (internet explorer)
http://i
any idea why that is?
RE: active content problem in Internet Explorer
<http://
Kenneth Kawamoto
www.materiaprima.co.uk
RE: active content problem in Internet Explorer
thx again for your help. i appreciate it.
RE: active content problem in Internet Explorer
I am having similar problems with just simple Java scripts in an html file.
I am trying an ad banner rotating program, with a "style" and "script" defined in the "head" section and a couple of "table" in the "body" section that bring up the images and the captions:
===================================
<!--
Style script in the head of the page.
//-->
<style>
.Caption {
font-family: Arial;
font-weight: bold;
color: #123456;
}
</style>
===================================
<!--
Script in the head of the page.
//-->
<script>
// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.
var SlideShowSpeed = 3000;
var CrossFadeDuration = 3;
var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
Picture[1] = 'Image001.jpg';
Picture[2] = 'Image002.jpg';
Picture[3] = 'Image003.jpg';
Caption[1] = "This is the first caption.";
Caption[2] = "This is the second caption.";
Caption[3] = "This is the third caption.";
var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}
function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
</script>
===================================
<!--
Tables in "body"
//-->
<body onload=runSlideShow() bgcolor=#000000>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=350 height=280>
<img src=Image001.jpg name=PictureBox width=350 height=280>
</td>
</tr>
<tr>
<td id=CaptionBox class=Caption align=center bgcolor=#fedcba>
This is the default caption.
</td>
</tr>
</table>
===================================
How do I get IE to stop the popup and not ask the user to allow the blocked content? Please help!
Thanks,
Phil