-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
143 lines (131 loc) · 4.23 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>sprint style</title>
<link rel="stylesheet" type="text/css" href="css/instreet.sprint.css"></link>
<style type="text/css">
#demo{margin: 10% auto;width: 980px;
position: relative;
}
</style>
</head>
<body>
<div id="demo">
<img height="448" src="http://img02.taobaocdn.com/tps/i2/T18KrSXaJnXXb2srvl-780-420.jpg">
<div id="instreet-plugin-container">
<div class="in-ad-wrapper">
<ul class="in-tabs-wrapper">
<li class="clearfix tap first">
<a class="shop" href="javascript:;">
<span></span><em>折扣</em>
</a>
</li>
<li class="clearfix tap">
<a class="ad" href="javascript:;"><span></span><em>推广</em></a>
</li>
<li class="clearfix tap">
<a class="weibo" href="javascript:;"><span></span><em>微博</em></a>
</li>
<li class="clearfix tap">
<a class="wiki" href="javascript:;"><span></span><em>百科</em></a>
</li>
<li class="clearfix tap">
<a class="weather" href="javascript:;"><span></span><em>天气</em></a>
</li>
<li class="clearfix tap">
<a class="news" href="javascript:;"><span></span><em>新闻</em></a>
</li>
<li class="clearfix tap">
<a class="share" href="javascript:;"><span></span><em>分享</em></a>
</li>
</ul>
<ul class="in-contents-wrapper">
<li class="shop">
<h3 class="title clearfix"><a title="关闭" href="javascript:;" class="in-close">×</a>
品牌折扣
</h3>
<div class="main-cont">
<a target="_blank" class="pro-box" href="http://www.instreet.cn">
<img
src="images/tad.jpg"/><label class="pro-info"><span class="pro-name">名人瑞裳2012秋冬新款女装欧美修身系带长款风衣女外套春秋12537</span>
<span class="pro-tobuy"><em>进入商店</em></span><span class="pro-price">¥199.00</span></label>
</a>
</div>
</li>
<li class="ad">
<h3 class="title clearfix"><a title="关闭" href="javascript:;" class="in-close">×</a>
产品推广
</h3>
<div class="main-cont"><img src="images/gad.png"></img></div>
</li>
<li class="weather">
<h3 class="title clearfix"><a title="关闭" href="javascript:;" class="in-close">×</a>
天气预报
</h3>
<div class="main-cont">
<img src="images/weather.png">
</div>
</li>
<li class="news">
<h3 class="title clearfix"><a title="关闭" href="javascript:;" class="in-close">×</a>
热门新闻
</h3>
<div class="main-cont"><img src="images/news.png"></div>
</li>
<li class="share">
<h3 class="title clearfix"><a title="关闭" href="javascript:;" class="in-close">×</a>
分享图片
</h3>
<div class="main-cont">
<a href="" class="sina-ico"></a>
<a href="" class="tx-ico"></a>
<a href="" class="qz-ico"></a>
<a href="" class="renren-ico"></a>
<a href="" class="sohu-ico"></a>
<a href="" class="wangyi-ico"></a>
<a href="" class="douban-ico"></a>
<a href="" class="kaixin-ico"></a>
</div>
</li>
</ul>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var timerId=null;
$('.in-tabs-wrapper li').mouseover(function(){
clearTimeout(timerId);
var tar=this;
timerId=setTimeout(function(){show(tar)},150);
});
var closing=false;
var show=function(tar){
if($(tar).hasClass('focus')||closing){
return;
}
$('#instreet-plugin-container .in-tabs-wrapper .focus').removeClass('focus');
$(tar).addClass('focus');
var cn=$(tar).find('a').attr('class');
if($(".in-ad-wrapper").height()!=290){
$(".in-ad-wrapper").animate({width:'290px'},400,'swing',function(){
$('.in-contents-wrapper').find('li').hide();
$('.in-contents-wrapper').find('li.'+cn).show();
});
}
},
hide=function(){
closing=true;
$('.in-contents-wrapper').find('li').hide();
$(".in-ad-wrapper").animate({width:'26px'},'fast','swing',function(){
$('#instreet-plugin-container .in-tabs-wrapper .focus').removeClass('focus');
});
};
$('.in-close').click(function(){
hide();
setTimeout(function(){closing=false;},1000);
});
</script>
</body>
</html>