I need to have each div link make the appropriate div text to appear at the bottom of the page. I have it partially set up but I wanted to know if there was a better way to steam line this code.
<script type="text/javascript">
$(function () {
$('#item1').hover(
function () {
$('#Tile1').fadeIn( 'fast' );
},
function () {
$('#Tile1').fadeOut( 'fast' );
});
});
$(function () {
$('#item2').hover(
function () {
$('#Tile2').fadeIn( 'fast' );
},
function () {
$('#Tile2').fadeOut( 'fast' );
});
});
</script>
<div class="four columns alpha">
<a href="solutions/mobile.php" id="item1">
<img src="images/1.png" alt="" class="tiles" /></a>
</div>
<div id="Tile1" class=" sixteen columns" style="display: none;">
<h3 class="center">GIS / Mapping</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id justo
</p>
</div>
The Divs are not nested because I want the text to always appear at the bottom of the page no matter which link you hover over.