...

View Full Version : 'Allow Blocked Content' in IE



dispector
07-16-2005, 01:31 AM
everything looks fine in firefox, but when i go to view this site in IE, theres a bar that comes up at the top of the screen that asks if you want to display content IE has blocked for security reasons. I dont know why there would be security problems for the user, heres the code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<Script Language="JavaScript">
function reload() {
var reload = window.open('downloads.html','','scrollbars=no,menubar=no,height=100,width=400,resizable=no,toolbar= no,location=no,status=no');
}
// -->
</Script>
<Script Language="JavaScript">
function load2() {
var load2 = window.open('poll.html','','scrollbars=no,menubar=no,height=275,width=400,resizable=no,toolbar=no,lo cation=no,status=no');
}
// -->
</Script>
<Script Language="JavaScript">
function load() {
var load = window.open('bandpics.html','','scrollbars=no,menubar=no,height=240,width=440,resizable=no,toolbar=n o,location=no,status=no');
}
// -->
</Script>
<script type="text/javascript">


var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

</script>
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 5px;
background-color:#434343;
background-image:
url('images/bgnav.jpg');
color:#434343;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #9C9C9C;/* */
}

.menutitle2{
cursor:pointer;
margin-bottom: 5px;
background-color:#434343;
background-image:
url('images/bgnav2.jpg');
color:#434343;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #9C9C9C;/* */
}

.menutitle3{
cursor:pointer;
margin-bottom: 5px;
background-color:#434343;
background-image:
url('images/bgnav3.jpg');
color:#434343;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #9C9C9C;/* */
}

.menutitle4{
cursor:pointer;
margin-bottom: 5px;
background-color:#434343;
background-image:
url('images/bgnav4.jpg');
color:#434343;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #9C9C9C;/* */
}

.menutitle5{
cursor:pointer;
margin-bottom: 5px;
background-color:#434343;
background-image:
url('images/bgnav5.jpg');
color:#434343;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #9C9C9C;/* */
}

