Results 1 to 4 of 4

Thread: Columns in Omnislide

  1. #1
    Join Date
    Jan 2008
    Posts
    40
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Columns in Omnislide

    I'm using John Scheuer's Omnislide navbar (downloaded from this site), but I'm having difficulties figuring out the syntax for columns within the navbar.

    In his demo he shows how to have three columns within the navbar. His link above demonstrates. However I want just two columns. Just changing the "d_colspan:3," to "d_colspan:2," creates a mess throughout. You can see what I mean by clicking on "Dharma Talks". Click on "The Portal" and you'll see the 3 column version behaving perfectly.

    Here's the menuItems code:
    Code:
    ["Series"], //create header
    ["The Quest", "http://www.loisimages.com", "_new"],
    ["Dukkha", "http://www.statestreetbluesstroll.com/","_new"],
    ["The Eightfold Path", "http://www.mediajazzbynight.com/", "_new"],
    
    ["Navigation", "", "", 2, "no"], //create two column header w/ 2 and 1 column members, requires d_colspan:3
    ["", "", "", 1],
    ["<<< Previous", "http://www.google.com/", "_new", 1, "no"], //create three column row, requires d_colspan:3
    ["Next >>>", "http://www.altavista.com/", "_new", 1],
    ["First and Current", "", ""], //create header
    ["The Very First Talk", "http://home.comcast.net/~ansiguy", "_new"],
    ["The Current Talk", "http://home.comcast.net/~jscheuer1/side", "_new"]  //no comma after last entry
    What am I missing? Assistance 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

    Moved.

    Please: Post questions on DD scripts in the Dynamic Drive scripts help section.


    I'll have a look at your question, and if I see a solution, or have an idea, I'll let you know.
    - John
    ________________________

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

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

    If you have d_colspan:2, you cannot have:

    Code:
    ["Navigation", "", "", 2, "no"], //create two column header w/ 2 and 1 column members, requires d_colspan:3
    ["", "", "", 1],
    Use this menu from the demo as a template for a two column menu (d_colspan:2 is the default, so need not be explicitly set):

    Code:
    menu[3] = {
    id:'menu3', //use unique quoted id (quoted) REQUIRED!!
    bartext:'RIGHT MENU',
    menupos:'right',
    kviewtype:'fixed', 
    menuItems:[ // REQUIRED!!
    //[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
    ["Menu"], //create header
    ["Dynamic Drive", "http://www.dynamicdrive.com", ""],
    ["What's New", "http://www.dynamicdrive.com/new.htm",""],
    ["What's Hot", "http://www.dynamicdrive.com/hot.htm", ""],
    ["Message Forum", "http://www.dynamicdrive.com/forums", ""],
    ["Submit Script", "http://www.dynamicdrive.com/submitscript.htm", ""],
    ["Link to Us", "http://www.dynamicdrive.com/link.htm", ""],
    
    ["FAQ", "http://www.dynamicdrive.com/faqs.htm", "", 1, "no"], //create two column row, requires d_colspan:2 (the default)
    ["Email", "http://www.dynamicdrive.com/contact.htm", "",1],
    
    ["External Links", "", ""], //create header
    ["JavaScript Kit", "http://www.javascriptkit.com", "_new"],
    ["Freewarejava", "http://www.freewarejava.com", "_new"],
    ["Coding Forums", "http://www.codingforums.com", "_new"]  //no comma after last entry
    
    ]}; // REQUIRED!! do not edit or remove
    Look over:

    http://www.dynamicdrive.com/dynamici...properties.htm

    for additional information.
    - John
    ________________________

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

  4. #4
    Join Date
    Jan 2008
    Posts
    40
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    Thanks, it works. The whole structure is now in place. Next is to get the balance of the page in place and then populate the URLs.

    The idea of this site is to publish a weekly text file with the Omnislide navbar at the top of each talk, enabling the user to jump forwards and back through the series, or to jump laterally to another region of the site. I suspect this navbar will serve the purpose very well indeed.

    Much thanks for your help.

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
  •