![]() |
|
#1
|
|||
|
|||
|
I am encountering a strange situation with IE6 and a menu I have setup.
I created a basic menu.html file that sets up a menu nearly identical to the menu used on the dhtmlcentral.com website. I grabbed the code from the sample code, made a few minor changes, and it looks great in both Firefox and IE 6. I then have a number of JSP pages which I do a <jsp:include...> of the menu.html I created. When I view these pages in Firefox, everything looks and works fine. However, when I view them in IE 6, the menu looks fine until I place my cursor over the menu regions. The drop down portions of the menu appear all over the screen. They remain in the same column region of the menu, but they might appear above it, below it, or so far in either direction they might be off the screen or a portion of them will be. I cannot for the life of me figure this out. Again, it looks perfect when I view the menu.html file, but when I try to view the menu.html which was included in a jsp, it's all messed up. Any ideas/suggestions??? |
|
#2
|
|||
|
|||
|
Well, after plenty of messing around, this only appears to happen in IE 6 when using a jsp include directive.
I essentially wanted to create a single html or jsp page which defined and created the menu (ie menu.jsp) and simply include this file in all other pages which were to have the menu (ie <jsp:include page="menu.jsp"/>) If I remove the include directive and just place the <script> blocks in the head and body of each file, it seems to work fine, but is a terribly inefficient way of coding. This has to be a commonly done thing, and someone else has had to have come across this fluke, no? |
|
#3
|
|||
|
|||
|
I don't believe it. I found out what it was causing the problems in IE 6. I am using NetBeans 5.5 and when creating a JSP page, it inserts the following at the very top of every page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Which I thought was a standard thing. Well, either way, IE 6 doesn't seem to like it with CoolMenus. As soon as I removed it, all my problems went away. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|