Giarc86
Expert Member
- Joined
- May 28, 2008
- Messages
- 1,243
- Reaction score
- 4
Hi all,
I have a HTML/CSS/Javascript content tab system that I am using and a problem I am having is that while the page is loading it shows all the content on the page at once, only once the page has finished loading does it put it into the tabs.
Now I know one can load say just the first tab, and then load the other tabs once the page has loaded but I am not sure how to go about that.
I have tried using:
But I am not sure if this is 100% correct or even the correct way to do this. I just tried with a few Google suggestions. I can post the HTML if need be.
Any help will be appreciated.
Thanks!
I have a HTML/CSS/Javascript content tab system that I am using and a problem I am having is that while the page is loading it shows all the content on the page at once, only once the page has finished loading does it put it into the tabs.
Now I know one can load say just the first tab, and then load the other tabs once the page has loaded but I am not sure how to go about that.
I have tried using:
Code:
<script type="text/javascript">
$(function(){
setTimeout(function(){
$( "#tabcontent" ).tabs();
$('#page-2').show();
}, 3000);
});
</script>
But I am not sure if this is 100% correct or even the correct way to do this. I just tried with a few Google suggestions. I can post the HTML if need be.
Any help will be appreciated.
Thanks!