simsek97
01-17-2009, 11:22 AM
1) Script Title: Tab Content script (v 2.0)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem: i want to use tabcontent script in saparate frames. i mean tab links in frame A and tab contents in frame B. what changes should i make to make this possible???
let me detail my problem???
i am using a frameset like this
<frameset border='1' frameborder='1' framespacing='0' rows='10%, *''>
<frame name='frame_A' id='frame_A' src='frame_a.html'>
<frame name='frame_B' id='frame_B' src='frame_b.html'>
</frameset>
in frame_a.html i am using these codes
in head section
<link rel='stylesheet' type='text/css' href='tabcontent.css'>
in body section
<ul id="myTabs" class="shadetabs">
<li><a href="#" id="topTab0" rel="tab0" class="selected">Tab0</a></li>
<li><a href="#" id="topTab1" rel="tab1">Tab1</a></li>
<li><a href="#" id="topTab2" rel="tab2">Tab2</a></li>
</ul>
in frame_b.html i am using these codes
in head section
<script type="text/javascript" src="tabcontent.js"></script>
in body section
<div style="width:100%; height:100%; padding:0px">
<div id="tab0" class="tabcontent">Content 0</div>
<div id="tab1" class="tabcontent">Content 1</div>
<div id="tab2" class="tabcontent">Content 2</div>
</div>
<script type="text/javascript">
var topTabs=new ddtabcontent("myTabs")
topTabs.setpersist(true)
topTabs.setselectedClassTarget("link")
topTabs.init()
</script>
so i know i have to edit tabcontent.js but i dont know which changes i should make... please help me???
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem: i want to use tabcontent script in saparate frames. i mean tab links in frame A and tab contents in frame B. what changes should i make to make this possible???
let me detail my problem???
i am using a frameset like this
<frameset border='1' frameborder='1' framespacing='0' rows='10%, *''>
<frame name='frame_A' id='frame_A' src='frame_a.html'>
<frame name='frame_B' id='frame_B' src='frame_b.html'>
</frameset>
in frame_a.html i am using these codes
in head section
<link rel='stylesheet' type='text/css' href='tabcontent.css'>
in body section
<ul id="myTabs" class="shadetabs">
<li><a href="#" id="topTab0" rel="tab0" class="selected">Tab0</a></li>
<li><a href="#" id="topTab1" rel="tab1">Tab1</a></li>
<li><a href="#" id="topTab2" rel="tab2">Tab2</a></li>
</ul>
in frame_b.html i am using these codes
in head section
<script type="text/javascript" src="tabcontent.js"></script>
in body section
<div style="width:100%; height:100%; padding:0px">
<div id="tab0" class="tabcontent">Content 0</div>
<div id="tab1" class="tabcontent">Content 1</div>
<div id="tab2" class="tabcontent">Content 2</div>
</div>
<script type="text/javascript">
var topTabs=new ddtabcontent("myTabs")
topTabs.setpersist(true)
topTabs.setselectedClassTarget("link")
topTabs.init()
</script>
so i know i have to edit tabcontent.js but i dont know which changes i should make... please help me???