Hi! I have a CSS image rollover script I am using for the menus on a joomla webpage. I’m also have a login/logout “module” that is written in PHP. The PHP login/logout “module” is essentially a form.
Is there a way to use the CSS image rollover script in the PHP form so the submit buttons will be rollover buttons?:eek:
I hope that makes sense. Here’s the CSS rollover script I use for the menu:
[CODE]
<style type=”text/css”>
a.logout{
width:136px;
height:30px;
background:url(http://www.faithworksnow.com/images/menu/logout.gif) 0 0;
display:block;
text-indent:-1500px;
overflow:hidden;
}
a.logout:hover { background-position: -136px 0;}
</style>
<a class=”logout” width=’136px’ href=”(I’m not sure)”></a>
I can give you the entire code from the PHP login/logout, but it is very long. Here’s a small bit of it where the submit button is:
[CODE]
echo ‘<input type=”image” name=”Submit” src=”http://www.faithworksnow.com/images/menu/logoutoff.gif” width=”130″ height=”30″ class=”button’.$class_sfx.'” value=”‘._BUTTON_LOGOUT.”” />”;
echo “n”.'<input type=”hidden” name=”op2″ value=”logout” />’.”n”;
echo ‘<input type=”hidden” name=”lang” value=”‘.$mosConfig_lang.'” />’.”n”;
echo ‘<input type=”hidden” name=”return” value=”‘ . $logout . ‘” />’.”n”;
echo ‘<input type=”hidden” name=”message” value=”‘ . htmlspecialchars( $message_logout ) . ‘” />’.”n”;
if ( is_callable(“josSpoofValue”)) {
$validate = josSpoofValue();
echo “<input type=”hidden” name=”” . $validate . “” value=”1″ />n”;
}
Thankyou very much for the help!
Ben