Results 1 to 3 of 3

Thread: Menu problem.

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Menu problem.

    Hey everyone, I need to get the entire menu in one line.
    Here's the link to the site: http://www.nnennaphotography.com/site.php

    Ok, The Travel section needs to be in the same line as the rest of the menu but it does not. Here's the code for the menu:

    Code:
    <div id=\"tabs\" class=\"footer\">
    
    <?php
    $selected = true;
    $firstrow = true;
    foreach($dirNames as $key => $topDirName) {
    	//strip out unwanted characters from begining of dir names
        $friendlyName = ltrim($key, \"0..9,_\");
        echo \'     <ul class=\"navigation\">\'.\"\\r\\n\";
        foreach($topDirName AS $imgDir) {
    	    //strip out unwanted characters from begining of dir names
            $friendlyName = ltrim($imgDir, \"0..9,_\");
            if($selected == true) {
                echo \'<li><span class=\"arrow\">&nbsp;»</span><a href=\"#\" class=\"selected\" rel=\"#default\">\'.$friendlyName.\'</a></li>\'.\"\\r\\n\";
                $selected = false;
                }
        }
        if ($firstrow == true) {
           echo \'<li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=0_Galleries&dir=1_Light\" rel=\"gallery\">LIGHT</a></li>\'.\"\\r\\n\";
           echo \'<li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=0_Galleries&dir=2_Living\" rel=\"gallery\">LIVING</a></li>\'.\"\\r\\n\";
           echo \'<li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=0_Galleries&dir=3_Pavement\" rel=\"gallery\">PAVEMENT</a></li>\'.\"\\r\\n\";
           echo \'<li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=0_Galleries&dir=4_Self\" rel=\"gallery\">SELF</a></li>\'.\"\\r\\n\";
           echo \'<li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=0_Galleries&dir=5_Snaps\" rel=\"gallery\">SNAPS</a></li>\'.\"\\r\\n\";
        	echo \'<li class=\"altNav\"><a target=\"_blank\" href=\"http://blog.nnennastella.com/\">BLOG</a></li>\'.\"\\r\\n\";
        	echo \'<li class=\"altNav\"><a target=\"_blank\" href=\"contact.html\" rel=\"gallery\">CONTACT</a></li>\'.\"\\r\\n\";
            echo \'<li class=\"altNav\"><a target=\"_blank\" href=\"http://nnennastella.zenfolio.com/\">PRINTS</a></li>\'.\"\\r\\n\";
            echo \'<div id=\"menu_parent\"><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=1_Travel&dir=France\" rel=\"gallery\">TRAVEL</a></li></div><div id=\"menu_child\">
    <li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=1_Travel&dir=France\" rel=\"gallery\">FRANCE</a></li>
    <li><span class=\"arrow\">&nbsp;»</span><a target=\"_blank\" href=\"gallery.php?gallery=1_Travel&dir=Switzerland\" rel=\"gallery\">SWITZERLAND</a></li>
    </div>\'.\"\\r\\n\";
            $firstrow = false;
        }
        echo \"  </ul>\";
    
    }
    
    ?>
    <script type=\"text/javascript\">
    at_attach(\"menu_parent\", \"menu_child\", \"hover\", \"y\", \"pointer\");
    </script>
    Any ideas or suggestions on how I can accomplish this?

    ANY help will be greatly appreciated!

  2. #2
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default

    Have you checked to see if its wrapped ?

  3. #3
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey Hm, thank you for replying. As far as I've noticed, the "Travel" link is the only one who jumps to the next line. Example: If I put "Travel" before the Blog link, it will take all of the following links and send them to the next row.

    ?? Does this answer the question...I'm not sure.

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
  •