JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

nodes wont open

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
speed faction



Joined: 17 Oct 2003
Posts: 1

PostPosted: Fri Oct 17, 2003 9:18 pm    Post subject: nodes wont open Reply with quote

I've been looking this over for days, and I think I need a sane opinion. I can't see whats wrong with it, but when I click nodes that have sub tree's under them I just get an error, and nothing happens. Pretty sure it's a problems with tree_format, because when I use the visual builder, it works fine. I posted all 3 files though for reference. The page itself is http://speedfaction.ucfcarclub.com/


Also for some reason it cuts off the first part of home...

btw: I have full intentions of paying for this, as it will be used for money making purposes. Just tryin to get it up and running first.


Code:
var TREE1_FORMAT =
[
//0. left position
   10,
//1. top position
   10,
//2. show +/- buttons
   false,
//3. couple of button images (collapsed/expanded/blank)
   ["img/c.gif", "img/e.gif", "img/b.gif"],
//4. size of images (width, height,ident for nodes w/o children)
   [16,16,0],
//5. show folder image
   false,
//6. folder images (closed/opened/document)
   ["img/fc.gif", "img/fe.gif", "img/d.gif"],
//7. size of images (width, height)
   [16,16],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
   [0,16,32,48,64,80,96,112,128,144,160,176,192,208,224,240,256,272],
//9. tree background color ("" - transparent)
   "",
//10. default style for all nodes
   "clsNode",
//11. styles for each level of menu (default style will be used for undefined levels)
   ["clsNodeLevel1", "clsNodeLevel2", "clsNodeLevel3", "clsNodeLevel4"],
//12. true if only one branch can be opened at same time
   false,
//13. item pagging and spacing
   [0,0],
];


Code:
var TREE1_NODES = [
    ["Home", "main.htm", "main"],
    ["New Arrivals", "arrivals.htm", "main"],
    ["Products", null, null,
        ["Aerodynamics", null, null,
            ["Body Kits", null, "main"],
            ["Spoilers", null, "main"],
            ["CF Hoods", null, "main"],
            ["Mirrors", null, "main"]
        ],
        ["Engine Components", null, null,
            ["Pistons", null, "main"],
            ["Cams", null, "main"],
            ["Fuel", null, "main"],
            ["Ignition", null, "main"],
            ["Rods", null, "main"],
            ["Intake Manifolds", null, "main"],
            ["Headers", null, "main"]
        ],
        ["Lighting", null, null,
            ["Bulbs", null, "main"],
            ["HID's", null, "main"],
            ["Bulbs", null, "main"],
            ["Headlights", null, "main"],
            ["Tailights", null, "main"]
        ],
        ["Suspension", null, null,
            ["Springs", null, "main"],
            ["Coilovers", null, "main"],
            ["Sway Bars", null, "main"],
            ["Strut Bars", null, "main"],
            ["Shocks", null, "main"]
        ],
        ["Intake Systems", null, "main"],
        ["Exhaust Systems", null, "main"],
        ["Forced Induction", null, null,
            ["Turbos", null, "main"],
            ["Turbo Kits", null, "main"],
            ["Superchargers", null, "main"],
            ["Nitrous", null, "main"],
            ["Turbo Parts", null, "main"],
            ["Intercoolers", null, "main"]
        ],
        ["Drivetrain", null, null,
            ["Axles", null, "main"],
            ["Clutches", null, "main"],
            ["Short Shifters", null, "main"],
            ["Flywheels", null, "main"]
        ],
        ["Electronics", null, null,
            ["Fuel Computers", null, "main"],
            ["Performance Monitors", null, "main"],
            ["Boost Contollers", null, "main"],
            ["Gauges", null, "main"]
        ],
        ["Interior", null, null,
            ["Seats", null, "main"],
            ["Harnesses", null, "main"],
            ["Steering Wheels", null, "main"],
            ["Gauges", null, "main"]
        ],
    ],
    ["Project Cars", null, null,
        ["Project Civic", "civic.htm", "main"],
        ["Project Sti", "sti.htm", "main"]
    ],
    ["Specials", "specials.htm", "main"],
    ["Contact", "contact.htm", "main"]
];


Code:
body, td, th, a, p, h1, h2, h3{
   font-family:  Geneva, Arial, Helvetica, sans-serif;
   font-size: 14px; color:#FF0000
}

.clsNode, :visited.clsNode{
   font-family: Geneva, Arial, Helvetica, sans-serif;
   color: red;
   font-weight : bold;;
   font-size : 12px;
   text-decoration : none;
}
.clsNodeL1, :visited.clsNodeL1{
   color: red;
   font-size : 12px;
   text-decoration : none;
}
:hover.clsNodeL1{
   color: red;
   font-size : 12px;
   text-decoration : underline;
}

.clsNodeL2, :visited.clsNodeL2{
   color: red;
   font-size : 12px;
   text-decoration : none;
}
:hover.clsNodeL2{
   color: red;
   font-size : 12px;
   text-decoration : underline;
}

.clsNodeL3, :visited.clsNodeL3{
   color: red;
   font-size : 10px;
   text-decoration : none;
}
:hover.clsNodeL3{
   color: red;
   font-size : 10px;
   text-decoration : underline;
}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1