Vorrei creare un effetto di rollover ad un bottone di submit del form,
la classe css:
<style>
.rollover{
height: 33px; /*meta dallimmagine*/
width: 168px;
text-indent: 10000px;
overflow: hidden;
background: url(immagine.gif) top left no-repeat;
display: block;
}
.rollover:hover{
background-position: bottom left;
}
</style>
come modificare questo php x chiamare la classe?:
<form name=mail method=post action=?action=signup1>
<table width=80% border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=14% ><font size=-1>Name</font></td>
<td width=187>
<input type=text name=name class=formcolviola size=12>
</td>
</tr>
<tr>
<td width=14%><font size=-1>Email</font></td>
<td width=187>
<input type=text name=email class=formcolviola size=12>
</td>
</tr>
<input type=hidden name=subject value=\"$subject_signup\">
</td>
</tr>
<tr>
<td width=59></td>
<td>
<input type=submit value=\"\" style=\"background-image:url(http://www.MIOURL.com/images/Subscribe.jpg); cursor: pointer; background-position:center; width:100px; height:30px; background-color:#000; border: 0;\" />
</td>
</tr><tr width=100><td width=250></td><td>
</tr>
</table>
</form>";
Ho provato cosi ma non va:
<input name=button type=submit class=rollover id=button value=\"\" />
che dite voi?!

Rispondi quotando