1) Script Title: Tab Content script (v 2.0)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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
in frame_a.html i am using these codesHTML Code:<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 head section
in body sectionCode:<link rel='stylesheet' type='text/css' href='tabcontent.css'>
in frame_b.html i am using these codesCode:<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 head section
in body sectionCode:<script type="text/javascript" src="tabcontent.js"></script>
so i know i have to edit tabcontent.js but i dont know which changes i should make... please help me???Code:<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>



Reply With Quote


Bookmarks