.submenu{
margin-bottom: 0.5em;
}
</style>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>. . . : Smithsonian Stereo : . . .</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana;
font-size: 10px;
color: #9C9C9C;
}
body {
background-color: #FAE0BD;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #FAE0BD;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FAE0BD;
}
a:hover {
text-decoration: none;
color: #9C9C9C;
}
a:active {
text-decoration: none;
color: #FAE0BD;
}
.style1 {font-size: 10px}
.style12 {color: #539E1F}
.style13 {color: #9C9C9C}
.style14 {color: #D68C11}
.style15 {color: #434343}
.style19 {color: #D91A22}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onLoad="MM_preloadImages('images/tr1.jpg','images/tr2.jpg','images/tr3.jpg')">
<div align="center">
<table width="217" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="716" height="62" align="center" valign="top"><a href="main.php?id=news"><img src="images/bs.jpg" width="700" height="62" border="0"></a></td>
</tr>
<tr>
<td align="center" valign="top"><table width="716" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4"><img src="images/mctop%20copy.jpg" width="502" height="28"></td>
<td width="10" rowspan="3"><img src="images/spacer.jpg" width="10" height="1"></td>
<td width="204"><img src="images/ir.jpg" width="204" height="28"></td>
</tr>
<tr>
<td width="32" background="images/lefside.jpg">&nbsp;</td>
<td width="9" height="600" bgcolor="#434343">&nbsp;</td>
<td width="451" align="left" valign="top" bgcolor="#434343"><?
switch ($_GET['id']) {
case 'news':
include 'news.html';
break;
case 'links':
include 'links.html';
break;
case 'contacts':
include 'contacts.html';
break;
case 'theband':
include 'theband.html';
break;
case 'themusic':
include 'themusic.html';
break;
case 'thestory':
include 'thestory.html';
break;
case 'contacts':
include 'contacts.html';
break;
case 'stereoboard':
include 'stereoboard.html';
break;
default:
include 'default.html';
}
?></td>
<td width="10" valign="top" bgcolor="#434343">&nbsp;</td>
<td align="center" valign="top" bgcolor="#434343"><table width="204" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="68"><a href="main.php?id=theband" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('theband','','images/tr1.jpg',1)"><img src="images/rt1.jpg" alt="theband" name="theband" width="68" height="160" border="0"></a></td>
<td width="68"><a href="main.php?id=themusic" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('themusic','','images/tr2.jpg',1)"><img src="images/rt2.jpg" alt="themusic" name="themusic" width="68" height="160" border="0"></a></td>
<td><a href="main.php?id=thestory" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('thestory','','images/tr3.jpg',1)"><img src="images/rt3.jpg" alt="thestory" name="thestory" width="68" height="160" border="0"></a></td>
</tr>
<tr valign="top">
<td colspan="3"><div align="center"><table width="140" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="217" valign="top"><!-- Keep all menus within masterdiv-->
<div id="masterdiv">

<div class="menutitle style13" onclick="SwitchMenu('sub1')">stereoMENU</div>
<div align="left"><span class="submenu" id="sub1">
<span class="style15"><br>
- <span class="style13">. . : </span></span><a href="opening.html" target="_self">Opening Page<br>
</a><br>
<span class="style15">- <span class="style13">. . : </span></span><a href="privacy.html" target="_self">Privacy Policy</a><br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=main">News Page </a><br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=links">Links</a><br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=contacts">Contacts</a> <br>
</span>

</div>
<div class="menutitle2 style19" onclick="SwitchMenu('sub2')">mainFEATURES</div>
<div align="left"><span class="submenu" id="sub2">
<span class="style15"><br>
- <span class="style13">. . : </span></span><span class="style13"></span><a href="main.php?id=theband">theBAND</a><br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=themusic">theMUSIC</a><br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=thestory">theSTORY</a><br>
<br>
<br>
<br>
<br>
</span>

</div>
<div class="menutitle3 style14" onclick="SwitchMenu('sub3')">bandMEDIA</div>
<span class="submenu" id="sub3">
<span class="style15"><span class="style13"> <span class="style15"><br>
-</span>(Launch In New Window)</span><br>
<br>
- <span class="style13">. . : </span><a href="javascript:load()">smithGALLERY<br>
<br>
</a></span>
<span class="style15">- </span><span class="style13">. . : </span><a href="javascript:reload()">smithDLs</a><br><br><br><br><br></span>
<div class="menutitle4 style12" onclick="SwitchMenu('sub4')">fanINTERACT</div>
<div align="left"><span class="submenu" id="sub4">
<span class="style15"> <br>
- <span class="style13">. . : </span></span><a href="javascript:load2()">smithPOLL</a><br>
<span class="style15">-<span class="style13">(</span></span>launches in new window)<br>
<br>
<span class="style15">- <span class="style13">. . : </span></span><a href="main.php?id=stereoboard">stereoBOARD</a><br>
<br>
<br>
<br>
<br>
<br>
</span><span class="submenu" id="sub5">
</span>

</div>
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#434343"><div class="menutitle5 style13" >VISIT revolutiontech</div></td>
</tr>
<tr>
<td valign="top"><div align="center"><a href="http://www.revolutiontech.com.au/" target="_blank"><span class="submenu" id="sub4"></span>Click to Support Our Host</a></div></td>
</tr>
</table>

</div></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4"><img src="images/mcbot%20copy.jpg" width="502" height="28"></td>
<td><img src="images/irb.jpg" width="204" height="28"></td>
</tr>
<tr>
<td colspan="6"><div align="center"><br>
<span class="style1"><font face="Verdana">Copyright (&copy;) 2005 Smithsonian Stereo. All Rights Reserved.</font></span> </div></td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>

_Aerospace_Eng_
07-16-2005, 01:33 AM
Once the page is uploaded on the internet if the script is harmless the warning should go away. This happens on systems with SP2 in IE. On a side note from looking at your script briefly, you shouldn't be using the language attribute in the script tags, its deprecated, type="text/javascript" however should be used.

dispector
07-16-2005, 01:34 AM
so youre saying since im viewing if from my computer, on my computer it gives me that warning?

_Aerospace_Eng_
07-16-2005, 01:35 AM
Correct.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum