Good day to you all,
I was wondering if there is a way to change the the look of wach level of a list.
Ex:
Last level, text = link
1st level, has 1 image instead of bullet and text in bold
2nd level as another image as bullet and text in bold
3rd level, if not last level, as another image as bullet and text in bold\
Here is where I’m now :
<html>
<head>
<style type="text/css">
ul {
list-style-image: url(Icons/open_book_icon.jpg);
}
li {
list-style-image: url(Icons/box_icon.png);
}
</style>
</head>
<body>
<?PHP
function globDir($dir)
{
$files = glob("$dir/*", GLOB_ONLYDIR);
if(!empty($files))
{
echo "<ul>\
";
foreach($files as $file)
{
echo "<li><b>". basename($file)."</b>\
";
globDir($file);
echo "</li>\
";
}
echo "</ul>\
";
}
}
globDir('Photos');
?>
</body>
</html>
Thanks !