Forums

This topic is locked

is this a bug or am I doing something wrong...

Posted 29 Oct 2001 23:38:03
1
has voted
29 Oct 2001 23:38:03 crazy larry posted:
Hello, The only way I know how to explain have you cut-n-paste the code and see for yourself.

Problem:
In UD, in Layout View, looking at page in Design View. I have the nav. menu on left side in a table. On the right side is "empty" table cell. In a number of ways, I can insert another cell/table on the right side to add content.

WHY IN THE ----, does the left table move!!

Example:
You have one table and this table has 1 row and 1 col.
Then you split this cell into 2 cells, ie 1 row, 2 col.
I put content in left cell and get it perfect.
Then I decide to add/split the right cell.
Why did the last move effect the left cell???

Here is the code:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v3.0
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); return x;
}
function MM_nbGroup(event, grpName) { //v3.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over" {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down" {
if ((nbArr = document[grpName]) != null)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
}

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];}}
}

//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_preloadImages('../images/nav_menu_1_down.gif','../images/nav_menu_1_over.gif','../images/nav_menu_1_overdown.gif','../images/nav_menu_3_down.gif','../images/nav_menu_3_over.gif','../images/nav_menu_3_overdown.gif','../images/nav_menu_5_down.gif','../images/nav_menu_5_over.gif','../images/nav_menu_5_overdown.gif')">
<table width="100%" height="198">
<tr>
<td>
<div align="center">
<table width="640" height="513" background="../images/background.gif">
<tr>
<td height="91" valign="top" colspan="3">
<div align="center"><img src="../images/wic_logo.gif" width="425" height="88"></div>
</td>
</tr>
<tr>
<td valign="top" width="9" background="../images/spacer.gif" height="414"> </td>
<td valign="top" width="110" background="../images/spacer.gif" height="414">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="121" align="center">
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="4" border="0"></td>
</tr>
<tr>
<td width="121"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','nav_menu_1','../images/nav_menu_1_over.gif','../images/nav_menu_1_overdown.gif',1);" onClick="MM_nbGroup('down','navbar1','nav_menu_1','../images/nav_menu_1_down.gif',1);" ><img name="nav_menu_1" src="../images/nav_menu_1.gif" width="110" height="25" border="0"></a></td>
</tr>
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="6" border="0"></td>
</tr>
<tr>
<td width="121"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','nav_menu_3','../images/nav_menu_3_over.gif','../images/nav_menu_3_overdown.gif',1);" onClick="MM_nbGroup('down','navbar1','nav_menu_3','../images/nav_menu_3_down.gif',1);" ><img name="nav_menu_3" src="../images/nav_menu_3.gif" width="110" height="25" border="0"></a></td>
</tr>
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="6" border="0"></td>
</tr>
<tr>
<td width="121"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','nav_menu_5','../images/nav_menu_5_over.gif','../images/nav_menu_5_overdown.gif',1);" onClick="MM_nbGroup('down','navbar1','nav_menu_5','../images/nav_menu_5_down.gif',1);" ><img name="nav_menu_5" src="../images/nav_menu_5.gif" width="110" height="25" border="0"></a></td>
</tr>
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="6" border="0"></td>
</tr>
<tr>
<td width="121"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','nav_menu_7','../images/nav_menu_7_over.gif','../images/nav_menu_7_overdown.gif',1);" onClick="MM_nbGroup('down','navbar1','nav_menu_7','../images/nav_menu_7_down.gif',1);" ><img name="nav_menu_7" src="../images/nav_menu_7.gif" width="110" height="25" border="0"></a></td>
</tr>
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="6" border="0"></td>
</tr>
<tr>
<td width="121"><a href="#" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','nav_menu_9','../images/nav_menu_9_over.gif','../images/nav_menu_9_overdown.gif',1);" onClick="MM_nbGroup('down','navbar1','nav_menu_9','../images/nav_menu_9_down.gif',1);" ><img name="nav_menu_9" src="../images/nav_menu_9.gif" width="110" height="25" border="0"></a></td>
</tr>
<tr>
<td width="121"><img src="../images/spacer.gif" width="110" height="1" border="0"></td>
</tr>
</table>
</div>
</td>
<td width="487"></td>
</tr>
<tr>
<td height="1"><img height="1" width="3" src="/images/spacer.gif"></td>
<td height="1"><img height="1" width="110" src="/images/spacer.gif"></td>
<td height="1"><img height="1" width="3" src="/images/spacer.gif"></td>
</tr>
</table>
<font size="1">This site is best viewed with Internet Explore 4.0 and
above</font></div>
</td>
</tr>
</table>
</body>
</html>


Reply to this topic