<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Документ Без Имени</title>
<script type="text/javascript">
</script>
<style type="text/css">
#gallery { width:570px;height:375px; background:#CCCCCC; border-radius:15px;}
#lpic{ width:370px;height:365px; background:#666666; border-radius:12px; margin:5px;float:left; position:relative;}
#spic{width:185px; height:365px; background:#666666; border-radius:12px;top:5px; margin-left:380px;position:relative; }
div#spic img {width:85px; height:85px; position:relative;left:5px; margin-top:5px; border-radius:8px;cursor:crosshair}
div#lpic img { width:360px; height:355px; position:relative;left:5px; margin-top:5px; border-radius:8px; background:#FFFFFF}
</style>
<script src="file:///D|/Documents and Settings/Admin/Мои документы/Мои скрипты/jquery-1.7.2.min.js">
</script>
<script type="text/javascript">
window.onload=function(){
var main = document.getElementById('largepic');//большая картинка
var smallContainer = document.getElementById('spic');//див, в котором маленькие картинки
smallContainer.onclick = function(e) {//вешаем событие на ВЕСЬ контейнер
var trg = window.event ? window.event.srcElement : e.target;//получаем картинку, по которой кликнули
*!*main.src = trg.src;*/!*//меняем src большой картинки
}
}
</script>
</head>
<body>
<div id='gallery'>
<div id='lpic'>
<img id='largepic'/>
</div>
<div id='spic'>
<img src="http://im4-tub-ua.yandex.net/i?id=225745906-46-72"/>
<img src="http://im4-tub-ua.yandex.net/i?id=225745906-46-72&n=17"/>
<img src="http://im8-tub-ua.yandex.net/i?id=5648272-06-72"/>
<img src="http://im6-tub-ua.yandex.net/i?id=367196349-12-72"/>
<img src="http://im5-tub-ua.yandex.net/i?id=107622380-10-72"/>
<img src="http://im5-tub-ua.yandex.net/i?id=321975975-33-72"/>
<img src="http://im6-tub-ua.yandex.net/i?id=367196349-12-72"/>
<img src="http://im8-tub-ua.yandex.net/i?id=465839557-47-72"/>
</div>
</div>
</body>
</html>