Put something like this in the head of the page:
Code:
<style type="text/css">
.thumb {
border:4px solid white;
}
</style>
The width of the border is up to you, the color should be the same as the background color behind the thumbnails or a color of your choosing that indicates that a thumbnail is inactive.
Give each thumbnail a class name of thumb:
Code:
<a href="photo1.jpg" rel="enlargeimage::mouseover" rev="loadarea"><img class="thumb" src="photo1_tbn" width="50" height="50"></a>
Put this script at the end of the page, just before the closing </body> tag:
Code:
<script type="text/javascript">
(function(){
var i=0, t=document.images, hlight=function(e){
var e=e? e : window.event;
var el=e.target? e.target : e.srcElement;
for (i = 0; i < t.length; i++)
if(t[i].className=='thumb')
t[i].style.borderColor='';
el.style.borderColor='navy'; //Edit hightlight color as desired.
}
for (i = 0; i < t.length; i++)
if(t[i].className=='thumb')
if ( typeof window.addEventListener != "undefined" )
t[i].addEventListener( "mouseover", hlight, false );
else if ( typeof window.attachEvent != "undefined" )
t[i].attachEvent( "onmouseover", hlight );
else {
if ( t[i].onmouseover != null ) {
var oldOnmouseover = t[i].onmouseover;
t[i].onmouseover = function ( e ) {
oldOnmouseover( e );
hlight(e);
};
}
else
t[i].onmouseover = hlight;
}
})();
</script>
Bookmarks