Here is one way to do this (using fancybox).
First (of course) enable the fancybox and jQuery libraries if you haven't already.
<link rel="stylesheet" type="text/css" href="jquery.fancybox-1.3.4.css" />
<script src="jquery-1.4.3.min.js"></script>
<script src="jquery.fancybox-1.3.4.pack.js"></script>
-, li (, , , ). - href, , - data, .
<li class="loaction1">
<span class="loactionImg">
<a href="#map" data-yourwebsite-address="Ball Road, Anaheim">
<img src="<?php bloginfo('template_url'); ?>/images/location.jpg" alt="">
</a>
</span>
</li>
<li class="loaction2">
<span class="loactionImg">
<a href="#map" data-yourwebsite-address="112 Beacon Street, Boston">
... and so on ...
, , fancybox. , , p 0. , display: none , 0.
<p style="height: 0px; overflow: hidden;">
<div align="center" id="map" style="width: 600px; height: 400px"><br/></div>
</p>
, fancybox. , fancybox . fancybox , showAddress , , link data.
$(document).ready(function()
{
$(".loactionImg a").fancybox({
onStart: function(evt) { showAddress($(evt).data("yourwebsite-address")); }
});
});
! :-) , (slighly messy), ,