<head>
<title>Gallery</title>
<style type="text/css">
body{
margin:0;
padding:50px;
text-align:center;
font-family:Arial, Helvetica, sans-serif;
color:#FFF;
background:#000;
}
a img{border:none;}
#gallery{
width:663px;
height:400px;
overflow:hidden;
position:relative;
z-index:1;
margin:0 auto 100px auto;
}
#tabs2{
list-style:none;
padding:0;
margin:0;
width:130px;
height:400px;
float:left;
}
#tabs2 li{
padding:0;
margin:0;
float:left;
}
#tabs2 li a img{
display:block;
width:120px;
height:90px;
}
#tabs2 li a{
display:block;
border:5px solid #999;
width:120px;
height:90px;
}
#tabs2 li a:hover{border:5px solid #fff;}
#tabs2 li a img.fullPic, #gallery1 div{
position:absolute;
z-index:1;
left:130px;
top:0;
width:533px;
height:400px;
}
#tabs2 li a:hover img.fullPic{z-index:3;}
#gallery div{
z-index:2;
background:#242424;
}
</style>
</head>
<script language="JavaScript">
var imagesMassiv = new Array('images/pic1.jpg', 'images/pic2.jpg', 'images/pic3.jpg', 'images/pic4.jpg');
var countImages = 0;
var timer;
function show(){
if(countImages > 3){
countImages = 0;
}
document.images['Show'].src = imagesMassiv[countImages];
countImages = countImages + 1;
}
</script>
<body>
<h1>Gallery</h1>
<div id="gallery">
<table>
<ul id="tabs2">
<li><a href="#"><img src="images/pic1s.jpg" alt="" /><img src="images/pic1.jpg" class="fullPic" alt="" /></a></li>
<li><a href="#"><img src="images/pic2s.jpg" alt="" /><img src="images/pic2.jpg" class="fullPic" alt="" /></a></li>
<li><a href="#"><img src="images/pic3s.jpg" alt="" /><img src="images/pic3.jpg" class="fullPic" alt="" /></a></li>
<li><a href="#"><img src="images/pic4s.jpg" alt="" /><img src="images/pic4.jpg" class="fullPic" alt="" /></a></li>
<li><a href="#"><img src="images/pic1.jpg" id="Show" class="fullPic" /></a></li>
</ul>
</table>
</div>
<input type="button" value="PLAY" onClick="timer = setInterval('show()', 50)">
<input type="button" value="STOP" onClick="clearInterval(timer)">
</body>
</html> |