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

Thread: AnyLink Drop Down Menu Help

  1. #1
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu Help

    1) Script Title: AnyLink Drop Down Menu

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm

    3) Describe problem: I need more clarification on what to do with the following sample in order to make this menu work. I know that I should replace "Web Design" with my menu item's name, but is there anything else I need to modify? I'm thinking that the reason my code is not working is that I may need to change the "default.htm" to something else as well. I'm sorry, but I don't know much about code. I'm using Dreamweaver and only change very minor things in code.

    <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>

    Any information would be greatly appreciated

  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

    You can change that default.htm to the name of a page that you would like non-javascript enabled browsers to go to if they click on the header. This is a nice feature of this menu because, the drop downs will not display in a non-javascript enabled browser. The page this link goes to can have a listing of the links that would have been available in the drop down.
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What problem are you having? Did you include the required styles in your CSS? Are you getting Javascript errors?

  4. #4
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I've got the drop down menus to finally work (that is to drop down). Now my problem is that I can't seem to get the drop down links to work. I get page cannot be found.

    Below is a sample of my code. I was experimenting with menu7[0]. I have the file general.html ready to go and saved in me resources folder. What step am I missing?

    //Contents for menu 7
    var menu7=new Array()
    menu7[0]='<a href="http://www.mshssca.org/resources/general">General</a>'
    menu7[1]='<a href="http://www.mshssca.org/resources/goalkeeping">Goalkeeping</a>'
    menu7[2]='<a href="http://www.mshssca.org/resources/physical">Physical</a>'
    menu7[3]='<a href="http://www.mshssca.org/resources/psychological">Psychological</a>'
    menu7[4]='<a href="http://www.mshssca.org/resources/tactical">Tactical</a>'
    menu7[5]='<a href="http://www.mshssca.org/resources/technical">Technical</a>'

    <td><p><font color="#FFFFFF">Home </font></a><font color="#COCOFF"> |<a href="mshssca.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">The MSHSSCA</font></a><font color="#COCOFF"> | <a href="coaches.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">Coaches</font></a><font color="#COCOFF"> | <a href="players.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">Players</font></a><font color="#COCOFF"> | <a href="conferences.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">Conferences</font></a><font color="#COCOFF"> | <a href="tournament.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu5, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">State Tournament</font></a><font color="#COCOFF"> | <a href="recognition.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu6, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">Recognition</font></a><font color="#COCOFF"> | <a href="resources.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '150px')" onMouseout="delayhidemenu()"><font color="#FFFFFF">Educational Resources</font></a> &nbsp;</p>
    </td>

  5. #5
    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

    When I paste this:

    Code:
    http://www.mshssca.org/resources/general
    directly into the address bar, I get a 404 page not found.
    - John
    ________________________

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

  6. #6
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    none of these pages are live as this is a new site for the association. no pages have been uploaded. that's the same error I get. does the code look correct to the best of your knowledge?

  7. #7
    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

    No, if you want to link to 'general.html' you need to have it in the href. You only list 'general'.
    - John
    ________________________

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

  8. #8
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks but can you please give me a typed example. I'm not following.

  9. #9
    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

    Code:
    menu7[0]='<a href="http://www.mshssca.org/resources/general.html">General</a>'
    And that's assuming that there are no other errors.
    - John
    ________________________

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

  10. #10
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I've tried that and it still didn't work. Can I assume that I will not be able to view the page unless I FTP it since it says page not found?

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
  •