i'm trying to figure out how to use this switch business.
http://www.melliart.com/br_index.php
there is a list nav on the left that switches the image thumbnails. each thumbnail links to a full size image that appears to the right of the thumbnails.
my problem:
when i click the link for the second set of thumbs they appear like they should but... when i click one of the thumbs the correct full size version appears but the 2nd set of thumbs changes back to the 1st set of thumbs...
nav code:
<p>pages</p>
<ul id="NAVdots">
<li><a href="cssindex.php?id=art_01" title="Fine Art Page 1">1</a></li>
<li><a href="cssindex.php?id=art_02" title="Fine Art Page 2">2</a></li>
<li><a href="cssindex.php?id=art_03" title="Fine Art Page 3">3</a></li>
<li><a href="cssindex.php?id=art_04" title="Fine Art Page 4">4</a></li>
<li><a href="cssindex.php?id=art_05" title="Fine Art Page 5">5</a></li>
</ul>
thumbnail set 1 include:
<div class="thumbnail"> <a href="cssindex.php?id=069" title="69"><img src="images/portfolio/tn/art/tn_069.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=068" title="68"><img src="images/portfolio/tn/art/tn_068.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=067" title="67"><img src="images/portfolio/tn/art/tn_067.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<br class="clearboth">
<div class="thumbnail"> <a href="cssindex.php?id=066" title="66"><img src="images/portfolio/tn/art/tn_066.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=065" title="65"><img src="images/portfolio/tn/art/tn_065.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=064" title="64"><img src="images/portfolio/tn/art/tn_064.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<br class="clearboth">
<div class="thumbnail"> <a href="cssindex.php?id=063" title="63"><img src="images/portfolio/tn/art/tn_063.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=062" title="62"><img src="images/portfolio/tn/art/tn_062.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=061" title="61"><img src="images/portfolio/tn/art/tn_061.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<br class="clearboth">
<div class="thumbnail"> <a href="cssindex.php?id=060" title="60"><img src="images/portfolio/tn/art/tn_060.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=059" title="59"><img src="images/portfolio/tn/art/tn_059.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=058" title="58"><img src="images/portfolio/tn/art/tn_058.jpg" alt="oil painting mixed media" width="66" height="66" border="0"></a></div>
<br class="clearboth">
thumbnail set 2 include:
<div class="thumbnail"> <a href="cssindex.php?id=057" title="57"><img src="images/portfolio/tn/art/tn_057.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=056" title="56"><img src="images/portfolio/tn/art/tn_056.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=055" title="55"><img src="images/portfolio/tn/art/tn_055.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=054" title="54"><img src="images/portfolio/tn/art/tn_054.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=053" title="53"><img src="images/portfolio/tn/art/tn_053.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=052" title="52"><img src="images/portfolio/tn/art/tn_052.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=051" title="51"><img src="images/portfolio/tn/art/tn_051.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=050" title="50"><img src="images/portfolio/tn/art/tn_050.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=049" title="49"><img src="images/portfolio/tn/art/tn_049.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=048" title="48"><img src="images/portfolio/tn/art/tn_048.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=068" title="47"><img src="images/portfolio/tn/art/tn_047.jpg" alt="" width="66" height="66" border="0"></a></div>
<div class="thumbnail"> <a href="cssindex.php?id=068" title="46"><img src="images/portfolio/tn/art/tn_046.jpg" alt="" width="66" height="66" border="0"></a></div>
full size image include:
<?php switch($id)
{
case "069":
include "gallery/art/069.php";
break;
case "068":
include "gallery/art/068.php";
break;
case "067":
include "gallery/art/067.php";
break;
case "066":
include "gallery/art/066.php";
break;
case "065":
include "gallery/art/065.php";
break;
case "064":
include "gallery/art/064.php";
break;
case "063":
include "gallery/art/063.php";
break;
case "062":
include "gallery/art/062.php";
break;
case "061":
include "gallery/art/061.php";
break;
case "060":
include "gallery/art/060.php";
break;
case "059":
include "gallery/art/059.php";
break;
case "059":
include "gallery/art/059.php";
break;
case "058":
include "gallery/art/058.php";
break;
case "057":
include "gallery/art/057.php";
break;
case "056":
include "gallery/art/056.php";
break;
case "055":
include "gallery/art/055.php";
break;
case "054":
include "gallery/art/054.php";
break;
case "053":
include "gallery/art/053.php";
break;
case "052":
include "gallery/art/052.php";
break;
case "051":
include "gallery/art/051.php";
break;
case "050":
include "gallery/art/050.php";
break;
case "049":
include "gallery/art/049.php";
break;
case "048":
include "gallery/art/048.php";
break;
case "047":
include "gallery/art/047.php";
break;
case "046":
include "gallery/art/046.php";
break;
case "045":
include "gallery/art/045.php";
break;
case "044":
include "gallery/art/044.php";
break;
case "043":
include "gallery/art/043.php";
break;
case "042":
include "gallery/art/042.php";
break;
case "041":
include "gallery/art/041.php";
break;
case "040":
include "gallery/art/040.php";
break;
case "039":
include "gallery/art/039.php";
break;
case "038":
include "gallery/art/038.php";
break;
case "037":
include "gallery/art/037.php";
break;
case "036":
include "gallery/art/036.php";
break;
case "035":
include "gallery/art/035.php";
break;
case "034":
include "gallery/art/034.php";
break;
case "033":
include "gallery/art/033.php";
break;
case "032":
include "gallery/art/032.php";
break;
case "031":
include "gallery/art/031.php";
break;
case "030":
include "gallery/art/030.php";
break;
case "029":
include "gallery/art/029.php";
break;
case "028":
include "gallery/art/028.php";
break;
case "027":
include "gallery/art/027.php";
break;
case "026":
include "gallery/art/026.php";
break;
case "025":
include "gallery/art/025.php";
break;
case "024":
include "gallery/art/024.php";
break;
case "023":
include "gallery/art/023.php";
break;
case "022":
include "gallery/art/022.php";
break;
case "021":
include "gallery/art/021.php";
break;
case "020":
include "gallery/art/020.php";
break;
case "019":
include "gallery/art/019.php";
break;
case "018":
include "gallery/art/018.php";
break;
case "017":
include "gallery/art/017.php";
break;
case "016":
include "gallery/art/016.php";
break;
case "015":
include "gallery/art/015.php";
break;
case "014":
include "gallery/art/014.php";
break;
case "013":
include "gallery/art/013.php";
break;
case "012":
include "gallery/art/012.php";
break;
case "011":
include "gallery/art/011.php";
break;
case "010":
include "gallery/art/010.php";
break;
case "009":
include "gallery/art/009.php";
break;
case "008":
include "gallery/art/008.php";
break;
case "007":
include "gallery/art/007.php";
break;
case "006":
include "gallery/art/006.php";
break;
case "005":
include "gallery/art/005.php";
break;
case "004":
include "gallery/art/004.php";
break;
case "003":
include "gallery/art/003.php";
break;
case "002":
include "gallery/art/002.php";
break;
case "001":
include "gallery/art/001.php";
break;
case "art_02":
include "gallery/art/057.php";
break;
case "art_01":
include "gallery/art/069.php";
break;
default:
require "gallery/art/069.php";
}
?>
sorry about posting all this crap. i have been searching for a solution for days.
i know there are many requires in that full size image include.