Below is code for the dwt that illustrates the problem.
- Stick some gifs in the top cell. I used a logo of 385w x 160h pixels and a
row of 7 FP inteactive buttons 100px wide each.
-Next, Make a page using the dwt. Text in the right cell looks OK in
preview.
- Now put a gif in the left cell that is slightly narrower than the width of
the cell so it doesn't force the cell wider. Watch what happens to the size
of the right cell in design view and preview. The behavior is even more
queer as you resize the left gif. Many hours have been burned on this as
have I.
Code follows:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!-- #BeginEditable "doctitle" -->
<title>test dwt</title>
<!-- #EndEditable -->
<script language="JavaScript">
<!--
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_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;
}
// -->
</script>
</head>
<body
onload="FP_preloadImgs(/*url*/'../images/button2A.jpg',/*url*/'../images/button29.jpg',/*url*/'../images/button3F.jpg',/*url*/'../images/button3E.jpg',/*url*/'../images/button44.jpg',/*url*/'../images/button43.jpg',/*url*/'../images/button14.jpg',/*url*/'../images/button17.jpg',/*url*/'../images/button34.jpg',/*url*/'../images/button33.jpg',/*url*/'../images/button37.jpg',/*url*/'../images/button36.jpg',/*url*/'../images/button147.jpg',/*url*/'../images/button146.jpg',/*url*/'../images/button14A.jpg',/*url*/'../images/button149.jpg',/*url*/'../images/button14D.jpg',/*url*/'../images/button14C.jpg',/*url*/'../images/button150.jpg',/*url*/'../images/button14F.jpg',/*url*/'../images/button153.jpg',/*url*/'../images/button152.jpg',/*url*/'../images/button156.jpg',/*url*/'../images/button155.jpg',/*url*/'../images/button159.jpg',/*url*/'../images/button158.jpg')">
<div align="center">
<table cellpadding="0" cellspacing="0" width="800" height="562">
<!-- MSTableType="layout" -->
<tr>
<td valign="top" colspan="2" height="176">
<p><img border="0" src="../NK_logo3.gif" width="385" height="160"><p><a
href="../index.htm">
<img border="0" id="img8" src="../images/button145.jpg" height="25"
width="90" alt="Home"
onmouseover="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button146.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button145.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img8',/*url*/'../images/button147.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img8',/*url*/'../images/button146.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Home"></a><a href="../share.htm"><img border="0" id="img9"
src="../images/button148.jpg" height="25" width="100" alt="Share"
onmouseover="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button149.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button148.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img9',/*url*/'../images/button14A.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img9',/*url*/'../images/button149.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Share"></a><a href="../suggest.htm"><img border="0" id="img10"
src="../images/button14B.jpg" height="25" width="100" alt="Suggest"
onmouseover="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button14C.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button14B.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img10',/*url*/'../images/button14D.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img10',/*url*/'../images/button14C.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Suggest"></a><a href="../register.htm"><img border="0" id="img11"
src="../images/button14E.jpg" height="25" width="100" alt="Register"
onmouseover="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button14F.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button14E.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img11',/*url*/'../images/button150.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img11',/*url*/'../images/button14F.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Register"></a><a href="../archives.htm"><img border="0" id="img12"
src="../images/button151.jpg" height="25" width="100" alt="Archives"
onmouseover="FP_swapImg(1,0,/*id*/'img12',/*url*/'../images/button152.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img12',/*url*/'../images/button151.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img12',/*url*/'../images/button153.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img12',/*url*/'../images/button152.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Archives"></a><a href="../contactus.htm"><img border="0" id="img13"
src="../images/button154.jpg" height="25" width="100" alt="Contact"
onmouseover="FP_swapImg(1,0,/*id*/'img13',/*url*/'../images/button155.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img13',/*url*/'../images/button154.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img13',/*url*/'../images/button156.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img13',/*url*/'../images/button155.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Contact"></a><a href="../send_friend.htm"><img border="0"
id="img14" src="../images/button157.jpg" height="25" width="120" alt="Send to
a friend"
onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'../images/button158.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'../images/button157.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'../images/button159.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'../images/button158.jpg')"
fp-style="fp-btn: Braided Row 4; fp-proportional: 0; fp-orig: 0"
fp-title="Send to a friend"></a></td>
</tr>
<tr>
<td valign="top" width="267">
<!-- MSCellType="empty" -->
<!-- #BeginEditable "left%20panel" --> <!-- #EndEditable --></td>
<td valign="top" height="309" width="533"><!-- #BeginEditable "core" -->
zxzx<!-- #EndEditable --></td>
</tr>
<tr>
<td valign="top" colspan="2" height="77">
</td>
</tr>
</table>
</div>
</body>
</html>