Problem med popups i netscape!!!!!
Jeg har lavet en side med en dropdownmenu og på samme tid 2 popup tables.og alt virker hver for sig i netscape og IE
men når jeg sætter dem sammen virker texten i popupsne ikke i NS....
Det forstår jeg intet af, da der ikke skulle være nogle konflikter med ID\'er eller noget...
Hvordan løses dette problem????
sådan ser koden ud:
<html>
<head>
<link rel=\"stylesheet\" type=\"text/css\" href=\"./style.css\">
<script language=\"JavaScript\" src=\"navcond.js\"></script>
<script language=\"JavaScript\">
/*
Top Navigational Bar II (By Mike Hall)
Last updated: 00/05/08
Permission granted and modified by Dynamicdrive.com to include script in archive
For this and 100\'s more DHTML scripts, visit http://dynamicdrive.com
*/
var myNavBar1 = new NavBar(0);
var dhtmlMenu;
//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more \"blocks\" of same code below
dhtmlMenu = new NavBarMenu(60, 60);
dhtmlMenu.addItem(new NavBarMenuItem(\"forside\", \"\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Home\", \"./Default.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"News\", \"./News.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Contact\", \"./Contact.asp\"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(110, 110);
dhtmlMenu.addItem(new NavBarMenuItem(\"menu2\", \"\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Documentary\", \"./Documentary.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Debate\", \"./Debate.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Other1\", \"./Other1.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Other2\", \"./Other2.asp\"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(90, 90);
dhtmlMenu.addItem(new NavBarMenuItem(\"menu3\", \"\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"punkt1\", \"./punkt1.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"punkt2\", \"./punkt2.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"punkt3\", \"./punkt3.asp\"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(60, 60);
dhtmlMenu.addItem(new NavBarMenuItem(\"menu4\", \"\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Books\", \"./Books.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"CD\", \"./Covers.asp\"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(105, 105);
dhtmlMenu.addItem(new NavBarMenuItem(\"menu5\", \"\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"Akskrj\", \"./Akskrj.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"text her\", \"./texther.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"mogens\", \"./mogens.asp\"));
dhtmlMenu.addItem(new NavBarMenuItem(\"fedtnok\", \"./fedtnok\"));
myNavBar1.addMenu(dhtmlMenu);
//set menu colors
//Border,Txt-Topline, Bckg, MO-Topline, mo-bckg-topline, dd-txt, dd-bckg, dd-mo-txt, dd-mo-bckg
myNavBar1.setColors(\"#FAA001\", \"#8a4502\", \"#FAA001\", \"#8a4502\", \"#FAA001\", \"#8a4502\", \"#F8C66F\", \"#ffffff\", \"#000080\")
myNavBar1.setFonts(\"arial\", \"normal\", \"bold\", \"11px\", \"Arial\", \"normal\", \"normal\", \"11px\");
//uncomment below line to center the menu (valid values are \"left\", \"center\", and \"right\"
//myNavBar1.setAlign(\"center\")
var fullWidth;
function init() {
// Get width of window, need to account for scrollbar width in Netscape.
fullWidth = getWindowWidth()
- (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
myNavBar1.resize(200);
myNavBar1.moveBy(6, 5);
myNavBar1.create();
myNavBar1.setzIndex(2);
}
</script>
<script language=\"javascript\">
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
ie5 =(document.getElementById)? true:false
ns6 = (document.getElementById && !document.all)?true:false;
function over(id){
if (ns4){
document.layers[id].visibility = \"show\"
}else if (ns6) {
document.getElementById(id).style.visibility = \"visible\";
} else if (ie5) {
document.getElementById(id).style.visibility = \"visible\";
}else if (ie4) {
document.all[id].style.visibility = \"visible\";
}
}
function ud(id){
if (ns4){
document.layers[id].visibility = \"hide\"
}else if (ns6) {
document.getElementById(id).style.visibility = \"hidden\";
} else if (ie5) {
document.getElementById(id).style.visibility = \"hidden\";
}else if (ie4) {
document.all[id].style.visibility = \"hidden\";
}
}
</script>
</head>
<body onload=\"init()\" background=\"./Bg.jpg\" Leftmargin=\"15\" bgcolor=\"#333666\" Marginwidth=\"15\" Marginheight=\"5\" Topmargin=\"5\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td></td>
<td valign=\"top\"> </td>
<td valign=\"top\"></td>
</tr>
<tr>
<td valign=\"top\"><br><br><br><br><br><br><br><br></td>
<td valign=\"bottom\">
<div id=\"et\" name=\"et\" style=\"position: absolute; left:14; top:116; width: 179; height:100; z-index: 3; visibility: hidden\">
<table border=0 width=183 bgcolor=\"#F8C66F\"><tr><td class=\"text\">
Line 1<br>
Line 2<br>
Line 3<br>
Line 4<br>
Line 5<br>
Line 6<br>
</td></tr></table></div>
<div id=\"to\" name=\"to\" style=\"position: absolute; left:211; top:104; width: 179; height:100; z-index: 3; visibility: hidden\">
<table border=0 width=183 bgcolor=\"#F8C66F\"><tr><td class=\"text\">
Line 1<br>
Line 2<br>
Line 3<br>
Line 4<br>
Line 5<br>
Line 6<br>
Line 7<br>
</td></tr></table></div>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<a href=\"#\" onMouseover=\"over(\'et\')\" onMouseout=\"ud(\'et\')\"><Img border=\"0\" src=\"./Grafik/billede1.jpg\" width=183 hight=183></a>
</td>
<td>
<Img src=\"./PageGraphics/st.jpg\" width=\"10\">
</td>
<td>
<a href=\"#\" onMouseover=\"over(\'to\')\" onMouseout=\"ud(\'to\')\"><Img border=\"0\" src=\"./Grafik/billede2.jpg\" width=183 hight=183></a>
</td>
</tr>
</table>
</td>
<td valign=\"top\" align=\"right\"></td>
</tr>
</table>
</body>
</html>