-
CSS hover, Active problem
Dear Team,
i have some problem in my coding for on menu active hover is working fine only problem in on active function if you see this website vertical menu
http://moftah.us/
plz check this below code
PHP
////////////////////////
<table width="204" height="68" border="0" align="center" cellpadding="0" cellspacing="0" background="images/btn1.jpg">
<?
$cat = mysql_query("select * from subcategory order by subcat_id")or die(mysql_error());
while($catr = mysql_fetch_array($cat)){
if($_SESSION['lang']==1) $main = $catr['subcat_name'];
if($_SESSION['lang']==2) $main = $catr['subcat_name_arabic'];
?>
<tr >
<td height="25" class="new" align="<?=$align?>" ><a href="detail.php?subcat_id=<?=$catr['subcat_id']?>" class="left" > <? echo $main?></a></td>
</tr>
<?
$parent = mysql_query("select * from pages where subcat_id='".$_REQUEST['subcat_id']."' and position = '1' and p_id = 0 order by id")or die(mysql_error());
if(mysql_num_rows($parent) > 0 && $_REQUEST['subcat_id']==$catr['subcat_id']){
while($pr=mysql_fetch_array($parent)){
if($_SESSION['lang']==1) $slink = $pr['title'];
if($_SESSION['lang']==2) $slink = $pr['title_arabic'];
?>
<tr>
<td height="25" class="submnu"><a href="detail.php?p_id=<?=$pr['id']?>&subcat_id=<?=$pr['subcat_id']?>" class="pleft">
-
<?=$slink?>
</a></td>
</tr>
<?
$sub = mysql_query("select * from pages where p_id='".$_REQUEST['p_id']."'")or die(mysql_error());
if(mysql_num_rows($sub) > 0 && $_REQUEST['p_id']==$pr['id']){
while($sr=mysql_fetch_array($sub)){
if($_SESSION['lang']==1) $slink = $sr['title'];
if($_SESSION['lang']==2) $slink = $sr['title_arabic'];
?>
<tr class="ssubmnu">
<td height="25"><a href="detail.php?id=<?=$sr['id']?>&subcat_id=<?=$sr['subcat_id']?>&p_id=<?=$sr['p_id']?>" class="sleft"> <span class="style1"> </span>
<?= $slink?>
</a></td>
</tr>
<?
}
}
}
}
}
?>
</table>
////////////////////////////////////////////////////////////////////////
css
////////////////////////////////////////////////
.new{background-image:images/btn1.jpg;}
.new:hover {background-color:#706134;}
.new:active { background:#003366;}
.submnu {background-image:images/btn1.jpg;}
.submnu:hover {background-color:#B19B56;;}
.submnu:active {background-color:#706134;}
.ssubmnu {background-image:images/btn1.jpg;}
.ssubmnu:hover {background-color:#999999;}
.ssubmnu:active {background-color:#706134;}
thnks in advn
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks