Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to highlight a selected link

    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.

  • #2
    Banned
    Join Date
    Apr 2011
    Posts
    656
    Thanks
    14
    Thanked 69 Times in 69 Posts
    Quote Originally Posted by suryacd View Post
    ....the value of the selected link...
    I don't follow what you mean by the value of a link. Links are usually used for navigation and so point to a url.

    Can you post the html for these links.

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>

  • #4
    Banned
    Join Date
    Apr 2011
    Posts
    656
    Thanks
    14
    Thanked 69 Times in 69 Posts
    that's the php code to create the links, not the actual ouputed html.

  • #5
    New Coder
    Join Date
    Aug 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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..


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •