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

Thread: Switch Menu II not working in Firefox

  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Switch Menu II not working in Firefox

    Switch Menu II
    http://www.dynamicdrive.com/dynamici...witchmenu2.htm

    My menu works fine in IE6 but in Firefox 1.5.0.1 it works correctly when each top item is opened for the first time however on subsequent openings the lower top items do not move down so the sub items overlap the lower top items. The code does not validate as the Validator does not like classOver and classOut as attributes yet the demo version on the URL above uses classOver and classOut and works fine in Firefox. Any ideas?

  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

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

  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

    Remove the DOCTYPE from your WENav.htm page.
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Many Thanks

    Many thanks, Mad Professor, problem solved.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hardly. I'm sure the classOver and classOut could be built into the menu constructor so as to avoid using non-standard attributes.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hello dynamic drive menu

    Quote Originally Posted by jscheuer1
    Remove the DOCTYPE from your WENav.htm page.
    "98.824% Works in Quirks"

    Where to plug it in...I tried it at the top of the page. It did not work. Will you please give me the first two lines. I am very new in this area.Thank you for reading. Please reply.

  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

    Quote Originally Posted by sharmin
    "98.824% Works in Quirks"

    Where to plug it in...I tried it at the top of the page. It did not work. Will you please give me the first two lines. I am very new in this area.Thank you for reading. Please reply.
    Hey, that's just my tag line! What are you talking about anyways? You need to make your question much clearer, sharmin:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Please post a link to the page on your site that contains the problematic script so we can check it out.


    And please spell out clearly what your problem is, we are not mind readers, even if it seems that way at times.
    - John
    ________________________

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

  9. #9
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    Hey, that's just my tag line! What are you talking about anyways? You need to make your question much clearer, sharmin:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Please post a link to the page on your site that contains the problematic script so we can check it out.


    And please spell out clearly what your problem is, we are not mind readers, even if it seems that way at times.

    Hello I am having problem with the switch menu 2. It works fine in Internet Explorer, but in firefx, it does not work okay.

    I copied and pasted the exact code.
    My html file looks as below:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "98.824% Works in Quirks">
    <html>
    <head>
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="sddm.css" />


    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">




    <body>
    <script language="JavaScript" type="text/javascript" src="menu.js"></script>


    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this);" > Demo Menu 1</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    </div>
    </div>
    </div>



    <BR />

    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this)" > Demo Menu 2</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.slashdot.org">Slash Dot</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://news.com">News.com</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://wired.com">Wired News</a></span>
    </div>
    </div>
    </div>


    <BR />

    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this)" > Demo Menu 3</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://cnn.com">CNN</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://msnbc.com">MSNBC</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://news.bbc.co.uk">BBC News</a></span>
    </div>
    </div>
    </div>

    </body>
    </html>
    .......................
    If I remove DOCTYPE, what I should put there?

    Pleease tell me the first two lines.
    And also, I get 16 errors from css file, but the css file, that I am using, I got from here. Please respond as I need help. i tried a lot two change the first two line.

    Another thing that I should mention that I am switching this menu at a template, as a nevagation bar; I basically call the java function at that navigation bar. The template is made of multiple layers but not frames. If I remove the DOC type, the whole template might get affected. What I should do?
    Last edited by sharmin; 07-13-2006 at 03:56 PM.

  10. #10
    Join Date
    Jul 2006
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by sharmin
    Hello I am having problem with the switch menu 2. It works fine in Internet Explorer, but in firefx, it does not work okay.

    I copied and pasted the exact code.
    My html file looks as below:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "98.824% Works in Quirks">
    <html>
    <head>
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="sddm.css" />


    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">




    <body>
    <script language="JavaScript" type="text/javascript" src="menu.js"></script>


    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this);" > Demo Menu 1</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://northregion/NROS/" target="_blank">North region Districts: 1, 2, 3</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://d4web"target="_blank">--Oakland District 4</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://sv06web/pjd/surveys/" target="_blank">--Central Region Districts: 5, 6, 9, 10</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://t7www/Surveys/home/index.asp" target="_blank">--Los AngelesDistrict 7</a></span><BR />
    </div>
    </div>
    </div>



    <BR />

    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this)" > Demo Menu 2</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://www.slashdot.org">Slash Dot</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://news.com">News.com</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://wired.com">Wired News</a></span>
    </div>
    </div>
    </div>


    <BR />

    <div class="mainDiv" state="0">
    <div class="topItem" classOut="topItem" classOver="topItemOver" onMouseOver="Init(this)" > Demo Menu 3</div>
    <div class="dropMenu" >
    <div class="subMenu" state="0">
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://cnn.com">CNN</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://msnbc.com">MSNBC</a></span><BR />
    <span class="subItem" classOut="subItem" classOver="subItemOver"><a href="http://news.bbc.co.uk">BBC News</a></span>
    </div>
    </div>
    </div>

    </body>
    </html>
    .......................
    If I remove DOCTYPE, what I should put there?

    Pleease tell me the first two lines.
    And also, I get 16 errors from css file, but the css file, that I am using, I got from here. Please respond as I need help. i tried a lot two change the first two line.

    Another thing that I should mention that I am switching this menu at a template, as a nevagation bar; I basically call the java function at that navigation bar. The template is made of multiple layers but not frames. If I remove the DOC type, the whole template might get affected. What I should do?

    OH! I think I have fixed the problem. I removed the first two lines from the template page.

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
  •