jQuery城市定位选择通讯录插件


jQuery城市定位选择通讯录插件
jQuery城市定位选择通讯录插件以及定位选择通讯录等js/jquery网页特效代码下载。

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/aui.2.0.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_420420_jrzewrwrpi0h33di.css" />

2. 引入JS

<script src="js//jquery-3.2.1.min.js"></script>

3. HTML代码

		<div class="dingwei">
			<li class="iconfont icon-dingwei hc1">&nbsp;
				<adsf class="h1c">吉林</adsf>
			</li>
		</div>
		<ul class="aui-list aui-list-in">
			<li class="aui-list-header">
				<p class="iconfont icon-star-small">&nbsp;热门城市</p>
			</li>
			<li class="aui-list-item">
				<ul class="list_rm_ul" class="zhv3">
					<li class="zhv4">杭州</li>
					<li class="zhv4">上海</li>
					<li class="zhv4">成都</li>
					<li class="zhv4">武汉</li>
					<li class="zhv4">北京&nbsp;
						<asd class="iconfont icon-g hc2"></asd>
					</li>
					<li class="zhv4">重庆</li>
					<li class="zhv4">南京</li>
					<li class="zhv4">天津</li>
					<li class="zhv4">深圳</li>
					<li class="zhv4">深圳</li>
				</ul>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				A
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				B
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				C
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1&nbsp;
						<asd class="iconfont icon-g hc2"></asd>
					</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				D
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				E
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				F
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				G
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				H
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				I
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				J
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				K
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				L
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				M
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				N
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				O
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				P
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				Q
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				R
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				S
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				T
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				U
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				V
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				W
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				X
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				Y
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-header hc1" style="font-weight: 900;">
				Z
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
			<li class="aui-list-item">
				<div class="aui-list-item-inner">
					<div class="aui-list-item-title">Item1</div>
				</div>
			</li>
		</ul>
		<div class="zhv3 h2c zflist" style="width: 6vw;position: fixed;bottom: 5%;right: 3%;text-align: center;font-weight: 800;">
			<div>热门</div>
			<div>A</div>
			<div>B</div>
			<div>C</div>
			<div>D</div>
			<div>E</div>
			<div>F</div>
			<div>G</div>
			<div>H</div>
			<div>I</div>
			<div>J</div>
			<div>K</div>
			<div>L</div>
			<div>M</div>
			<div>N</div>
			<div>O</div>
			<div>P</div>
			<div>Q</div>
			<div>R</div>
			<div>S</div>
			<div>T</div>
			<div>U</div>
			<div>V</div>
			<div>W</div>
			<div>X</div>
			<div>Y</div>
			<div>Z</div>
		</div>
		<div class="zhv5 biaoqian" style="display: none;">
			A
		</div>
		<script>
			var ic = [];
			$(function() {
				var listgt = $(".zflist div").eq(0).height();
				$(".zflist div").each(
					function(r) {
						ic.push($(".zflist div").eq(r).offset().top - $(window).scrollTop())
					}
				)
				$(".zflist").on("touchstart", function(event) {
					ff(event)
					$(".biaoqian").show();
				})
				$(".zflist").on("touchend", function() {
					$("html, body").animate({
						scrollTop: $(".aui-list-header").eq(icae).offset().top + "px"
					}, {
						duration: 500,
						easing: "swing"
					});
					$(".biaoqian").hide();
					return false;
				})
				$(".zflist").on("touchmove", function(event) {
					event.preventDefault();
					ff(event)
				})
				function ff(event) {
					var dheight = event.changedTouches[0].clientY;
					$(ic).each(
						function(ri) {
							if(dheight < ic[0]) {
								overfun(0);
								return false;
							}
							if(dheight > ic[ic.length - 1]) {
								overfun(ic.length - 1);
								return false;
							}
							if(ic[ri] < dheight && dheight < ic[ri] + listgt) {
								overfun(ri);
								return false;
							}
						}
					)
				}
				var icae = 0;
				function overfun(aic) {
					icae = aic;
					$(".biaoqian").html($(".zflist div").eq(aic).html());
					$("html, body").stop(true);
					return false;
				}
			})
		</script>

相关推荐

发表评论

相关文章