cmdown
asked on
Problem with javascript/css tabs
Hey, I am trying to incorporate some tabs on to my webpage, without actually having a new page for each tab. But rather an 'anchor', so that I can easily swtich between the two or more tabs.
I've been trying to follow the tutorial at:
http://phrogz.net/JS/Tabtastic/index.html
but it doesnt seem to be working.
I've copied the markup code:
<ul class="tabset_tabs">
<li><a href="#tab1" class="active">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1" class="tabset_content">
<h2 class="tabset_label">Tab 1</h2>
Tab 1 Content
</div>
<div id="tab2" class="tabset_content">
<h2 class="tabset_label">Tab 2</h2>
Tab 2 Content
</div>
<div id="tab3" class="tabset_content">
<h2 class="tabset_label">Tab 3</h2>
Tab 3 Content
</div>
copied the header files:
<script type="text/javascript" src="addclasskillclass.js" ></script>
<script type="text/javascript" src="attachevent.js"></scr ipt>
<script type="text/javascript" src="addcss.js"></script>
<script type="text/javascript" src="tabtastic.js"></scrip t>
and also copied the source files into my directory:tabtastic.css,ta btastic.js ,AttachEve nt.js, AddClassKillClass.js, AddCSS.js.
But I dont understand why it doesnt work.
Any help is much appreciated.
thanks
I've been trying to follow the tutorial at:
http://phrogz.net/JS/Tabtastic/index.html
but it doesnt seem to be working.
I've copied the markup code:
<ul class="tabset_tabs">
<li><a href="#tab1" class="active">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1" class="tabset_content">
<h2 class="tabset_label">Tab 1</h2>
Tab 1 Content
</div>
<div id="tab2" class="tabset_content">
<h2 class="tabset_label">Tab 2</h2>
Tab 2 Content
</div>
<div id="tab3" class="tabset_content">
<h2 class="tabset_label">Tab 3</h2>
Tab 3 Content
</div>
copied the header files:
<script type="text/javascript" src="addclasskillclass.js"
<script type="text/javascript" src="attachevent.js"></scr
<script type="text/javascript" src="addcss.js"></script>
<script type="text/javascript" src="tabtastic.js"></scrip
and also copied the source files into my directory:tabtastic.css,ta
But I dont understand why it doesnt work.
Any help is much appreciated.
thanks
A thing that might be a problem is that your webserver is case-sensitive. This could mean that it can't locate "addcss.js" when it is stored as "AddCSS.js".
You would have to test whether or not this is the case.
-r-
You would have to test whether or not this is the case.
-r-
ASKER
Thanks for the input roonaan, but i'm currently running the system on my local machine using the php apache server as I do not want to interfere with the online website. I have tried changing the case, but it still doesn't work.
I think there might be a problem with the source js files.
Does anyone know of any other scripts I could use for content tabs?
Thanks
I think there might be a problem with the source js files.
Does anyone know of any other scripts I could use for content tabs?
Thanks
Probably going to get my ass kicked over this, but you could try http://www.roonaan.nl/lib/view/js.TabBox.js
-r-
-r-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
-r-