Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by James on Oct 02, 2008 13:40
open dhtmlx forum
Cannot get "Modern" style to work with Tabbar

I cannot seem to get the modern style to work. What am I doing wrong?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Initialization from HTML</title>
</head>

<body>

    <link rel="STYLESHEET" type="text/css" href="./codebase/dhtmlxtabbar.css">
    <script src="./codebase/dhtmlxcommon.js"></script>
    <script src="./codebase/dhtmlxtabbar.js"></script>

    <script src="./codebase/dhtmlxtabbar_start.js"></script>
<script>
        tabbar=new dhtmlXTabBar("a_tabbar","top");
        tabbar.setImagePath("./codebase/imgs/");
        tabbar.setStyle("modern");
    </script>    

<div id="a_tabbar" class="dhtmlxTabBar" imgpath="./codebase/imgs/" style="width:498; height:395;" >
<div id="a1" width="100" name="Tab1" >Tab1</div>
<div id="a2" width="100" name="Tab2" >Tab2</div>
<div id="a3" width="100" name="Tab3" >Tab3</div>
<div id="a4" width="100" name="Tab4" >Tab4</div>
</div>
</html>

Thanks!
Answer posted by Support on Oct 03, 2008 01:40
a) When you init code from HTML layout , you need not duplicate init from js script
b) setStyle can be reflected as tabstyle attribute, please check updated html file. 
Attachments (1)
updated.zip466.00 B