I really did like Mike's suggestion, found it fairly easy to implement compared to coming up with the scheme in the first place. I also found a way (hinted at in my last version with the use of # hrefs) for rudimentary functionality in non javascript enabled browsers. Here's the whole page as it is now:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>John Torrente Photography</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="John Torrente, Photography, World Photographer, Landscape, Peoplescape, Nutty Guy, documentary photography, travel photography, black and white photography, street photography">
<style type="text/css">
body {
background : #000000;
font-family : arial;
font-weight: bold;
font-size : 12px;
color : #CCCCCC;
Margin : 0px;
Margin-top : 0px;
Margin-bottom : 0px;
border-width : 0px;
}
table {
font-family : arial;
font-weight : normal;
font-size : 12px;
color : #CCCCCC;
padding : 0px;
border-spacing : 0px;
border-collapse : collapse;
border : 0px;
}
img {border:0;}
A {
text-decoration: none;
}
A:hover {
text-decoration: underline;
}
A.opacity:hover img {
filter:alpha(opacity=50);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
A:link, A:visited {
color: #CCCCCC;
filter:alpha(opacity=80);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);
-moz-opacity: 0.8;
-khtml-opacity: 0.8;
opacity: 0.8;
}
body.home {
color : #000000;
Margin : 0px;
background : #000000;
Margin : 0px;
Margin-top : 0px;
Margin-bottom : 0px;
border-width : 0px;
}
.header {
position: absolute;
top: 12px;
left: 15px;
padding: 0px;
}
.header2 {
position: absolute;
top: 22px;
left: 826px;
padding: 0px;
}
.photobox {
position: absolute;
top: 72px;
left: 121px;
padding: 0px;
}
.smallphoto {
position: absolute;
top: 558px;
left: 90px;
}
.footer {
position: absolute;
top: 550px;
left: 750px;
}
.init_image, .inactive_class {
display:block;
border : 2px solid #000000;
}
.hover_class, #active_id {
display:block;
border : 2px solid #65ADE7;
}
</style>
<script type="text/javascript">
// Reference URL to large images here
var Images = new Array(
"img/big/1big.jpg",
"img/big/2big.jpg",
"img/big/3big.jpg",
"img/big/4big.jpg",
"img/big/5big.jpg",
"img/big/6big.jpg",
"img/big/7big.jpg",
"img/big/8big.jpg",
"img/big/9big.jpg",
"img/big/10big.jpg",
"img/big/11big.jpg",
"img/big/12big.jpg",
"img/big/13big.jpg",
"img/big/14big.jpg",
"img/big/15big.jpg",
"img/big/16big.jpg",
"img/big/17big.jpg",
"img/big/18big.jpg",
"img/big/19big.jpg",
"img/big/20big.jpg"
);
function swap(el) {
var timgs=document.getElementsByTagName('a')
for (var i_tem = 0; i_tem < timgs.length; i_tem++)
if (timgs[i_tem].className=='inactive_class'||timgs[i_tem].className=='hover_class')
timgs[i_tem].id=''
el.id='active_id'
document['imgMain'].src = Images[el.href.substr(el.href.lastIndexOf('#')+1)];
}
function init(){
var timgs=document.getElementsByTagName('a')
for (var i_tem = 0; i_tem < timgs.length; i_tem++)
if (timgs[i_tem].className=='init_image'){
timgs[i_tem].className='inactive_class'
timgs[i_tem].onmouseover=function(){this.className='hover_class'}
timgs[i_tem].onmouseout=function(){this.className='inactive_class'}
timgs[i_tem].onclick=function(){swap(this);return false;}
}
swap(document.getElementById('first'));
}
</script>
</head>
<body class="home" onLoad="init();">
<div class="header">
<a class="opacity" href="index.html"><img src="img/torrente.gif" width="280" height="27" alt=""></a></div>
<div class="header2">
<a class="opacity" href="contact.html"><img src="img/contact.gif" width="54" height="13" alt=""></a>
</div>
<img style="position: absolute; top: 45px; left=13px;" src="img/greline.gif" width="875" height="5" alt="">
<img style="position: absolute; top: 540px; left=13px;" src="img/greline.gif" width="875" height="5" alt="">
<div class="photobox">
<img galleryimg="no" name="imgMain" src="img/big/1big.jpg" width="660" height="440" alt="">
</div>
<div class="smallphoto" id="square">
<table border="0" cellspacing="0" cellpadding="1" align="left" >
<!-- Reference the URL to the thumbnails as well as the copy in this section -->
<tr>
<td><a class="init_image" id="first" href="#0"><img src="img/small/1small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#1"><img src="img/small/2small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#2"><img src="img/small/3small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#3"><img src="img/small/4small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#4"><img src="img/small/5small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#5"><img src="img/small/6small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#6"><img src="img/small/7small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#7"><img src="img/small/8small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#8"><img src="img/small/9small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#9"><img src="img/small/10small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#10"><img src="img/small/11small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#11"><img src="img/small/12small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#12"><img src="img/small/13small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#13"><img src="img/small/14small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#14"><img src="img/small/15small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#15"><img src="img/small/16small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#16"><img src="img/small/17small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#17"><img src="img/small/18small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#18"><img src="img/small/19small.jpg" width="30" height="20" alt=""></a></td>
<td><a class="init_image" href="#19"><img src="img/small/20small.jpg" width="30" height="20" alt=""></a></td>
</tr>
</table>
<noscript><br> <br><div align="center" style="color:white;background-color:black;">Javascript must be enabled for above gallery to function properly.</div></noscript>
</div>
<noscript>
<div align="center" style="position:absolute;top:700px;width:900px;margin:1px auto;">
<br><a href="#">To Top</a><br><a name="0"></a><br> <br> <br>
<img galleryimg="no" src="img/big/1big.jpg">
<br><a href="#">To Top</a><br><a name="1"></a><br> <br> <br>
<img galleryimg="no" src="img/big/2big.jpg">
<br><a href="#">To Top</a><br><a name="2"></a><br> <br> <br>
<img galleryimg="no" src="img/big/3big.jpg">
<br><a href="#">To Top</a><br><a name="3"></a><br> <br> <br>
<img galleryimg="no" src="img/big/4big.jpg">
<br><a href="#">To Top</a><br><a name="4"></a><br> <br> <br>
<img galleryimg="no" src="img/big/5big.jpg">
<br><a href="#">To Top</a><br><a name="5"></a><br> <br> <br>
<img galleryimg="no" src="img/big/6big.jpg">
<br><a href="#">To Top</a><br><a name="6"></a><br> <br> <br>
<img galleryimg="no" src="img/big/7big.jpg">
<br><a href="#">To Top</a><br><a name="7"></a><br> <br> <br>
<img galleryimg="no" src="img/big/8big.jpg">
<br><a href="#">To Top</a><br><a name="8"></a><br> <br> <br>
<img galleryimg="no" src="img/big/9big.jpg">
<br><a href="#">To Top</a><br><a name="9"></a><br> <br> <br>
<img galleryimg="no" src="img/big/10big.jpg">
<br><a href="#">To Top</a><br><a name="10"></a><br> <br> <br>
<img galleryimg="no" src="img/big/11big.jpg">
<br><a href="#">To Top</a><br><a name="11"></a><br> <br> <br>
<img galleryimg="no" src="img/big/12big.jpg">
<br><a href="#">To Top</a><br><a name="12"></a><br> <br> <br>
<img galleryimg="no" src="img/big/13big.jpg">
<br><a href="#">To Top</a><br><a name="13"></a><br> <br> <br>
<img galleryimg="no" src="img/big/14big.jpg">
<br><a href="#">To Top</a><br><a name="14"></a><br> <br> <br>
<img galleryimg="no" src="img/big/15big.jpg">
<br><a href="#">To Top</a><br><a name="15"></a><br> <br> <br>
<img galleryimg="no" src="img/big/16big.jpg">
<br><a href="#">To Top</a><br><a name="16"></a><br> <br> <br>
<img galleryimg="no" src="img/big/17big.jpg">
<br><a href="#">To Top</a><br><a name="17"></a><br> <br> <br>
<img galleryimg="no" src="img/big/18big.jpg">
<br><a href="#">To Top</a><br><a name="18"></a><br> <br> <br>
<img galleryimg="no" src="img/big/19big.jpg">
<br><a href="#">To Top</a><br><a name="19"></a><br> <br> <br>
<img galleryimg="no" src="img/big/20big.jpg">
</div></noscript>
</body>
</html>
Bookmarks