Jump to content

Just need one more step for website


eaglejazz

Recommended Posts

I need something like this...but this is for for the sublinks...and i want to have something like this for the images to be linked to different pages. For example, the first line the $display <li><img src="images/navigation.gif" /></li>'; shows this for all the pages but i want it images to be linked to a individual pages as I want it to.


[code]      case 'why.php':
  $display = '<ul id="why">';
          $display .= '<li><img src="images/navigation.gif" /></li>';
          $display .= '<li><a href="index.php?file=why.php">Why</a></li>';
          $display .= '<li><a href="index.php?file=about.php">About Us</a></li>';
          $display .= '<li><a href="index.php?file=where.php">Where</a></li>';
          $display .= '</ul>';
          echo $display;
      break;
      [/code]

Dave
If you want the image to be a link then wrap an anchor tag around it like you have done with the your text links:
[code=php:0]$display .= '<li><a href="YOUR_URL_HERE"><img src="images/navigation.gif" border="0" /></a></li>';[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.