Results 1 to 3 of 3

Thread: Slide-In Menu Bar

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

    Default Slide-In Menu Bar

    1) Script Title: Slide-in Menu bar III (manually controlled)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...inmenudrag.htm

    3) Describe problem: Is it possible to take those links out and add a table in that side bar? I been banging my head for a few days tring all sorts of things and i just cant figure it out. I am thinking its something simple, so can someone please help me?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try removing all the menu contents:

    Code:
    sitems[0]=["<big><font face='Arial'>Site Menu</font></big>", ""]
    sitems[1]=["Menus And Navigation", "http://www.dynamicdrive.com/dynamicindex1/"]
    sitems[2]=["Document Effects", "http://www.dynamicdrive.com/dynamicindex3/"]
    sitems[3]=["Scrollers", "http://www.dynamicdrive.com/dynamicindex2/"]
    sitems[4]=["Image Effects", "http://www.dynamicdrive.com/dynamicindex4/"]
    sitems[5]=["Links And Buttons", "http://www.dynamicdrive.com/dynamicindex5/"]
    sitems[6]=["Dynamic Clocks & Dates", "http://www.dynamicdrive.com/dynamicindex6/"]
    sitems[7]=["Text Animations", "http://www.dynamicdrive.com/dynamicindex10/"]
    sitems[8]=["Browser Window", "http://www.dynamicdrive.com/dynamicindex8/"]
    sitems[9]=["User System Information", "http://www.dynamicdrive.com/dynamicindex9/"]
    sitems[10]=["Other", "http://www.dynamicdrive.com/dynamicindex11/"]
    And replace it with a single line below containing the entire HTML you wish shown. Be careful of inadvertent line breaks in the HTML. Also, any double quotes need to be backslashed (\"). So eg:

    Code:
    var menucontents="<table border=\"0\"><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"
    Then find the below chunk of code in the script:

    Code:
    if (ie4||ns4||ns6){
    for (i=0;i<sitems.length;i++){
    if (sitems[i][1])
    document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
    document.write(sitems[i][0])
    if (sitems[i][1])
    document.write('</a>')
    document.write('<br>\n')
    }
    }
    and replace that with just:

    Code:
    document.write(menucontents)
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    bearclavvs (12-09-2008)

  4. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Tyvm it works now with a table, just trying to figure out why i cant do nothing with the table, like put links and stuff on it, but i'am sure i will figure it out, tyvm for your time and brains.
    Bear

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
  •