Quote:
Originally Posted by chiptz
great release, however i am not able to install it without vbadvanced, does anyone have this working only with vB?
|
Ya, if you want it running on say the FORUM HOME
Add this block of code to the HEADINCLUDE Template
Code:
<link rel="stylesheet" type="text/css" href="ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
Then add this block of code to the FORUMHOME Template where ever you wish to have to displayed.. ie before <!-- MAIN if you want it above the Forums) ..
Code:
<div id="ajaxcontentarea" style="border:1px solid gray; width:100%; height: 400px; background-color: white; padding: 2px">
</div>
<div id="maintab" class="modernbricksmenu2">
<ul>
<li class="selected"><a href="tabexternal.php" rel="ajaxcontentarea">Tab 1</a></li>
<li><a href="tabexternal2.php" rel="ajaxcontentarea">Tab 2</a></li>
<li><a href="tabexternal3.php" rel="ajaxcontentarea">Tab 3</a></li>
<li><a href="tabexternal4.php" rel="ajaxcontentarea">Tab 4</a></li>
</ul>
</div>
<br style="clear: left" />
<script type="text/javascript">
var mytabs=new ddajaxtabs("maintab", "ajaxcontentarea")
mytabs.setpersist(true)
mytabs.setselectedClassTarget("link") //"link" or "linkparent"
mytabs.init()
</script>