...

View Full Version : How to highlight a selected link



suryacd
08-26-2011, 07:59 AM
Hi,

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.

Thanks.

webdev1958
08-26-2011, 08: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.

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

<div class="leftbar">
<?php

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>
<br>
<?php }
} ?>
</div>

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

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

<div>

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

Please help..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum