I have a page with names listed on the left. When the user clicks the name, a mini-bio displays on the right. What I would like to do is when the page first loads (before the user clicks on any names), I would like to have a message displayed on the right. I'm currently stuck on where to insert the message 'click on a name on the left to read a mini-bio' within my code.
Can someone give me a clue?
Thank you!PHP Code:<div style="float: right; display: inline; width: 350px;">
<?php if (!empty($row_getCoach['staff_photo'])) { echo '<div
id="mainpic"><img src="../photos/staff/' . $row_getCoach
['staff_photo'] .'" '. getDims($row_getCoach['staff_photo'],
'../photos/staff/') .' '. 'alt="'. $row_getCoach['staff_name']
.'" /></div>'; } ?>
<strong><?php echo $row_getCoach['staff_name']; ?></strong>
<?php
$text = nl2br($row_getCoach['staff_desc']);
$after = str_replace("<br />", "</p><p id=\"picBio\">", $text); ?>
<p id="picBio"><?php echo $after ; ?></p></div>
toad78







Bookmarks