Created
August 29, 2012 19:23
-
-
Save lenagroeger/3517540 to your computer and use it in GitHub Desktop.
homeowner map click/show function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSS: | |
.blurb { | |
width:200px; | |
height:60px; | |
background:#444; | |
color:white; | |
display:none; | |
} | |
HTML: | |
<div class="blurb-MA blurb"> | |
BLAH BLAH BLAH ABOUT MASS | |
</div> | |
<div class="blurb-TX blurb"> | |
BLAH BLAH BLAH ABOUT TEXAS | |
</div> | |
<div class="blurb-CA blurb"> | |
BLAH BLAH BLAH ABOUT CALIFORNIA | |
</div> | |
JAVASCRIPT: | |
var current = it.key; | |
$(".blurb").hide(); | |
$(".blurb-"+current).show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment