-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
279 lines (255 loc) · 8.74 KB
/
index.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>多迪梦工场</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="animation">
<img src="img/logo.png" alt="">
<p> 分享设计作品?就去多迪梦工厂!</p>
</div>
<header>
<div class="content">
<div class="toolbar">
<p><a href="">联系我们</a></p>
<p><a href="">人力资源</a></p>
<p><a href="">我要留言</a></p>
</div>
<div class="nav">
<div>
<div></div>
</div>
<div>
<ul>
<li><a href="">网站首页</a></li>
<li>
<a href="">关于我们</a>
<div style="display: none">
<p>公司简介</p>
<p>品牌故事</p>
<p>企业理念</p>
<p>领导致辞</p>
</div>
</li>
<li><a href="">成功案例</a></li>
<li><a href="">人力资源</a></li>
<li><a href="">营销网络</a></li>
<li><a href="">新闻中心</a></li>
<li><a href="">联系我们</a></li>
</ul>
</div>
</div>
</div>
<div class="swiper">
<ul>
<li style="background-image: url(img/swiper1.jpg)"></li>
<li style="background-image: url(img/swiper2.jpg)"></li>
<li style="background-image: url(img/swiper3.jpg)"></li>
<li style="background-image: url(img/swiper4.jpg)"></li>
</ul>
<div class="swiper-pagination"></div>
</div>
<span class="left"></span>
<span class="right"></span>
</header>
<div class="container">
<div class="block">
<div class="title">
<p class="active">新闻动态</p>
<p>企业动态</p>
<p>行业资讯</p>
</div>
<div class="content">
<ul>
<li><a href="">大型溢油回收船开工<span class="right-side">2012/08/16</span></a></li>
<li><a href="">上海佳豪积极开展客户拜访工作<span class="right-side">2012/08/16</span></a></li>
<li><a href="">第二级800车汽车滚装船下水<span class="right-side">2012/08/16</span></a></li>
<li><a href="">CRANCHI 签约仪式<span class="right-side">2012/08/16</span></a></li>
<li><a href="">800PCC内河滚装船完工交用<span class="right-side">2012/08/16</span></a></li>
<li><a href="">国土资源部领导参观上海佳豪<span class="right-side">2012/08/16</span></a></li>
</ul>
<ul style="display:none">
<li><a href="">这是企业动态<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是企业动态<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是企业动态<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是企业动态<span class="right-side">2012/08/16</span></a></li>
<li><a href="">8这是企业动态<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是企业动态<span class="right-side">2012/08/16</span></a></li>
</ul>
<ul style="display:none">
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
<li><a href="">这是行业资讯<span class="right-side">2012/08/16</span></a></li>
</ul>
</div>
</div>
<div class="block">
<div class="title">
<p>产品中心</p>
<span class="right-side">Learn More >> </span>
</div>
<div class="content">
<div>
<img src="img/product1.png" alt="">
<p>MAIORA27</p>
</div>
<div>
<img src="img/product2.png" alt="">
<p>MAIORA24S</p>
</div>
<div>
<img src="img/product3.png" alt="">
<p>MAIORA31DP</p>
</div>
</div>
</div>
<div class="block">
<div class="title">咨询热线</div>
<div class="content">
<p><b>Tel:</b>345678987654</p>
<p><b>Fax:</b>456789987654</p>
<p><b>Web:</b>www.sjdflkasjdf.com</p>
<br>
<div>
<p>检索服务网点</p>
<br>
<div><img src="img/map.png" alt=""></div>
<div><select name="" id="">
<option value="">北京</option></select></div>
</div>
</div>
</div>
</div>
<footer>
<div class="content">
<div class="toolbar">
<p><a href="">招贤纳才</a></p>
<p><a href="">新闻动态</a></p>
<p><a href="">联系我们</a></p>
<p><a href="">投资者关系</a></p>
</div>
<div class="about">
© 2015-2020 版权所有 dodi.cn 分享设计作品?就去多迪梦工厂!
</div>
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/less.min.js"></script>
<script>
function initSwiper(className){ // 初始化swiper轮播图
var index = $(className+' li').length;
var nowIndex = 0;
var isAnimatie = false; //防止多次点击
for(var i = 0;i<index;i++){
if(i==0){
$(className).children('.swiper-pagination').append('<span class="active"></span>')
}
else{
$(className).children('.swiper-pagination').append('<span ></span>')
}
}
$(className).children('ul').prepend($(className+' li:eq('+ (index-1) +')').prop('outerHTML'))
$(className).children('ul').append($(className+' li:eq(1)').prop('outerHTML'))
$(className).children('ul').css('left','-100%')
var newIndex = $(className+' li').length
$(className).children('ul').css('width',100*newIndex+'%');
$(className+' li').css('width',100/newIndex+'%')
function next(nI){
$(className+' .swiper-pagination span').eq(nI).removeClass('active');
$(className+' .swiper-pagination span').eq((nI+1)%index).addClass('active');
isAnimatie = true;
if(nI == $(className+' li').length-3){
$(className).children('ul').animate({left:'-'+(nI+2)*100+'%'},1500,function(){
nowIndex = 0;
$(className).children('ul').css('left','-100%')
isAnimatie = false;
})
}
else{
$(className).children('ul').animate({left:'-'+(nI+2)*100+'%'},1500,function(){
nowIndex ++;
isAnimatie = false;
})
}
}
function prev(nI){
$(className+' .swiper-pagination span').eq(nI).removeClass('active');
$(className+' .swiper-pagination span').eq((nI-1+index)%index).addClass('active');
isAnimatie = true;
if(nI == 0){
$(className).children('ul').animate({left:'0%'},2000,function(){
nowIndex = newIndex-3;
$(className).children('ul').css('left','-'+(newIndex-2)*100+'%')
isAnimatie = false;
})
}
else{
$(className).children('ul').animate({left:-nI*100+'%'},2000,function(){
nowIndex --;
isAnimatie = false;
})
}
}
var interval = setInterval(function(){
next(nowIndex);
},5000)
$('header .right').on('click',function(){
if(!isAnimatie){
clearInterval(interval);
next(nowIndex)
interval = setInterval(function(){
next(nowIndex);
},5000)
}
})
$('header .left').on('click',function(){
if(!isAnimatie){
clearInterval(interval);
prev(nowIndex)
interval = setInterval(function(){
next(nowIndex);
},5000)
}
})
}
$(function(){
$('.container .block:eq(0) .title p').on('click',function(){
var index = $(this).index();
$('.container .block:eq(0) .title p').removeClass('active');
$(this).addClass('active');
$('.container .block:eq(0) .content ul').hide();
$('.container .block:eq(0) .content ul').eq(index).show();
})
$('header .nav li div').hover(function(){
$(this).addClass('isIn')
},function(){
$(this).removeClass('isIn')
$(this).fadeOut(300);
})
var ss;
$('header .nav li a').hover(function(){
$(this).siblings('div').stop(true,true).fadeIn(300);
},function(){
var that = $(this);
ss = setTimeout(function(){
that.siblings('div').stop().fadeOut(300);
},300)
})
$('header .nav li div').hover(function(){
clearTimeout(ss)
},function(){
$(this).stop().fadeOut(500);
})
initSwiper('.swiper')
})
</script>
</body>
</html>