View Full Version : How to highlight a selected link

08-26-2011, 06:59 AM

I need to highlight the selected link. The links are populated from database.
The links are displayed in the left side of the page & the value of the selected link is displayed on the right side of the page.
How can this be done?
Please help.


08-26-2011, 07:04 AM
....the value of the selected link...

I don't follow what you mean by the value of a link:confused:. Links are usually used for navigation and so point to a url.

Can you post the html for these links.

08-26-2011, 09:07 AM
Hi, this is my code for displaying the side links.

<div class="leftbar">

if ($contentList) {
foreach($contentList as $artList) {
<a id="<?php echo $artList['id'];?>" href="<?php echo $this->appUrl;?>/app/modules/public/content.php?artId=<?php echo $artList['id'];?>"></a>
<?php }
} ?>

08-26-2011, 10:07 AM
that's the php code to create the links, not the actual ouputed html.

08-29-2011, 05:42 AM
this is the html :


<a href="<?php echo $this->appUrl;?>/app/modules/public/content.php?artId=<?php echo $artList['id'];?>"></a>

Please help..

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum