CSS / HTML / Javascript nav bar
Posted: Wed Jan 13, 2010 9:01 am
Ok so I need a vertical-side-out navagation menu like this:
http://www.dynamicdrive.com/dynamicinde ... thmenu.htm
This uses <ul> and <il> tags to control the nav bar, along with a CSS file and some javascript.
The code for my links if the following:
I'm not 100% sure I'm even putting these tags in the correct places, but the site doesnt look right:
the site
Also in FF its looking ok, and in IE... its really not happy.
Any help ?
http://www.dynamicdrive.com/dynamicinde ... thmenu.htm
This uses <ul> and <il> tags to control the nav bar, along with a CSS file and some javascript.
The code for my links if the following:
Code: Select all
<div id="smoothmenu2" class="ddsmoothmenu-v">
<ul>
<li>
<?php
$query="SELECT * FROM ver_parent WHERE mID='1' AND active=1 ORDER BY pID ASC";
$result=$class->ResultSet($query);
$i=0;
$x=0;
while($row=$class->FetchObject($result)){
$hee=$_REQUEST['CID'];
//if(isset($hee)){
$query2="SELECT * FROM ver_child WHERE mID='1' AND pID='".$row->pID."' AND active=1 ORDER BY cID ASC";
$result2=$class->ResultSet($query2);
$TROwS=$class->numRows($result2);
if($TROwS==0){
?> <li>
<li><a title="<?=$row->name?>" href="index.php?cmd=18&CID=<?=$row->pID?>" class="<?=($_REQUEST['CID']==$row->pID)?'select_left':''?>"><?=$row->name?></a></li>
<?php
}else{
?>
</li>
<ul>
<li>
<li><a title="<?=$row->name?>" href="index.php?cmd=18&CID=<?=$row->pID?>" class="<?=($_REQUEST['CID']==$row->pID)?'select_left':''?>"><?=$row->name?></a></li>
<?php
} $i=0;
$x=0;
while($row2=$class->FetchObject($result2)){
if($row->pID==$row2->pID){
?>
<li>
<a title="<?=$row2->name?>" href="index.php?cmd=18&CID=<?=$row2->pID?>&SCID=<?=$row2->cID?>" class="<?=($_REQUEST['SCID']==$row2->cID)?'select_left':''?>"><?=$row2->name?></a></li>
<?php
}
}
if($TROwS!=0){
?>
<?php }
}?></li></ul>
</li>
</ul>
<br style="clear: left" />
</div>
the site
Also in FF its looking ok, and in IE... its really not happy.
Any help ?