links opening in same div, instead of using iframe (CSS)

Associate
Joined
25 Apr 2007
Posts
139
Afternoon all,

Is this possible, a list of links and when you click one it opens the relvant info in a div on the same page. Like using iframes but using CSS. Any help appreciated.

Hope I have made this make sense.

Cheers
Simon
 
That's fine, what I linked is still applicable, just drop the float from the tab class and use the left attribute on the content class to move the content panes inwards.
 
Place at top of site:

Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

Place at bottom of site:
Code:
<script>
$("#teamnames a").click(function(e){
    e.preventDefault();
    $("#teamcontent").load(this.href);
});
</script>

Each link will contain the url in its href, ie:
Code:
	<a href="link1.html">Link 1</a><br />

You are of course limited to files on your own server due to ajax security.
 
Back
Top Bottom