ok, so here's one way you could do it. I've also put in a nice little fade effect using jquery. It's just text but it can be used for images as well, so the HTML will look something like this:
Code:
<div class="section" id="info" style="margin-top: 0px; ">
<h3><a href="#">Button</a></h3>
</div>
<div class="section" id="search" style="margin-top: 0px; ">
<h3><a href="#">Button2</a></h3>
</div>
<div class="section" id="player" style="margin-top: 0px; ">
<h3><a href="#">Button3</a></h3>
</div>
<div class="section" id="socials" style="margin-top: 0px; ">
<h3><a href="#">Button4</a></h3>
</div>
<div id="content-reveal">
<ul id="newsticker_1" class="newsticker">
<li>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</li>
<li>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip...</li>
<li>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum...</li>
<li>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia...</li>
<li>Bubble bubble ipsum dolor sit amet, consectetur adipisicing elit...</li>
</ul>
</div>
and then the jquery:
Code:
$(document).ready( function() {
$('#content-reveal').hide();
$('#info').click( function() {
$('#content-reveal').fadeOut( 500, function() {
$('#content-reveal').html( '<b>info HTML</b>' );
$('#content-reveal').fadeIn( 500 );
} );
} );
$('#search').click( function() {
$('#content-reveal').fadeOut( 500, function() {
$('#content-reveal').html( '<b>search HTML</b>' );
$('#content-reveal').fadeIn( 500 );
} );
} );
$('#player').click( function() {
$('#content-reveal').fadeOut( 500, function() {
$('#content-reveal').html( '<b>player HTML</b>' );
$('#content-reveal').fadeIn( 500 );
} );
} );
$('#socials').click( function() {
$('#content-reveal').fadeOut( 500, function() {
$('#content-reveal').html( '<b>socials HTML</b>' );
$('#content-reveal').fadeIn( 500 );
} );
} );
} );
should work. Thats the basic idea anyway. You can always just use button images or actuall styled button tags instead of the links.
Bookmarks