You will have to adjust your layout and/or these styles to get this to line up/look good, but to give you a rough idea, replace the on page styles with:
Code:
#thumbs {
margin: 2px -8px -8px 8px;
}
.slideshow a img { /*CSS for each image tag*/
margin: 6px 4px 0 0;
border-width: 2px;
border-style: solid;
border-color: #000;
}
.slideshow a:hover img { /*CSS for each image tag*/
border-color: #aaa;
}
.slideshow a.on img {
border-color: #fff!important;
}
If you have other definitions for .on in your main stylesheet, these should be removed.
You will also need to have a way to get the on class to the a tag when clicked, while at the same time removing it from the others (if any) that have it.
For that, replace your:
Code:
function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var popwin=open(imgsrc.href, "popwin", popupsetting[1])
popwin.focus()
return false
}
else
return true
}
with:
Code:
function popuplinkfunc(imgsrc){
var popwin=open(imgsrc.href, imgsrc.target),
t = document.getElementById('thumbs').getElementsByTagName('a');
for (var i = t.length - 1; i > -1; --i)
t[i].className = '';
imgsrc.className = 'on';
return false;
}
Bookmarks