google地图jquery插件特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 google地图jquery插件特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

google地图jquery插件特效代码

HTML代码(demo2.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>google��ͼjquery���</title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<link href="css/demo2.css" rel="stylesheet" type="text/css" />
<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>
</head>

<body>

<div class="menu">
<a href="index.html">Demo 1</a>
<a href="demo2.html">Demo 2</a>
</div>	

<div class="demo2">
<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>
</body>
</html>









HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>google��ͼjquery���</title>
<meta name="keywords" content="jQuery Google��ͼ " />
<link href="css/default.css" rel="stylesheet" type="text/css" />
<link href="css/demo1.css" rel="stylesheet" type="text/css" />
<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>
</head>
<body>
<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>	
</body>
</html>










JS代码(init.js):

$(function(){
	$('.demo1').craftmap({
	image:{
	width:1994,height:1303}
}
);
	$('.demo2').craftmap({
	fullscreen:true,image:{
	width:1994,height:1303}
}
);
}
);
	

CSS代码(default.css):

/* ------ general-----------------------------------------------*/
html,body{padding:0;margin:0;}
body{font-family:Arial,Helvetica,sans-serif;background:#fff;}
/* ------ craftmap-----------------------------------------------*/
a{color:#fff;text-decoration:none;}

CSS代码(demo1.css):

@import url(http://fonts.googleapis.com/css?family=Engagement);h1{text-align:center;font-family:'Engagement',sans-serif;font-size:88px;font-weight:normal;color:#606060;}
#content{margin:20px auto 0;width:1000px;}
.demo1{float:left;width:1000px;height:600px;-moz-box-shadow:0 0 5px #ddd;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd;}
.menu{margin-bottom:40px;text-align:center;}
.menu a{color:#D7363A;font-size:11px;font-weight:bold;margin:0 10px;}
.preloader{background:url(../images/loader.gif) no-repeat center #fff;}
.marker{display:block;text-indent:-9999px;width:15px;height:23px;outline:none;background:url(../images/marker.png) no-repeat;cursor:pointer;}
.popup{width:300px;position:absolute;padding:8px;background:#2a2a2a;color:#fff;font-weight:bold;font-size:11px;line-height:20px;}
.popup h3{margin:0;margin-bottom:10px;font-family:'Cabin Condensed',sans-serif;font-weight:normal;font-size:20px;}
.popup .close{display:block;text-indent:-9999px;position:absolute;top:4px;right:4px;width:16px;height:16px;outline:none;background:url(../images/close.gif) no-repeat;cursor:pointer;}
.relative{position:relative;}
.controls{position:absolute;top:20px;left:20px;z-index:20;}
.controls a{background:#2a2a2a;background:rgba(0,0,0,.6);display:block;float:left;clear:both;font-size:11px;font-weight:bold;line-height:28px;margin-bottom:4px;outline:none;padding:0 15px;text-decoration:none;}
.controls a:hover{background:#eee;color:#2a2a2a;}
.controls .active{background:#D7363A;color:#fff;}

CSS代码(demo2.css):

.menu{position:absolute;top:330px;left:20px;z-index:20;}
.menu a{background:#B00000;background:rgba(176,0,0,.6);display:block;float:left;clear:both;font-size:11px;font-weight:bold;line-height:28px;margin-bottom:4px;outline:none;padding:0 15px;text-decoration:none;}
.preloader{background:url(../images/loader.gif) no-repeat center #fff;}
.marker{display:block;text-indent:-9999px;width:15px;height:23px;outline:none;background:url(../images/marker.png) no-repeat;cursor:pointer;}
.popup{width:300px;position:absolute;padding:8px;background:#2a2a2a;color:#fff;font-weight:bold;font-size:11px;line-height:20px;}
.popup h3{margin:0;margin-bottom:10px;font-family:'Cabin Condensed',sans-serif;font-weight:normal;font-size:20px;}
.popup .close{display:block;text-indent:-9999px;position:absolute;top:4px;right:4px;width:16px;height:16px;outline:none;background:url(../images/close.gif) no-repeat;cursor:pointer;}
.controls{position:absolute;top:20px;left:20px;z-index:20;}
.controls a{background:#2a2a2a;background:rgba(0,0,0,.6);display:block;float:left;clear:both;font-size:11px;font-weight:bold;line-height:28px;margin-bottom:4px;outline:none;padding:0 15px;text-decoration:none;}
.controls a:hover{background:#eee;color:#2a2a2a;}
.controls .active{background:#D7363A;color:#fff;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
160.92 KB
jquery特效2
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章