Verfasst: 20.10.2005 12:08
Eine Möglichkeit wäre in den <button>-tag einen <a> ta zu packen und den könnte man bestimmt mit hover effekten "zubereiten". Beim Klicken sieht man aber afair, dass es eigentlich ein Button ist.
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
// Absenden:
<a href="javascript: document.form.submit()">Absenden</a><br>
<a href="#" onClick="document.form.submit()">Absenden</a><br>
// Zurücksetzen
<a href="javascript: document.form.reset()">Zurücksetzen</a><br>
<a href="#" onClick="document.form.reset()">Zurücksetzen</a><br>
Code: Alles auswählen
<input type="submit" value="Dein Text" name="send" style="cursor:hand; color:#4d4d4d; font-family:Arial; font-size:11px; background-color:transparent; border-color:transparent; border:0px;">
Code: Alles auswählen
<input type="submit" value="passwort anfordern" name="send" onMouseOver="this.style.backgroundColor='#FEB74B';" onMouseOut="this.style.backgroundColor='transparent';" style="cursor:hand; color:#4d4d4d; font-family:Arial; font-size:11px; background-color:transparent; border-color:transparent; border:0px;">
Code: Alles auswählen
// Absenden:
<a href="javascript: document.form.submit()">Absenden</a><br>
<a href="#" onClick="document.form.submit()">Absenden</a><br>
Code: Alles auswählen
<input type="submit" name="save" .....>
Code: Alles auswählen
<input type="submit" value="passwort anfordern" name="send" onMouseOver="this.style.backgroundColor='#FEB74B';" onMouseOut="this.style.backgroundColor='transparent';" style="cursor:hand; color:#4d4d4d; font-family:Arial; font-size:11px; background-color:transparent; border-color:transparent; border:0px;">
Meinst du so was?123teddy321 hat geschrieben:gut da habe ich mit der lösung schon mal die hintergrundfarbe! nun brauche ich aber auch noch border in verschiedenen farben!
also ich brauche sozusagen den oben geposteten css in einem button per mouseover!
Code: Alles auswählen
<input type="submit" value="passwort anfordern" name="send" onMouseOver="this.style.backgroundColor='#FEB74B';" onMouseOut="this.style.backgroundColor='transparent';" style="cursor:hand; color:#4d4d4d; font-family:Arial; font-size:11px; background-color:transparent; border: solid 1px #4d4d4d;">