Z
Zambien
Well, it's been about a week and I still can't figure this problem
out. I've cut the html down to it's bare minimum and when I click on
the select buttons in NS, the table gets all skewed. I've changed
everything I can think of on the page and it's still not right.
Here's the cut down html if anyone will please look at it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Investment Transfer</title>
<script language="javascript1.1" src="js/ua.js"></script>
<script language="javascript1.1" src="js/styleLF.js"></script>
<script language="javascript1.1" src="js/source_popup.js"></script>
<script language="javascript1.1" src="js/prod_popup.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var param = "";
function showNextFrame() {
// Make sure the bottom frame is blank
// Submit the form
document.FundToFundTransferForm.submit();
}
function clearOtherFrames() {
}
function handleFromRadioButton(prodcode, sourcecode) {
document.FundToFundTransferForm.prd_code.value = prodcode;
document.FundToFundTransferForm.src_code.value = sourcecode;
showNextFrame();
}
function setFrmHeight(){
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function showStep2() {
document.step2.visibility='show';
}
function handleSelectButton(prodcode, id) {
clearOtherFrames();
expandMenu(prodcode);
setFrmHeight();
var x = document.getElementById(id).offsetLeft;
var y = document.getElementById(id).offsetTop;
//alert('id= ' + id + ' x=' + x + ' y=' + y);
scroll(x,y);
}
function expandMenu(prodcode) {
var closed = new Image();
closed.src = "images/select_button.gif";
var opened = new Image();
opened.src = "images/select_disabled_button.gif";
if(prodcode == "HJ") {
document.getElementById("menu_row1_HJ").src = opened.src;
document.getElementById("sm_row1_HJ_0").style.display = "block";
document.getElementById("sm_row2_HJ_0").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_HJ_0").checked = "";
document.getElementById("sm_row1_HJ_1").style.display = "block";
document.getElementById("sm_row2_HJ_1").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_HJ_1").checked = "";
}
else {
document.getElementById("menu_row1_HJ").src = closed.src;
document.getElementById("sm_row1_HJ_0").style.display = "none";
document.getElementById("sm_row2_HJ_0").style.display = "none";
document.getElementById("sm_row1_HJ_1").style.display = "none";
document.getElementById("sm_row2_HJ_1").style.display = "none";
}
if(prodcode == "93") {
document.getElementById("menu_row1_93").src = opened.src;
document.getElementById("sm_row1_93_0").style.display = "block";
document.getElementById("sm_row2_93_0").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_93_0").checked = "";
document.getElementById("sm_row1_93_1").style.display = "block";
document.getElementById("sm_row2_93_1").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_93_1").checked = "";
}
else {
document.getElementById("menu_row1_93").src = closed.src;
document.getElementById("sm_row1_93_0").style.display = "none";
document.getElementById("sm_row2_93_0").style.display = "none";
document.getElementById("sm_row1_93_1").style.display = "none";
document.getElementById("sm_row2_93_1").style.display = "none";
}
}
function hideAllSubMenus() {
var closed = new Image();
closed.src = "images/select_button.gif";
var opened = new Image();
opened.src = "images/select_disabled_button.gif";
document.getElementById("menu_row1_HJ").src = closed.src;
document.getElementById("sm_row1_HJ_0").style.display = "none";
document.getElementById("sm_row2_HJ_0").style.display = "none";
document.getElementById("sm_row1_HJ_1").style.display = "none";
document.getElementById("sm_row2_HJ_1").style.display = "none";
document.getElementById("menu_row1_93").src = closed.src;
document.getElementById("sm_row1_93_0").style.display = "none";
document.getElementById("sm_row2_93_0").style.display = "none";
document.getElementById("sm_row1_93_1").style.display = "none";
document.getElementById("sm_row2_93_1").style.display = "none";
}
function clearOtherFrames() {
}
function doOnLoad() {
//initArray();
hideAllSubMenus();
clearOtherFrames();
}
// End -->
</script>
</head>
<body onload="setFrmHeight();doOnLoad()">
<form name="FundToFundTransferForm" method="post" target="frame2"
action="fundToFund2.do">
<input type="hidden" name="src_code" value="">
<input type="hidden" name="prd_code" value="">
<input type="hidden" name="src_name" value="">
<input type="hidden" name="prd_name" value="">
<table border="0" cellspacing="0" cellpadding="0">
<!--width="625"-->
<tr>
<td id="button_locationHJ" colspan="7">
<IMG SRC="images/spacer.gif" HEIGHT=5 BORDER=0 ALT=""></td>
</tr>
<tr class="menu1">
<td colspan="2"> </td>
<td width="80" align="left" valign="bottom"><img id="menu_row1_HJ"
src="images/select_button.gif"
onClick="handleSelectButton('HJ', 'button_locationHJ')" border="0"
/></td>
<td width="250"> <STRONG><a href="javascriptrodPopUp('HJ')">
EMPLOYEE ENTERGY STOCK</a></STRONG></td>
<td width="80" align="left"><STRONG>37.4311</STRONG></td>
<td width="160" colspan="2"
align="left"><STRONG>$2,049.35</STRONG></td>
</tr>
<tr>
<td colspan="7"><IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5
ORDER=0 ALT=""></td>
</tr>
<tr class="submenu" id="sm_row1_HJ_0">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="*"
onclick="handleFromRadioButton('HJ', '*')"
disabled="disabled" id="sm_radio_HJ_0">
<STRONG>
ALL SOURCES
</STRONG></td>
<td width="80" align="left">37.4311</td>
<td width="90" align="left">$2,049.35</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_HJ_0"><td colspan="6"><IMG
SRC="images/spacer.gif" WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
<tr class="submenu" id="sm_row1_HJ_1">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="4"
onclick="handleFromRadioButton('HJ', '4')"
disabled="disabled" id="sm_radio_HJ_1">
<STRONG>
COMPANY MATCH-0.70
ONLY
</STRONG></td>
<td width="80" align="left">37.4311</td>
<td width="90" align="left">$2,049.35</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_HJ_1"><td colspan="6">
<IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5 BORDER=0
ALT=""></td></tr>
<tr>
<td id="button_location93" colspan="7"><IMG SRC="images/spacer.gif"
HEIGHT=5 BORDER=0 ALT=""></td>
</tr>
<tr class="menu1">
<td colspan="2"> </td>
<td width="80" align="left" valign="bottom"><img id="menu_row1_93"
src="images/select_button.gif"
onClick="handleSelectButton('93', 'button_location93')" border="0"
/></td>
<td width="250"> <STRONG><a href="javascriptrodPopUp('93')">
BLUE CHIP GROWTH FUND</a></STRONG></td>
<td width="80" align="left"><STRONG>1,113.2650</STRONG></td>
<td width="160" colspan="2"
align="left"><STRONG>$30,859.70</STRONG></td>
</tr>
<tr>
<td colspan="7"><IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5
ORDER=0 ALT=""></td>
</tr>
<tr class="submenu" id="sm_row1_93_0">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="*"
onclick="handleFromRadioButton('93', '*')"
disabled="disabled" id="sm_radio_93_0">
<STRONG>
ALL SOURCES
</STRONG></td>
<td width="80" align="left">1,113.2650</td>
<td width="90" align="left">$30,859.70</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_93_0"><td colspan="6">
<IMG SRC="images/spacer.gif"
WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
<tr class="submenu" id="sm_row1_93_1">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="A"
onclick="handleFromRadioButton('93', 'A')" id="sm_radio_93_1">
<STRONG>
BEFORE-TAX
ONLY
</STRONG></td>
<td width="80" align="left">816.7870</td>
<td width="90" align="left">$22,641.34</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_93_1"><td colspan="6"><IMG
SRC="images/spacer.gif"
WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
</table>
</form>
</body>
</html>
out. I've cut the html down to it's bare minimum and when I click on
the select buttons in NS, the table gets all skewed. I've changed
everything I can think of on the page and it's still not right.
Here's the cut down html if anyone will please look at it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Investment Transfer</title>
<script language="javascript1.1" src="js/ua.js"></script>
<script language="javascript1.1" src="js/styleLF.js"></script>
<script language="javascript1.1" src="js/source_popup.js"></script>
<script language="javascript1.1" src="js/prod_popup.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var param = "";
function showNextFrame() {
// Make sure the bottom frame is blank
// Submit the form
document.FundToFundTransferForm.submit();
}
function clearOtherFrames() {
}
function handleFromRadioButton(prodcode, sourcecode) {
document.FundToFundTransferForm.prd_code.value = prodcode;
document.FundToFundTransferForm.src_code.value = sourcecode;
showNextFrame();
}
function setFrmHeight(){
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function showStep2() {
document.step2.visibility='show';
}
function handleSelectButton(prodcode, id) {
clearOtherFrames();
expandMenu(prodcode);
setFrmHeight();
var x = document.getElementById(id).offsetLeft;
var y = document.getElementById(id).offsetTop;
//alert('id= ' + id + ' x=' + x + ' y=' + y);
scroll(x,y);
}
function expandMenu(prodcode) {
var closed = new Image();
closed.src = "images/select_button.gif";
var opened = new Image();
opened.src = "images/select_disabled_button.gif";
if(prodcode == "HJ") {
document.getElementById("menu_row1_HJ").src = opened.src;
document.getElementById("sm_row1_HJ_0").style.display = "block";
document.getElementById("sm_row2_HJ_0").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_HJ_0").checked = "";
document.getElementById("sm_row1_HJ_1").style.display = "block";
document.getElementById("sm_row2_HJ_1").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_HJ_1").checked = "";
}
else {
document.getElementById("menu_row1_HJ").src = closed.src;
document.getElementById("sm_row1_HJ_0").style.display = "none";
document.getElementById("sm_row2_HJ_0").style.display = "none";
document.getElementById("sm_row1_HJ_1").style.display = "none";
document.getElementById("sm_row2_HJ_1").style.display = "none";
}
if(prodcode == "93") {
document.getElementById("menu_row1_93").src = opened.src;
document.getElementById("sm_row1_93_0").style.display = "block";
document.getElementById("sm_row2_93_0").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_93_0").checked = "";
document.getElementById("sm_row1_93_1").style.display = "block";
document.getElementById("sm_row2_93_1").style.display = "block";
// ensure radio button is not checked
document.getElementById("sm_radio_93_1").checked = "";
}
else {
document.getElementById("menu_row1_93").src = closed.src;
document.getElementById("sm_row1_93_0").style.display = "none";
document.getElementById("sm_row2_93_0").style.display = "none";
document.getElementById("sm_row1_93_1").style.display = "none";
document.getElementById("sm_row2_93_1").style.display = "none";
}
}
function hideAllSubMenus() {
var closed = new Image();
closed.src = "images/select_button.gif";
var opened = new Image();
opened.src = "images/select_disabled_button.gif";
document.getElementById("menu_row1_HJ").src = closed.src;
document.getElementById("sm_row1_HJ_0").style.display = "none";
document.getElementById("sm_row2_HJ_0").style.display = "none";
document.getElementById("sm_row1_HJ_1").style.display = "none";
document.getElementById("sm_row2_HJ_1").style.display = "none";
document.getElementById("menu_row1_93").src = closed.src;
document.getElementById("sm_row1_93_0").style.display = "none";
document.getElementById("sm_row2_93_0").style.display = "none";
document.getElementById("sm_row1_93_1").style.display = "none";
document.getElementById("sm_row2_93_1").style.display = "none";
}
function clearOtherFrames() {
}
function doOnLoad() {
//initArray();
hideAllSubMenus();
clearOtherFrames();
}
// End -->
</script>
</head>
<body onload="setFrmHeight();doOnLoad()">
<form name="FundToFundTransferForm" method="post" target="frame2"
action="fundToFund2.do">
<input type="hidden" name="src_code" value="">
<input type="hidden" name="prd_code" value="">
<input type="hidden" name="src_name" value="">
<input type="hidden" name="prd_name" value="">
<table border="0" cellspacing="0" cellpadding="0">
<!--width="625"-->
<tr>
<td id="button_locationHJ" colspan="7">
<IMG SRC="images/spacer.gif" HEIGHT=5 BORDER=0 ALT=""></td>
</tr>
<tr class="menu1">
<td colspan="2"> </td>
<td width="80" align="left" valign="bottom"><img id="menu_row1_HJ"
src="images/select_button.gif"
onClick="handleSelectButton('HJ', 'button_locationHJ')" border="0"
/></td>
<td width="250"> <STRONG><a href="javascriptrodPopUp('HJ')">
EMPLOYEE ENTERGY STOCK</a></STRONG></td>
<td width="80" align="left"><STRONG>37.4311</STRONG></td>
<td width="160" colspan="2"
align="left"><STRONG>$2,049.35</STRONG></td>
</tr>
<tr>
<td colspan="7"><IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5
ORDER=0 ALT=""></td>
</tr>
<tr class="submenu" id="sm_row1_HJ_0">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="*"
onclick="handleFromRadioButton('HJ', '*')"
disabled="disabled" id="sm_radio_HJ_0">
<STRONG>
ALL SOURCES
</STRONG></td>
<td width="80" align="left">37.4311</td>
<td width="90" align="left">$2,049.35</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_HJ_0"><td colspan="6"><IMG
SRC="images/spacer.gif" WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
<tr class="submenu" id="sm_row1_HJ_1">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="4"
onclick="handleFromRadioButton('HJ', '4')"
disabled="disabled" id="sm_radio_HJ_1">
<STRONG>
COMPANY MATCH-0.70
ONLY
</STRONG></td>
<td width="80" align="left">37.4311</td>
<td width="90" align="left">$2,049.35</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_HJ_1"><td colspan="6">
<IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5 BORDER=0
ALT=""></td></tr>
<tr>
<td id="button_location93" colspan="7"><IMG SRC="images/spacer.gif"
HEIGHT=5 BORDER=0 ALT=""></td>
</tr>
<tr class="menu1">
<td colspan="2"> </td>
<td width="80" align="left" valign="bottom"><img id="menu_row1_93"
src="images/select_button.gif"
onClick="handleSelectButton('93', 'button_location93')" border="0"
/></td>
<td width="250"> <STRONG><a href="javascriptrodPopUp('93')">
BLUE CHIP GROWTH FUND</a></STRONG></td>
<td width="80" align="left"><STRONG>1,113.2650</STRONG></td>
<td width="160" colspan="2"
align="left"><STRONG>$30,859.70</STRONG></td>
</tr>
<tr>
<td colspan="7"><IMG SRC="images/spacer.gif" WIDTH=400 HEIGHT=5
ORDER=0 ALT=""></td>
</tr>
<tr class="submenu" id="sm_row1_93_0">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="*"
onclick="handleFromRadioButton('93', '*')"
disabled="disabled" id="sm_radio_93_0">
<STRONG>
ALL SOURCES
</STRONG></td>
<td width="80" align="left">1,113.2650</td>
<td width="90" align="left">$30,859.70</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_93_0"><td colspan="6">
<IMG SRC="images/spacer.gif"
WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
<tr class="submenu" id="sm_row1_93_1">
<td colspan="3"> </td><td width="250" align="left"
valign="bottom">
<input type="radio" name="nothing" value="A"
onclick="handleFromRadioButton('93', 'A')" id="sm_radio_93_1">
<STRONG>
BEFORE-TAX
ONLY
</STRONG></td>
<td width="80" align="left">816.7870</td>
<td width="90" align="left">$22,641.34</td>
<td width="70" align="left"> </td>
</tr>
<tr class="submenu" id="sm_row2_93_1"><td colspan="6"><IMG
SRC="images/spacer.gif"
WIDTH=400 HEIGHT=5 BORDER=0 ALT=""></td></tr>
</table>
</form>
</body>
</html>