Web Analytics Made Easy -
StatCounter How to highlight a selected link - CodingForum

Announcement

Collapse
No announcement yet.

How to highlight a selected link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.

    Comment


    • #3
      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>

      Comment


      • #4
        that's the php code to create the links, not the actual ouputed html.

        Comment


        • #5
          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..

          Comment

          Working...
          X