| Author |
Message |
mbrad
Joined: 11 Jun 2007 Posts: 14
|
Posted: Sun Oct 14, 2007 2:51 am Post subject: CooljsMenu In Blog |
|
|
Thanks for taking the time to read my question.
I am using CooljsMenu on my site and it works great. I've added a blog to my site and have CooljsMenu at the top of the blog to keep the site nav consistent.
My problem is that the sub nav items don't work in IE7 in the blog but they do work in FF on the blog page. The rest of the pages in the site the menus all work regardless of browser.
I had to make a menu_items_Blog.js file that has a few changes. Changes added are to handle the file structure. To all references I had to add
as the Blog folder is under the root folder at the same level as my Images folder and my Javascript folder.
So on the normal pages I have
(menu_ite.js)
| Code: | {code:"About Us", "url":"AboutUs.htm", style:STYLE, size:[22,99],
sub:[
and so on... |
and in the Blog files I have
(menu_item_Blog.js)
| Code: | {code:"About Us", "url":"../../AboutUs.htm", style:STYLE, size:[22,99],
sub:[
and so on... |
The regular pages have linked files
| Code: | <script type="text/javascript" src="/Javascript/coolmenu.js"></script>
<script type="text/javascript" src="/Javascript/menu_items_Blog.js"></script> |
The Blog has linked files
| Code: | <script type="text/javascript" src="../../Javascript/coolmenu.js"></script>
<script type="text/javascript" src="../../Javascript/menu_items_Blog.js"></script> |
I'm guessing that the problem is in the coolmenu.js file as it is the only one being shared between the Blog and the regular pages.
Any ideas on what I may need to do to get the menu to work in the Blog?
Thanks,
Brad |
|
| Back to top |
|
 |
mbrad
Joined: 11 Jun 2007 Posts: 14
|
Posted: Sun Oct 14, 2007 2:56 am Post subject: |
|
|
I just noticed that in IE7 in the bottom left corner it says Done but it has the yellow triangle with the exclamation mark on it (Done with errors), where as FF just says Done (no errors)
Upon further testing, I am able to click on the sub menu, but the hover event doesn't fire, and the sub menu disappears after a second or so if I just leave the mouse on it. If I click, the nav takes me to the page I clicked on. The sub menu should not disappear if I leave my mouse over it.
Thanks,
Brad |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Oct 15, 2007 10:44 am Post subject: |
|
|
| Can you post the URL of your site here? And IE's error message too. |
|
| Back to top |
|
 |
mbrad
Joined: 11 Jun 2007 Posts: 14
|
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Oct 15, 2007 3:31 pm Post subject: |
|
|
| Quote: | | Funny how I don't get this in FF though. |
.htc is pure IE technology, and in this context it is used to supply a fix to famous "IE + PNG" problem. It is completely unrelated to the menu.
Actually, I see working menu in my IE6. So, what the problem with it? |
|
| Back to top |
|
 |
mbrad
Joined: 11 Jun 2007 Posts: 14
|
Posted: Mon Oct 15, 2007 3:47 pm Post subject: |
|
|
The menu shows up, and if you hover above the "About Us" menu item, the sub menus show up in both FF and IE(6&7), BUT, when you move the mouse over a sub menu item when in IE the menu disappears quickly before you really have time to read all the options or decide which one to click on, and the background image doesn't change. In FF the sub menu remains until you either click on a sub menu item, or you move the mouse off the sub menu.
Try this
In IE, move the mouse over the "About Us" menu item. Then move the mouse down over the "League Board" sub menu item. How long does the sub menu stay visible for you? Does the background of the sub menu item turn white when you hover over it?
For me in IE6 and IE7, the background of the sub menu doesn't turn white, and if I'm hovering over a sub menu item, the sub menu only stays visible for about 1 second then goes away as if nothing is hovering above it.
Thanks again for helping me fix this.
Brad |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Oct 18, 2007 3:22 pm Post subject: |
|
|
| Moving the <script>var m1 = ...</script> tag to the very bottom of HTML code will solve the problem. |
|
| Back to top |
|
 |
mbrad
Joined: 11 Jun 2007 Posts: 14
|
Posted: Mon Oct 22, 2007 1:25 pm Post subject: |
|
|
THAT WAS IT!!!!!!
THANKS!!!!
Why does that change anything?
Brad |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Fri Nov 09, 2007 1:49 pm Post subject: |
|
|
| Z-index was the reason. |
|
| Back to top |
|
 |
|