Text size change on clicking a hyperlink

N

nick

After adding a dynamic button to a page with FP2003, clicking the button in
IE6 makes all the fonts huge, and the Text Size in the Explorer's menu
changes from Medium to Largest. When I click Refresh, the page returns to
the normal (Medium) view. The button is from the "Web Components" FP menu
and links to a downloadable file.

I've seen a similar problem before when a click on a hyperlink in IE caused
fonts to be enlarged for a few seconds until a new page is loaded.

What can be wrong there?

Thanks.
 
J

Jim Buyens

Please post the URL of the problem page to this thread.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
N

Nick

I have removed the following from the button code, and the problem seems to
have gone away.

onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/FsDownBtn2.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/FsDownBtn1.jpg')"

The button code:

<a href="../download/Product.msi" class="textmargin">
<img border="0" id="img1" src="images/FsDownBtn3.jpg" height="36"
width="180" alt="Download Product"
onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/FsDownBtn1.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/FsDownBtn3.jpg')"


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_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;
}
 
Top