The new security pack that we were supposed to download for IE is giving me static when I access the main page of my own website. It gives me the message, “To help protect your security, IE has restricted this file from showing active content that could access your computer.”
I have a script on the page that I got from somewhere, such that when you click an image it goes to a page based on your choice in a drop-down menu. The code looks like this:
<head>
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=ref;}
else {if (lowtarget=="_top") {top.location=ref;}
else {if (lowtarget=="_blank") {window.open(ref);}
else {if (lowtarget=="_parent") {parent.location=ref;}
else {parent.frames[target].location=ref;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_top";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
</head>
<!-- snip snip snip -->
<form name="quicklist" action="dummy" method="post">
<select name="choice" size="1">
<option value="">Select a station</option>
<option value="blue/acadie/index.html">Acadie</option>
<option value="green/angrignon/index.html">Angrignon</option>
<!-- and so forth -->
</select>
<img src = "rnav.gif" align=absmiddle onClick="jump(document.quicklist); return false" height = 40 width = 40 alt = "Click here to go to the indicated station"></form>
I’d like to know what’s wrong with this script that it’s provoking this message, as other websites with similar scripts don’t seem to do so. Thoughts?