General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 16th, 2003, 12:10 AM
arizona arizona is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 arizona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
dynamic menu

I got this script from URL
I am using it to catalog a lot of files.
Problem: when calling up the database, everything is open. I am trying to initially show main catagories (parent) and hide subcatagories (child) . I have tried everything I can think of, but no luck. sure could use some insight. here is the script. thanks for looking..arizona

<?php

// Create our database connection
$sqlConn = mysql_connect("localhost" ) or die("Couldn't connect to database");
$dbConn = mysql_select_db("menu", $sqlConn) or die("Couldn't connect to database");

$sql = "select * from nodes where parentId = 0 order by title asc";
$nodeResult = mysql_query($sql) or die("SELECT query failed");
$counter = 0;

?>

<html>
<head>
<title> Policy and Procedure </title>
<style>

.root_td
{
background-color: #4066A2;
color: #FFCF00;
font-family: Verdana;
font-size: 8pt;
font-weight: bold;
height: 22;
padding-left: 5;
}

.child_td
{
background-color: #D3D3D3;
color: #000000;
font-family: Verdana;
font-size: 8pt;
font-weight: bold;#000000
height: 19;
padding-left: 10;
padding-right: 10;
padding-bottom: 0;
}

Reply With Quote
  #2  
Old August 18th, 2003, 07:49 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
You might try using the display: none CSS attribute to hide the children until they're clicked. Even that may not work cross-platform, though.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > dynamic menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT