L
louise
Win XP Pro, SP2, IE 6 SP2 and Frontpage 2003
I created a website in FP 2003 and I used the interactive buttons.
When I run the index.htm in IE 6, it blocks "active content" and
what it seems to be blocking is the buttons turning color when
moused over and/or clicked.
I'm disturbed because I don't want to put a site on the web that
people will be afraid to open because they think they're getting
some kind of virus or spamware message. The people who will be
accessing this site will probably not be particularly sophisticated
in these areas.
Does FP provide buttons that its own browser then rejects? And if
so, what do I do next?
TIA
Louise
This is what I think is the relevant code
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array();
for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps
[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs
.src=a; }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el)
return el;
if(o.id==id || o.name==id) return o; if(o.childNodes)
c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el)
return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if
(el) return el; } }
return null;
}
// -->
</script>
</head>
<body background="graylines.gif" topmargin="0" leftmargin="0"
marginheight="0" onload="FP_preloadImgs(/*url*/'button18.jpg', /
*url*/'button19.jpg', /*url*/'button42.jpg', /*url*/'button45.jpg',
/*url*/'button46.jpg', /*url*/'button47.jpg', /
*url*/'button48.jpg', /*url*/'button49.jpg', /*url*/'button50.jpg',
/*url*/'button52.jpg', /*url*/'button56.jpg')">
<div align="center">
<table border="0" width="82%" bgcolor="#FFFFFF" cellspacing="0"
cellpadding="0" height="6">
<tr>
I created a website in FP 2003 and I used the interactive buttons.
When I run the index.htm in IE 6, it blocks "active content" and
what it seems to be blocking is the buttons turning color when
moused over and/or clicked.
I'm disturbed because I don't want to put a site on the web that
people will be afraid to open because they think they're getting
some kind of virus or spamware message. The people who will be
accessing this site will probably not be particularly sophisticated
in these areas.
Does FP provide buttons that its own browser then rejects? And if
so, what do I do next?
TIA
Louise
This is what I think is the relevant code
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array();
for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps
[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs
.src=a; }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el)
return el;
if(o.id==id || o.name==id) return o; if(o.childNodes)
c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el)
return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if
(el) return el; } }
return null;
}
// -->
</script>
</head>
<body background="graylines.gif" topmargin="0" leftmargin="0"
marginheight="0" onload="FP_preloadImgs(/*url*/'button18.jpg', /
*url*/'button19.jpg', /*url*/'button42.jpg', /*url*/'button45.jpg',
/*url*/'button46.jpg', /*url*/'button47.jpg', /
*url*/'button48.jpg', /*url*/'button49.jpg', /*url*/'button50.jpg',
/*url*/'button52.jpg', /*url*/'button56.jpg')">
<div align="center">
<table border="0" width="82%" bgcolor="#FFFFFF" cellspacing="0"
cellpadding="0" height="6">
<tr>