16 years 7 months ago
It worked!
Thanks Anthony. Was up til 3 in the morning trying to get it happening. Not the sharpest tool in the woodshed, but I was finally able to get it happening as per your instructions.
I'll post the code for anyone who wants to do the same thing in the future.
mod_hover_box2.php
switch ($linkme1)
{
case 1:
echo '<a href="'.$directory.'/'.$image1.'" rel="lightbox" title="'.$t1.'" class="toolTipImg"><img src="'.$directory.'/'.$thumb1.'" alt="'.$a1.'" title="'.$t1.'"></a>';
break;
case 2:
echo '<a href="'.$link1.'" rel="lightbox" rev="width='.$width1.', height='.$height1.'" title="'.$t1.'" class="toolTipImg"><img src="'.$directory.'/'.$thumb1.'" alt="'.$a1.'" title="'.$t1.'"></a>';
break;
case 3:
echo '<a href="'. sefRelToAbs(substr($_SERVER["REQUEST_URI"],0))."#nogo" .'" title="'.$t1.'" class="toolTipImg"><img src="'.$directory.'/'.$thumb1.'" alt="'.$a1.'" ></a>';
break;
case 4:
echo '
<div class="image1">
<a href="'.$link1.'" target="_blank" class="toolTipImg" title="'.$t1.'"><img src="'.$directory.'/'.$thumb1.'" class="photo3" alt="'.$a1.'" title="'.$t1.'" ></a>
</div>';
case 5:
echo '';
break;
case 6:
echo '<a href="'. sefRelToAbs(substr($_SERVER["REQUEST_URI"],0))."#nogo" .'" class="toolTipImg" title="'.$t1.'"><img src="'.$directory.'/'.$thumb1.'" alt="'.$a1.'" class="thumbnoo h:'.$thumbnoo_height.' w:'.$thumbnoo_width.'" ></a>';
}
hover_box2.css
.hb_custom {position:relative; }
.thumbs_custom {float:left; padding-top: 510px;}
.thumbs_custom a {display:block; float:left; margin:0 0 5px 5px; width:43px; height:43px; border:1px solid #ccc;}
.thumbs_custom a img {width:43px; height:43px; border:0;margin: 0;}
.thumbs_custom a:hover {border-color:#000;}
.thumbs_custom a:hover img {position:absolute; width:auto; height:auto; left: 290px; top: 80px; border:1px solid #000;padding: 4px;background: #ccc;}
.thumbs_custom
.image1 a:hover img {position:absolute; width:auto; height:auto; left: 310px; top: 80px; background: #333;}
I haven't tested it in all browsers, just firefox. Will do that now.
The next step will be adding gradiated drop shadows to the hovered images.
If I figure out how that's possible, I'll let you know.
Thanks again.