Mouseover issues
Posted: Thu May 21, 2009 11:31 am
Hi Everyone
In this code beneath I've made it so that if the user is logged in this menu appears, problem is the images arent performing the mouseover action. It worked when coding it locally so I wonder where I've gone wrong...?
In this code beneath I've made it so that if the user is logged in this menu appears, problem is the images arent performing the mouseover action. It worked when coding it locally so I wonder where I've gone wrong...?
Code: Select all
<?
include("header.php");
if (isset($_SESSION[user]))
{
echo "
<div class='menuhome'>
<a href='http://example.com/index.php' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage('btnhome','','images/homelrg.png',1)'><img src='images/homesml.png' alt='home' name='btnhome' width='63' height='21' border='0'></a>
</div>
<div class='menuprofile'>
<a href='http://example.com/profile.php' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage('btnprofile','','images/profilelrg.png',1)'><img src='images/profilesml.png' alt='profile' name='btnprofile' width='63' height='21' border='0'></a>
</div>
<div class='menumessages'>
<a href='http://example.com/messages.php' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage('btnmessages','','images/messageslrg.png',1)'><img src='images/messagessml.png' alt='messages' name='btnmessages' width='63' height='21' border='0'></a>
</div>
<div class='menulogout'>
<a href='http://example.com/logout.php' onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage('btnlogout','','images/logoutlrg.png',1)'><img src='images/logoutsml.png' alt='logout' name='btnlogout' width='63' height='21' border='0'></a>
</div>
"; }
else {
include("loginarea.php");
}
?>