Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: JQuery Menu IE7 Problem

  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question JQuery Menu IE7 Problem

    Hi all,

    I am using this menu on my site. It works fine in all other browsers, including IE6 and IE8 beta, but in IE7 the menu does not stretch to fill the whole space, only the top line stretches. When I change the menu's width in the CSS, it is only the line that extends.

    Here is the page it is used on.

    Also, again only in IE7, the menu sometimes moves up 1px when the page loads, and then back down again when you hover over it. Any ideas?

    Thanks in advance for your help!

    Oli
    Last edited by schofio; 02-01-2009 at 01:29 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, states that the credit notice inside script must stay intact. Please reinstate the notice first.

    Regarding your problem, this conditional statement is wrong:
    Code:
    <![if !IE 6]>
    It should be:
    Code:
    <!--[if !IE 6]>
    Try changing that and it might fix your problem.

    Good luck!

  3. #3
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    It is in the script, which is external, but I will put it back in the main page.
    I have changed that, but it is not referring to code that has any effect on the menu, and has not solved the problem. Any other ideas?

    EDIT: Actually, when I changed it the whole page stopped working in IE7, and Firefox printed the conditional comment in the top left corner of the screen.
    Last edited by schofio; 02-01-2009 at 12:05 PM.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I just noticed you are using a not (!), in that case the conditional comments should look like this:
    Code:
    <!--[if !(IE 6)]>
    
    <![endif]-->
    This might cause the problem since the code is meant for all browsers except IE6 and IE7 might need it.

  5. #5
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    This is what happens when I change that conditional comment.

    The menu problem is not fixed, and it doesn't work in Firefox.

    I don't think the IE6 conditional comments are the problem.

    EDIT: That's because I don't want the not command. I now have that conditional comment sorted out on the original page, but the menu still isn't working.

  6. #6
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    My original conditional comment comes straight from http://www.dynamicdrive.com/style/cs...-drop-shadows/.

    Anyway, I've messed around with all the conditional comments, an nothing has changed about the menu. Can anyone help with that?
    Last edited by schofio; 02-01-2009 at 12:31 PM.

  7. #7
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Actually I'm positive that the conditional comments are your problem, if you remove all of them, the menus stretches in IE7 just like in Firefox. I suggest you take a look at why you need them and consider removing the unnecessary ones.

  8. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I think this will fix everything, remove this entirely:
    Code:
    <!--[if lte IE 7]>
    <style type="text/css">
    html .jqueryslidemenu {
    	height: 1%;
    }
    /*Holly Hack for IE7 and below*/
    </style>
    <![endif]-->
    Then remove the conditional comments only for this:
    Code:
    <![if !IE 6]>
    <style type="text/css">
    /*Credits: Dynamic Drive CSS Library */
    /*URL: http://www.dynamicdrive.com/style/ */
    .shiftcontainer {
    	position: relative;
    	left: 5px; /*Number should match -left shadow depth below*/;
    	top: 5px; /*Number should match -top shadow depth below*/;
    	margin-top: 5px;
    }
    .shadowcontainer {
    	width: 840px; /* container width*/;
    	background-color: #d1cfd0;
    	border-radius: 5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    }
    .shadowcontainer .innerdiv {
    	/* Add container height here if desired */
    background-color: white;
    	border: 1px solid gray;
    	padding: 6px;
    	position: relative;
    	left: -5px; /*shadow depth*/;
    	top: -5px; /*shadow depth*/;
    	border-radius: 5px;
    	-moz-border-radius: 5px;
    	-webkit-border-radius: 5px;
    }
    </style>
    <![endif]>
    Good luck!

  9. The Following User Says Thank You to Snookerman For This Useful Post:

    schofio (02-01-2009)

  10. #9
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    That's great, thanks. It now works in IE7.

    However, removing that conditional comment means it doesn't work in IE6. any way around that?

    Here is the changed page:

    http://www.thedentalimplantclinic.com/newdic/index2.htm

    EDIT: The solution seems to be to remove:

    Code:
    <!--[if lte IE 7]>
    <style type="text/css">
    html .jqueryslidemenu {
    	height: 1%;
    }
    /*Holly Hack for IE7 and below*/
    </style>
    <![endif]-->
    But leave the seemingly incorrect conditional comments. If I make the IE6 comment correct, it doesn't work in Firefox. I I leave it how DD originally put it, it works in FF, IE6, IE7 and IE8.

  11. #10
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Try adding this:
    Code:
    <!--[if lte IE 6]>
    <style type="text/css">
    html .jqueryslidemenu {
    	height: 1%;
    }
    /*Holly Hack for IE6 and below*/
    </style>
    <![endif]-->
    Good luck!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •