Log in

View Full Version : Menu problem.



nightg0st
09-29-2009, 02:43 AM
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:


<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!

hmsnacker123
09-30-2009, 12:40 PM
Have you checked to see if its wrapped ?

nightg0st
09-30-2009, 04:31 PM
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.