|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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; } |
|
#2
|
||||
|
||||
|
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.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > dynamic menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|