Oh dear, VBscript! I had never seen the object tag used in that manner before, now I guess I know why. That probably isn't the main issue here though.
The problem with this method of removing the 'box' (activation) security feature is that sometimes this disables some of your parameter settings for the object. But, did you try the solution with your full code? My example only used one of your objects.
Through a lucky accident, I found that this did not happen with a quickTime (tm) object if I wrote the tag using an external javascript and prefaced it with an invalid image tag. I have no idea why this worked or if t would extend to other types of objects. Here is the code I used in my external script:
Code:
function writeObject(id){
var theHTML=''
if (document.body.filters)
theHTML+='<img'
theHTML+='<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="120" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><PARAM name="SRC" VALUE="bluesstroll_03.mov"><PARAM name="AUTOPLAY" VALUE="true"><PARAM name="CONTROLLER" VALUE="false"><EMBED SRC="bluesstroll_03.mov" WIDTH="160" HEIGHT="136" AUTOPLAY="false" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>'
if (document.body.filters)
theHTML+='<font style="position:absolute;top:-15px;left:0;width:160px;height:16px;text-align:center;font:10px sans-serif;z-index:1000;background-color:#0d0d0d;cursor:default;"><a href="http://www.mediadogfilms.com/" target="_blank" style="color:white;text-decoration:none;" title="Courtesy MediaDog Films">Blues Stroll Video</a><b style="position:absolute;top:1px;right:0;border:1px solid #fff;font-size:7px;padding:1px;cursor:pointer;" title="Close" onclick="video();">X</b></font>'
else
theHTML+='<font style="display:block;position:absolute;top:-1.4em;width:160px;height:1.4em;text-align:center;font:11px sans-serif;z-index:1000;background-color:#202020;line-height:140%;cursor:default;"><a href="http://www.mediadogfilms.com/" target="_blank" style="color:white;text-decoration:none;" title="Courtesy MediaDog Films">Blues Stroll Video</a><b style="position:absolute;top:-1px;right:0;border:1px solid #fff;font-size:7px;padding:1px;cursor:pointer;line-height:100%;" title="Close" onclick="video();">X</b></font>'
document.getElementById(id).innerHTML=theHTML
}
There are a number of things in the above code that are non-standard (formating tricks) and also code for other browsers (in your case you need not worry about those, VBscript is IE only). Which brings me to another point with your code, since it is IE only, you might want to consider another method of getting the same effect that would work in more browsers. What do all your objects do? Could you supply a link to a working demo? One with the security activation box would be fine for these purposes.
Anyways, to try this accidental solution with your objects, use this external script:
Code:
function writeObject(id){
if (!document.body.filters)
return;
var theHTML=''
theHTML+='<img'
theHTML+='<OBJECT id="text" style="Z-INDEX: 105; LEFT: 16px; WIDTH: 16px; POSITION: absolute; TOP: 16px; HEIGHT: 8px"classid="clsid:B0A6BAE2-AAF0-11D0-A152-00A0C908DB96"></OBJECT><OBJECT id="VAR" style="Z-INDEX: 106; LEFT: 25px; WIDTH: 330px; POSITION: absolute; TOP: 5%; HEIGHT: 330px"classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6" ><PARAM NAME="SourceURL" VALUE=""><PARAM NAME="CoordinateSystem" VALUE="0"><PARAM NAME="HighQuality" VALUE="0"><PARAM NAME="PreserveAspectRatio" VALUE="-1"><PARAM NAME="Line0001" VALUE="SetLineStyle(1,0)"><PARAM NAME="Line0002" VALUE="SetLineColor(0,0,255)"><PARAM NAME="Line0003" VALUE="SetFillStyle(2)"><PARAM NAME="Line0004" VALUE="SetFont(\'Bertram\',30,30,0,0,0)"><PARAM NAME="Line0005" VALUE="Text(\'CENTRE VAR\',0,0)"><PARAM NAME="Line0006" VALUE="SetFillColor(0,90,200,0,90,200)"><PARAM NAME="Line0007" VALUE="SetHatchFill(1)"></OBJECT><OBJECT id="Provence" style="Z-INDEX: 107; LEFT: 160px; WIDTH: 550px; POSITION: absolute; TOP: 20%; HEIGHT: 550px"classid="clsid:369303C2-D7AC-11D0-89D5-00A0C90833E6" ><PARAM NAME="SourceURL" VALUE=""><PARAM NAME="CoordinateSystem" VALUE="0"><PARAM NAME="HighQuality" VALUE="0"><PARAM NAME="PreserveAspectRatio" VALUE="-1"><PARAM NAME="Line0001" VALUE="SetLineStyle(1,0)"><PARAM NAME="Line0002" VALUE="SetLineColor(0,255,0)"><PARAM NAME="Line0003" VALUE="SetFillStyle(0)"><PARAM NAME="Line0004" VALUE="SetFont(\'Verdona\',30,30,0,0,0)"><PARAM NAME="Line0005" VALUE="Text(\'LA PROVENCE VERTE\',0,0)"><PARAM NAME="Line0006" VALUE="SetFillColor(0,90,200,0,90,200)"><PARAM NAME="Line0007" VALUE="SetHatchFill(1)"></OBJECT>'
document.getElementById(id).innerHTML=theHTML
}
Save the above as objects.js and link it to the head using:
HTML Code:
<script type="text/javascript" src="objects.js"></script>
Call it like so in the body of your page:
HTML Code:
<div id="theObjs"></div>
<script type="text/javascript">
writeObject('theObjs');
</script>
This is to be used instead of the previous method I outlined and I have no idea if it will work with your code or not. You will also need to have your VBscript on the page in an appropriate location, probably after all this.
Still a better method would be to find, as I say, a more cross browser solution to the the effect in the first place as, this also may make avoiding the security feature unnecessary or easier to deal with.
Bookmarks