利用jquery实现google地图插件



60 239 80



特效描述:利用jquery实现 google地图插件,利用jquery实现google地图插件

代码结构

1. 引入CSS

<link href="css/default.css" rel="stylesheet" type="text/css" />
<link href="css/demo1.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/craftmap.js" type="text/javascript"></script>
<script src="js/init.js" type="text/javascript"></script>

3. HTML代码

<div id="content">
<div class="menu">
<a href="index.html">Demo 1</a>
<a href="demo2.html">Demo 2 - Fullscreen</a>
</div>		
<div class="relative">
<div class="demo1">
<img src="world_map.jpg" class="imgMap" />
<div class="marker" id="france" data-coords="960, 390">
<h3>France</h3>
<p>France, officially the French Republic. It is the largest west-European country and possesses second-largest Exclusive Economic Zone in the world.</p>
</div>
<div class="marker" id="russia" data-coords="1240, 260"> <!-- 1240, 260 -->
<h3>Russia</h3>
<p>Russia,  officially known as both Russia and the Russian Federation is a country in northern Eurasia. It is a federal semi-presidential republic, comprising 83 federal subjects.</p>
</div> 
<div class="marker" id="poland" data-coords="1045, 345">
<h3>Poland</h3>
<p>Poland, officially the Republic of Poland. The total area of Poland is 312,679 square kilometres (120,726 sq mi),[2] making it the 69th largest country in the world and the 9th largest in Europe.</p>
</div>  
<div class="marker" id="argentina" data-coords="585, 945">
<h3>Argentina</h3>
<p>Argentina, officially the Argentine Republic is the second largest country in South America by land area, after Brazil. It is constituted as a federation of 23 provinces and an autonomous city, Buenos Aires.</p>
</div>
<div class="marker" id="australia" data-coords="1710, 890">
<h3>Australia</h3>
<p>Australia, officially the Commonwealth of Australia. is a country in the Southern Hemisphere comprising the mainland of the Australian continent, the island of Tasmania, and numerous smaller islands in the Indian and Pacific Oceans. It is the world's sixth-largest country by total area.</p>
</div>
<div class="marker" id="brazil" data-coords="645, 770">
<h3>Brazil</h3>
<p>Brazil, officially the Federative Republic of Brazil  is the largest country in South America. It is the world's fifth largest country, both by geographical area and by population with over 192 million people.</p>
</div>
<div class="marker" id="usa" data-coords="395, 420">
<h3>USA</h3>
<p>The United States of America (also called the United States, the U.S., the USA, America, and the States) is a federal constitutional republic comprising fifty states and a federal district. The country is situated mostly in central North America, where its forty-eight contiguous states and Washington, D.C., the capital district, lie between the Pacific and Atlantic Oceans, bordered by Canada to the north and Mexico to the south.</p>
</div>
<div class="marker" id="japan" data-coords="1720, 410">
<h3>Japan</h3>
<p>Japan is an island nation in East Asia. Located in the Pacific Ocean, it lies to the east of the Sea of Japan, China, North Korea, South Korea and Russia, stretching from the Sea of Okhotsk in the north to the East China Sea and Taiwan in the south.</p>
</div>
</div>
<div class="controls">
<a href="#" rel="france">France</a>
<a href="#" rel="russia">Russia</a>
<a href="#" rel="poland">Poland</a>
<a href="#" rel="argentina">Argentina</a>
<a href="#" rel="australia">Australia</a>
<a href="#" rel="brazil">Brazil</a>
<a href="#" rel="usa">USA</a>
<a href="#" rel="japan">Japan</a>
</div>
</div>
</div>
<br><br><br>
<div style="text-align:center;clear:both">
</div>	



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滚动切换 滑动选项卡切换 拖动拽动 弹出层拖动 选项卡切换 滑动手风琴 窗口提示框 滑动星星打分 其他更多 图片拖动 文字提示框 地图 提示框/弹出层 全屏切换

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到