-
Notifications
You must be signed in to change notification settings - Fork 1
/
dropdownmenu.html
101 lines (89 loc) · 7.75 KB
/
dropdownmenu.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>[Please input title]</title>
<style type="text/css">
#ec_im_container{
position: absolute;
left: 400px;
}
.icons {
display: inline-block;
}
.icon {
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
vertical-align: text-top;
background-image: url(http://a.baidu.com/xianzhi/wholeIconNew.gif);
background-repeat: no-repeat;
margin: 0 5px 0 0;
}
.icon-coupon {
background-position: 0px 0px;
}
.icon-tel {
background-position: 0px -32px;
}
.icon-certify {
background-position: 0px -64px;
}
</style>
<script type="text/javascript" src="src/tangram-1.3.9.source.js"></script>
<script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-3-0/esl.js"></script>
</head>
<body>
<h1>[Page Body]</h1>
<div id="ec_im_container">
<span class="icons EC_PP">
<a class="icon ec-ui-dropdown" style="background-image: url(http://1.wlstatic.newoffline.bae.baidu.com/lib/ecom/common/api/dropdownmenu0821/dropdownmenu.png);background-position: -1px -1px;vertical-align: text-bottom;margin-left:3px;"
href="#" data-tooltips="bl"
data-dropdown="{ favorite: {text: '收藏', url: 'http://www.qq.com'}, appraise: {text: '评价', url: 'http://www.sina.com'}, report: {text: '举报', url: 'http://www.sohu.com'}, share: {text: '分享', url: 'http://www.baidu.com'}, shield: {text: '屏蔽该结果', url: 'http://zhidao.baidu.com' }, addhomepage: {text: '添加到首页', url: 'http://tieba.baidu.com' } }">
</a>
</span>
<!-- <i class="icon icon-personal ec-ui-tip efc-cert _ecui_tips" data-renzheng='{"personal":{"a":{"fm":"im","rsvMt":"1017","p1":"1","url":"http://www.baidu.com/&dataTime=54&"},"img":"http://defensor-off.baidu.com:8080//vcard//img//plogo.gif","text":"","credit":"3"},"medical":{"a":{"fm":"","rsvMt":"","p1":"","url":""},"text":"综合、三级甲等"},"airline":{"a":{"fm":"im","rsvMt":"1008","p1":"1","text":"中航协认证","url":"http://www.baidu.com/search/verify_help.html"},"img":"http://bs.baidu.com/chuangxin/n2_jp_bg.gif","text":"机票代理资格"}}' data-tip-limite="true" data-tooltips="bc"></i> -->
</div>
<!-- <div class="ecl-ui-tip ecl-ui-tip-ps" style="left: 395px; top: 102px;"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="display: none; left: 5px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title" style="display: none;"></div><div class="ecl-ui-tip-body"><ul class="icon-dropdown-wraper"><li class="icon-dropdown-addhomepage"><a href="http://www.baidu.com" target="_blank">添加到首页</a></li><li class="icon-dropdown-shield"><a href="http://www.baidu.com" target="_blank">屏蔽该结果</a></li><li class="icon-dropdown-share"><a href="http://www.baidu.com" target="_blank">分享</a></li><li class="icon-dropdown-favorite"><a href="http://www.baidu.com" target="_blank">收藏</a></li><li class="icon-dropdown-appraise"><a href="http://www.baidu.com" target="_blank">评价</a></li><li class="icon-dropdown-report"><a href="http://www.baidu.com" target="_blank">举报</a></li></ul></div></div> -->
<!-- <div style="top:10px;" class="ecl-ui-tip ecl-ui-tip-ps ecl-ui-tip-ps-limite-width"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="left: 58px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title"><strong class="ecl-ui-tip-ps-title">携程旅行网携程旅行网携程旅行网携程旅行网携程旅行网:</strong><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-top"><span class="EC_PP"><a href="" target="_blank">收藏</a></span> | <span><a href="">评论</a></span></div></div><div class="ecl-ui-tip-body"><ul><li class="icon-medical"><span>携程旅携程旅</span></li><li class="icon-identity">已经通过<span class="EC_PP"><a>百度身份认证</a></span></li><li class="icon-empty"><div class="ecl-ui-tip-ps-level ecl-ui-tip-ps-level3">百度信誉星级</div></li></ul><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-bottom"><span><a href="">举报</a></span></div></div></div>
<div style="top:150px;" class="ecl-ui-tip ecl-ui-tip-ps ecl-ui-tip-ps-limite-width"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="left: 58px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title"><strong class="ecl-ui-tip-ps-title">携程旅行网携</strong><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-top"><span class="EC_PP"><a href="" target="_blank">收藏</a></span> | <span><a href="">评论</a></span></div></div><div class="ecl-ui-tip-body"><ul><li class="icon-medical"><span>携程旅携程旅</span></li><li class="icon-identity">已经通过<span class="EC_PP"><a>百度身份认证</a></span></li><li class="icon-empty"><div class="ecl-ui-tip-ps-level ecl-ui-tip-ps-level3">百度信誉星级</div></li></ul><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-bottom"><span><a href="">举报</a></span></div></div></div>
<div style="top:300px;" class="ecl-ui-tip ecl-ui-tip-ps"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="left: 58px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title"><strong class="ecl-ui-tip-ps-title">携程旅行网携程旅行网携程旅行网携程旅行网携程旅行网:</strong><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-top"><span class="EC_PP"><a href="" target="_blank">收藏</a></span> | <span><a href="">评论</a></span></div></div><div class="ecl-ui-tip-body"><ul><li class="icon-medical"><span>携程旅携程旅</span></li><li class="icon-identity">已经通过<span class="EC_PP"><a>百度身份认证</a></span></li><li class="icon-empty"><div class="ecl-ui-tip-ps-level ecl-ui-tip-ps-level3">百度信誉星级</div></li></ul><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-bottom"><span><a href="">举报</a></span></div></div></div>
<div style="top:450px;" class="ecl-ui-tip ecl-ui-tip-ps"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="left: 58px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title"><strong class="ecl-ui-tip-ps-title">携程旅行网携</strong><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-top"><span class="EC_PP"><a href="" target="_blank">收藏</a></span> | <span><a href="">评论</a></span></div></div><div class="ecl-ui-tip-body"><ul><li class="icon-medical"><span>携程旅携程旅</span></li><li class="icon-identity">已经通过<span class="EC_PP"><a>百度身份认证</a></span></li><li class="icon-empty"><div class="ecl-ui-tip-ps-level ecl-ui-tip-ps-level3">百度信誉星级</div></li></ul><div class="ecl-ui-tip-ps-right ecl-ui-tip-ps-right-bottom"><span><a href="">举报</a></span></div></div></div> -->
<script type="text/javascript">
require.config({
baseUrl: 'src',
paths: {
ecom: 'http://1.wlstatic.newoffline.bae.baidu.com/lib/ecom'
// pstiplib:'http://1.wlstatic.newoffline.bae.baidu.com/lib/ecom/common/api/pstiplib0826/pstiplib'
},
packages: [ ]
});
//引入大搜索的tip
require( ['ecom/common/api/dropdownmenu0821/dropdownmenu'], function(tipapi) {
// require( ['dropdownmenu/dropdownmenu'], function(tipapi) {
var opts = {
triggers:"ec-ui-dropdown",
layerOffsetLeft:5,
layerOffsetTop:5,
hideDelay:50,
statistics:{
identity:{
// url:'http://trustrcv.baidu.com/v.php',
// query:{tag:'vshenfenhover'}
},
coupon:{
// url:'http://1trustrcv.baidu.com/v.php',
// query:{tag:'coupon'}
},
telephone:{
// url:'http://3trustrcv.baidu.com/v.php',
// query:{tag:'telephone'}
}
}
};
tipapi.init(opts);
});
</script>
</body>
</html>