DOCTYPE HTML PUBLIC W3C DTD HTML 01 Transitional EN http www w3 org TR

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Разработка</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("td:first img").click(function(){
$(".slide").animate({marginRight: "1024px"},1000);
});
$("td:last img").click(function(){
$(".slide").animate({marginLeft: "1024px"},1000);
});
});
</script>
<style>
.center {
width: 1000px;
height: 220px;
background-color: gray;
text-align: center;
bottom: middle;
}
.Img {
width: 256;
height: 192;
}
.scroll {
cursor: pointer; /*Курсор для Скролла "Рука"*/
}
.box_for_slide {
width: 995px;
height: 210px;
background-color: red;
}
.slide {
position: relative;
background-color: red;
overflow: hidden;
height: 200px;
}
</style>
</head>
<body>
<table><tr>
<td colspan="3"><img class="scroll" alt="Назад" src="images/backw1x.gif"/></td>
<td class="center"><div class="slide">
<img class="Img" alt="Image" src="images/x01.jpg"/>
<img class="Img" alt="Image" src="images/x02.jpg"/>
<img class="Img" alt="Image" src="images/x03.jpg"/>
</div></td>
<td colspan="3"><img class="scroll" alt="Вперед" src="images/forw1x.gif"/></td>
</tr></table>
</body>
</html>