Hey guys,
I had a friend write a bit of php code for me, to take my html files from a folder, and display them on my index page with an accordion style list. He made it so the filename, is the name of the "organism" in the list using the fallowing code:
echo "<ul id='organisms'>";
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
if ( strpos($filename, ".html") !== false || strpos($filename, ".php") !== false ) {
$lines = file($dir . $filename) ;
$contents = implode($lines);
$newFilename = str_replace('.html', '', $filename);
echo " <li>
<b><p class='orgTitle'>$newFilename</p></b>
<div class='orgContent'>$contents</div>
</li>"
My question is how would I change the font color of the filename so when it is output as "name of the organism" it is a different color then all other text on the page. Ive tried putting <FONT COLOR = "009933"> all the php stuff </font> but that changes all the text on the page to that color. I want ONLY the filenames to be that color. Thank you for your time!!