I need Help In a PHP Script ?????

I need Help In the following script…Please

In the page index.php …
In the line no.142 where
Where Big Image 1.jpg is appeared in the big container by click on thumb t1.jpg.
I want to make this Image 1.jpg clickable when click on this Big Image I need to open a website
http://www.usa.com/ in the other tab…

Index.php
142-


  • 143-
    144-Barack Obama is        the current president of US (United States)
    145-

    146-
  • Kindly provide your assistance to edit this line to get my job back…
    Awaiting an early response from your side…
    Thanking you in advance

    Muhammad


    Here Is the full Script…Index.htm

    [php]

    <div id="gallery" class="gallery">
     <p>Select any one of the effects and click the Start button:&nbsp;<select id="switch-effect">
      <option value="slide-hori">Slide horizontal</option>
      <option value="slide-vert">Slide vertical</option>
      <option value="resize">Shrink/grow</option>
      <option value="fade">Fade</option>
      </select><br>
        </p>
      <div class="ad-image-wrapper">
      </div>
      <div class="ad-controls">
      </div><br>
      <div class="ad-nav">
        <div class="ad-thumbs">
          <ul class="ad-thumb-list">
            <li>
              <a href="./images/1.jpg">
                <img src="./images/thumbs/t1.jpg" title="Barack Obama" alt="Barack Obama is the current president of US (United States)" class="image0">
              </a>
            </li>
    
            <li>
              <a href="./images/2.jpg">
                <img src="./images/thumbs/t2.jpg" title="Pervez Musharraf" alt="Pervez Musharraf is the current president of Pakistan." class="image5">
              </a>
            </li>
            
          </ul>
        </div>
      </div>
    <div align=center valign=top style="font-size: 10px;color: #dadada;" id="dumdiv">
    

    ©h

    </div>
    
    [/php]

    Since you’re linking to an image in a new page, you have to make a few changes…

    1. You need to link to a different page not the image directly.
    2. In that new page you need to pass the query string value of the image you want to display.

    In your index.php page… Replace line 143

    [php][/php]

    then in newpage.php, which you will create.

    [php]<?php

    $imageid = $_GET[‘imageid’];

    echo '<img src="./images/thumbs/" . $imageid . ‘">

    ?>[/php]

    Granted since you have multiple images you’ll need to put if/then or Switch statements so you have the right link for the other pictures, based on the value of $imageID.

    Sponsor our Newsletter | Privacy Policy | Terms of Service