View Single Post
  #4 (permalink)  
Old 09-16-04, 12:59 AM
rjwebgraphix rjwebgraphix is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, this should work, I think, but it's too late for me to try it now. I FINALLY found an example that showed what I was looking for. Dang php.net didn't show it in all of thier if statement examples. grrrr. Moving on.

One other thing. I've seen in other languages where you have to end the if statement. It didn't appear that you had to end it with and endif on php.net, but I did see some examples where an endif was used. What is required?

Will this work? I'll try it in the morning to see.

PHP Code:

<?PHP


if ($content == "home") {
    echo 
'<IMG SRC="homelink_onpage.jpg" BORDER="0" WIDTH="93" HEIGHT="31">';
} else {
    echo 
'<A onmouseover="move_in('home','homelink_mouse.jpg')" onmouseout="move_out('home','homelink_nomouse.jpg')" HREF="./frameset.php?content=home">';
    echo 
'<IMG NAME="home" ALT="Home Page" SRC="homelink_nomouse.jpg" WIDTH="93" HEIGHT="31" BORDER="0"></A>'
}
?>
Reply With Quote