Forum Moderators: open
I've got a site at <Sorry, no personal URLs. See TOS [webmasterworld.com]> that will display graphics and pricing info below the text boxes in ie but not ns. I thought I'd covered my bases but it's still not showing up. Any suggestions? Thanks in advance
[edited by: tedster at 7:15 pm (utc) on Mar. 30, 2004]
Step number one - validate your markup:
[validator.w3.org...]
My guess would be you have incorrect table tags - <tr> and <td> problems. But run the W3C validator to find out. Once you get a clean bill of health there, then we can look further if the problems comtinue on NN.
function changeTextBlock(whichPane) {
if (whichPane.selectedIndex == -1)
return false;
var newDescription;
switch (whichPane.name) {
case "MainCategory" :
newDescription = MainCategory[whichPane.selectedIndex].DescriptionText;
break;
case "SubCategory" :
newDescription = eval("SubCategory" + whichPane.form.MainCategory.options[whichPane.form.MainCategory.selectedIndex].value + "[" + whichPane.selectedIndex + "].DescriptionText");
break;
case "TwoCategory" :
newDescription = eval("TwoCategory" + whichPane.form.SubCategory.options[whichPane.form.SubCategory.selectedIndex].value + "[" + whichPane.selectedIndex + "].DescriptionText");
break;
}
if (NS4) {
eval(layerRef + '["description"].document.open()');
eval(layerRef + '["description"].document.write(newDescription)');
eval(layerRef + '["description"].document.close()');
} else if (NS6) {
eval(layerRef + '("description").innerHTML=newDescription');
} else {
eval(layerRef + '["description"].innerHTML=newDescription');
}
}
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer == 4);
var NS6 = (navigator.vendor == "Netscape6");
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var Opera = (window.opera)
if (NS4) {
layerRef="document.layers";
styleSwitch="";
} else if (IE4) {
layerRef="document.all";
styleSwitch=".style";
} else if (NS6 ¦¦ Opera) {
layerRef="document.getElementById";
styleSwitch=".style";
}