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

Thread: chrome drop down menu and IE selection

  1. #1
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default chrome drop down menu and IE selection

    First of all, thanks for the great Drop Down Menu.
    It works fine with Safari and FireFox, but not with (older versions of ) IE.
    I have some trouble to use it together with an IE selection.

    Code:
    <script type="text/javascript" src="chromejs/chrome.js"></script>

    /***********************************************
    * Chrome CSS Drop Down Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    I use the above code in my website. It works with the IE, but the copyright text
    will be displayed in the browser window…..

    When I indicate the copyright text as a remark (<!-- -->), the IE displays a faulty page design.

    Any help for me, please?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Change to:

    Code:
    <script type="text/javascript" src="chromejs/chrome.js">
    //***********************************************
    //* Chrome CSS Drop Down Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    //* This notice MUST stay intact for legal use
    //* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    //***********************************************/	
    </script>
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,
    that's the way the code was originally published. And that way, IE doesn't work also....
    The same fault appears, when the IE selection is placed before the drop down menu code.....
    I tried that all before.... with no luck!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please provide a link to the demo page (on Dynamic Drive) for the Dynamic Drive code you are using. Please also provide a link to the page on your site that has the problematic code so we can have a look.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,
    thank's for your fast reply.
    Link to the demo page: http://www.dynamicdrive.com/dynamicindex1/chrome/
    I loaded the chromemenu.zip file.
    The site is not online yet.... but I'll try to get it online by tomorrow morning.
    Please excuse the delay, but I live in Germany, the site is on my computer at work, and it's
    11:15p.m. local time.


    Quote Originally Posted by jscheuer1 View Post
    Please provide a link to the demo page (on Dynamic Drive) for the Dynamic Drive code you are using. Please also provide a link to the page on your site that has the problematic code so we can have a look.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, well this menu doesn't use:

    Code:
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    So I would try getting rid of that.

    But I also question what you say about using HTML comment tokens. If you mean this causes a problem:

    Code:
    <script type="text/javascript" src="chromejs/chrome.js"></script>
    <!-- 
    /***********************************************
    * Chrome CSS Drop Down Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/	
    -->
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    Most likely you already have some other unclosed HTML comment token above that, or something else which invalidates doing that. That's why I asked for a link to your page, because - assuming everything else is done in a valid manner, the above shouldn't be a problem.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John,
    meanwhile I published the website and did some workaround.
    Link: http://www.hei-tech-maschinenbau.de/index.htm

    Only the index, ueber-uns and philo pages (the first three menu items) contain the IE modifications.
    I still have no idea, what's going wrong….

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This has nothing to do with the script. You are using HTML 5 standards which do not apply to out of date IE browsers and the script that you are using to correct for that is inadequate in this particular case. Even if you remove the menu script from the page, older IE will not render the page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jun 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John,
    too bad that this combination doesn' t work like I was hoping it would do...
    I'll take your advice and remove the IE script.
    What's most irritating for me is, that lots of so called self-teaching websites still recommend HMTL5 plus
    the IE script.

    Thx for your great help,
    Norbert.

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I bet it works in a lot of cases.

    Without the IE script, you could use valid pre HTML 5 HTML and CSS, like HTML 4.01 transitiona and CSS 2l with some HTML 5 and possibly even some CSS 3 (if they're gracefully degradable) things, but not any HTML 5 only tags. Give that an HTML 5 DOCTYPE (which at that point would only trigger standards mode, something you generally would want anyway), and it could work out.

    That said, what you have looks like it works in IE 9+. So you could simply ask your IE 8 and less users to update to either IE 9, Chrome, or Fire Fox. If you want info on how to do that, just ask.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Drop delay in Chrome CSS Drop Down Menu (v2.5)
    By earthsolar in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-03-2010, 08:38 AM
  2. Images next to drop down menu for language selection
    By tinkermob in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 04-16-2009, 06:04 PM
  3. Chrome Css Drop Down Menu (v2.01) Help Needed - Sub drop down?
    By kttref in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-13-2007, 12:45 PM
  4. Chrome Drop Down Menu Script - 2nd level drop downs?
    By mdbiker in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-27-2006, 02:44 PM
  5. 'Chrome Drop Down Menu' and 'Drop Down Input (Select tag)'
    By yourmna in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-16-2006, 09:30 AM

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
  •