一款基于jQuery+CSS3实现的类似地图对某一地点增加标注,点击标注弹出详细信息。相关js代码jQuery(function(){ // initialize of labels $('.labels a#label1').fadeIn(100).effect('bounce', { times:3 }, 300, function() { $('.labels a#label2').fadeIn(100).effect('bounce', { times:3 }, 300, function() { $('.labels a#label3').fadeIn(100).effect('bounce', { times:3 }, 300, function() { $('.labels a#label4').fadeIn(100).effect('bounce', { times:3 }, 300, function() { $('.labels a#label5').fadeIn(100).effect('bounce', { times:3 }, 300, function() { $('.labels a#label6').fadeIn(100).effect('bounce', { times:3 }, 300); }); }); }); }); }); // description close $('.description .close').click(function() { $(this).parent().fadeOut(500); return false; }); // display description on click by labels $('.labels a').click(function() { $('.description p').html( $(this).find('p').html() ).parent().fadeIn(500); return false; }); // close dialog on click outside $('.container').click(function() { $('.description').fadeOut(500); });});
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)